X-Git-Url: https://git.danieliu.xyz/?p=taskasaur.git;a=blobdiff_plain;f=makefile;h=33e549501bcd302dcc84db32897bc02754c769a0;hp=6cb7cf7827d260dd705be1621bad92b7b9246bcd;hb=HEAD;hpb=ef44630f65b5f9238efd8555cc8c5fb5bbf97ea1 diff --git a/makefile b/makefile index 6cb7cf7..33e5495 100644 --- a/makefile +++ b/makefile @@ -1,18 +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 - -render.o: render.c headers/render.h - $(CC) -c render.c +all: taskasaur -menu.o: menu.c headers/menu.h - $(CC) -c menu.c +%.o: %.c headers/%.h config.h + $(CC) $(CFLAGS) -c $< $(LIBS) -taskasaur: taskasaur.c parser.o render.o menu.o - $(CC) -o $@ $^ -lncurses -lmd4c +taskasaur: taskasaur.c menu.o parser.o render.o utils.o + $(CC) $(CFLAGS) -o $@ $^ $(LIBS) clean: rm taskasaur *.o