pinosaur
/
taskasaur.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lots of fixes
[taskasaur.git]
/
makefile
diff --git
a/makefile
b/makefile
index
6cb7cf7
..
33e5495
100644
(file)
--- a/
makefile
+++ b/
makefile
@@
-1,18
+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
-
-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
clean:
rm taskasaur *.o