summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAaron Ball <nullspoon@iohq.net>2015-10-05 08:37:27 -0600
committerAaron Ball <nullspoon@iohq.net>2015-10-05 08:37:38 -0600
commit522efa1f37ada373c6ea6624ab6d00e0fcb53e2e (patch)
tree6efb3837410e1583bec0a7e12084c5c5721f1073 /Makefile
parent7c9eea953af3f42553b75a4dabb81f4b40ae6540 (diff)
parent2f480e7c8dab41e4a637e7f86a972d41ee7e8042 (diff)
downloadcnetbench-master.tar.gz
cnetbench-master.tar.xz
Merge branch 't_test'HEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8ddfc99..2a5996c 100644
--- a/Makefile
+++ b/Makefile
@@ -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)

Generated by cgit