blob: f3cf05cdba7ce83bccd28e3a2794638d94fa5d57 (
plain)
1 out = ircbot
2 obj = obj/
3 warnings = -Wall -Wpedantic
4 cc = cc
5
6 all:
7 if [ ! -d obj ]; then mkdir obj; fi
8 $(cc) $(dbg) $(warnings) -c src/common.c -o $(obj)common.o
9 #$(cc) $(dbg) $(warnings) -std=$(std) -c src/config.c -o $(obj)config.o
10 $(cc) $(dbg) $(warnings) src/main.c $(obj)/* -o $(out)
11
12 debug:
13 make all dbg="-g"
14
15 clean:
16 rm -rvf $(obj)*.o
|