X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=Makefile;h=de3c650376e4f208cb4370e0889d5aa626048440;hb=6a78a5788120dbae26ee01ddc85d6a014155eba1;hp=c99d35d6f438d460745f4c1bc0b9dc501e8fb784;hpb=5ffe2e4443370f4c8e605339e25ee717fa4627e7;p=smdp.git diff --git a/Makefile b/Makefile index c99d35d..de3c650 100644 --- a/Makefile +++ b/Makefile @@ -18,22 +18,17 @@ # along with this program. If not, see . # -CC = /usr/bin/gcc CFLAGS = -Wall -g -LDFLAGS = -lncurses +LDLIBS = -lncurses OBJECTS = cstring.o cstack.o markdown.o parser.o viewer.o mdp.o DESTDIR ?= /usr/bin -%.o: %.c - $(CC) $(CFLAGS) -c $< - all: mdp mdp: $(OBJECTS) - $(CC) $(CFLAGS) -o mdp $(OBJECTS) $(LDFLAGS) clean: - rm -f $(OBJECTS) mdp + $(RM) $(OBJECTS) mdp install: mdp if which strip 1>/dev/null 2>&1; then strip mdp; fi