38 lines
668 B
Makefile
38 lines
668 B
Makefile
#compiler flags
|
|
|
|
CFLAGS=-Wall -Wextra -g
|
|
|
|
|
|
#files
|
|
UIF=src/ui.c src/ui.h #UI files
|
|
PLF=src/planner.c src/planner.h #planner files
|
|
DBF=src/db.c src/db.h #db files
|
|
CALF=src/iCal.c src/iCal.h
|
|
LLST=src/llist.c src/llist.h
|
|
CONFIG=src/config.h #config file
|
|
|
|
|
|
#targets
|
|
debug: test ui planner db iCal config llist
|
|
gcc test.o ui.o planner.o db.o iCal.o llist.o -o debugOut
|
|
|
|
config: $(CONFIG)
|
|
llist: $(LLST)
|
|
gcc -c $(CFLAGS) $(LLST)
|
|
test: src/test.c
|
|
gcc -c $(CFLAGS) src/test.c
|
|
iCal: $(CALF)
|
|
gcc -c $(CFLAGS) $(CALF)
|
|
ui: $(UIF)
|
|
gcc -c $(CFLAGS) $(UIF)
|
|
planner: $(PLF)
|
|
gcc -c $(CFLAGS) $(PLF)
|
|
db: $(DBF)
|
|
gcc -c $(CFLAGS) $(DBF)
|
|
|
|
clean:
|
|
rm -rf *.o debugOut src/*.gch
|
|
|
|
|
|
|