X-Git-Url: https://git.danieliu.xyz/?p=taskasaur.git;a=blobdiff_plain;f=makefile;h=33e549501bcd302dcc84db32897bc02754c769a0;hp=4e10ddea95350db85a72f3edcca33d4e52a063a4;hb=HEAD;hpb=82204679646dbb05f22adf6dca9bca18943ea9f6 diff --git a/makefile b/makefile index 4e10dde..33e5495 100644 --- a/makefile +++ b/makefile @@ -1,23 +1,17 @@ + CC=gcc +CFLAGS=-g -Wall -Wno-unused-variable -Wno-unused-but-set-variable -Wno-switch +LIBS=-ltinfo -lncurses -lmd4c make: taskasaur all: taskasaur -parser.o: parser.c headers/parser.h - $(CC) -c parser.c - -render.o: render.c headers/render.h - $(CC) -c render.c - -menu.o: menu.c headers/menu.h - $(CC) -c menu.c - -utils.o: utils.c headers/utils.h - $(CC) -c utils.c +%.o: %.c headers/%.h config.h + $(CC) $(CFLAGS) -c $< $(LIBS) -taskasaur: taskasaur.c parser.o render.o menu.o utils.o - $(CC) -o $@ $^ -lncurses -lmd4c +taskasaur: taskasaur.c menu.o parser.o render.o utils.o + $(CC) $(CFLAGS) -o $@ $^ $(LIBS) clean: rm taskasaur *.o