Initial commit of RMR Library
[ric-plt/lib/rmr.git] / examples / Makefile
diff --git a/examples/Makefile b/examples/Makefile
new file mode 100644 (file)
index 0000000..6314ea3
--- /dev/null
@@ -0,0 +1,14 @@
+# The demo programmes assume that RMr (along with nng) is installed
+# It may be necessary to set LD_LIBRARY_PATH=/usr/local/lib
+
+
+.PHONY: all
+all: sender receiver
+
+receiver: receiver.c
+        gcc $< -g -o $@ -lrmr_nng -lnng -lpthread -lm
+
+sender: sender.c
+        gcc $< -g -o $@ -lrmr_nng -lnng -lpthread -lm
+
+