diff options
author | Aaron Ball <nullspoon@iohq.net> | 2015-10-05 08:37:27 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2015-10-05 08:37:38 -0600 |
commit | 522efa1f37ada373c6ea6624ab6d00e0fcb53e2e (patch) | |
tree | 6efb3837410e1583bec0a7e12084c5c5721f1073 /Makefile | |
parent | 7c9eea953af3f42553b75a4dabb81f4b40ae6540 (diff) | |
parent | 2f480e7c8dab41e4a637e7f86a972d41ee7e8042 (diff) | |
download | cnetbench-master.tar.gz cnetbench-master.tar.xz |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -2,9 +2,17 @@ out = cnetbench std = c99 warnings = -Wall -Wpedantic cc = cc +obj = obj/ all: - $(cc) $(dbg) $(warnings) -std=$(std) src/main.c -o $(out) + if [[ ! -d $(obj) ]]; then mkdir $(obj); fi + $(cc) $(dbg) $(warnings) -std=$(std) -c src/test.c -o $(obj)test.o + $(cc) $(dbg) $(warnings) -std=$(std) -c src/common.c -o $(obj)common.o + $(cc) $(dbg) $(warnings) -std=$(std) src/main.c $(obj)/* -o $(out) debug: make all dbg="-g" + +clean: + rm -rf $(obj)/*.o + rm -f $(out) |