fix sig
[taskasaur.git] / makefile
index ac7d51b..810a1a4 100644 (file)
--- a/makefile
+++ b/makefile
@@ -1,16 +1,17 @@
 
 CC=gcc
 CFLAGS=-g -Wall -Wno-unused-variable -Wno-switch
+LIBS=-lncursesw -lmd4c
 
 make: taskasaur
 
 all: taskasaur
 
 %.o: %.c headers/%.h config.h 
-       $(CC) $(CFLAGS) -c $<
+       $(CC) $(CFLAGS) -c $< $(LIBS)
 
 taskasaur: taskasaur.c menu.o parser.o render.o utils.o
-       $(CC) $(CFLAGS) -o $@ $^ -lncurses -lmd4c
+       $(CC) $(CFLAGS) -o $@ $^ $(LIBS)
 
 clean:
        rm taskasaur *.o