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