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