Initial commit of RMR Library
[ric-plt/lib/rmr.git] / test / Makefile
diff --git a/test/Makefile b/test/Makefile
new file mode 100644 (file)
index 0000000..20d461e
--- /dev/null
@@ -0,0 +1,24 @@
+
+
+CC = gcc
+coverage_opts = -ftest-coverage -fprofile-arcs
+
+libs = ../build/librmr_nng.a -L ../build/lib -lnng -lpthread -lm
+
+%.o:: %.c
+       $(CC) -g $< -c 
+
+%:: %.c
+       $(CC) $(coverage_opts) -fPIC -g $< -o $@  $(libs)
+
+# catch all 
+all:
+       echo "run unit_test.ksh to make and run things here"
+
+# remove intermediates
+clean:
+       rm -f *.gcov *.gcda *.dcov *.gcno
+
+# remove anything that can be builts
+nuke: clean
+       rm -f ring_test symtab_test