pinosaur
/
taskasaur.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
calling render callbacks from render.c
[taskasaur.git]
/
makefile
diff --git
a/makefile
b/makefile
index
6717864
..
33e5495
100644
(file)
--- a/
makefile
+++ b/
makefile
@@
-1,12
+1,17
@@
+
CC=gcc
CC=gcc
+CFLAGS=-g -Wall -Wno-unused-variable -Wno-unused-but-set-variable -Wno-switch
+LIBS=-ltinfo -lncurses -lmd4c
make: taskasaur
make: taskasaur
-parser.o: parser.c headers/parser.h
- $(CC) -c parser.c
+all: taskasaur
+
+%.o: %.c headers/%.h config.h
+ $(CC) $(CFLAGS) -c $< $(LIBS)
-taskasaur: taskasaur.c
parser
.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
clean:
rm taskasaur *.o