summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile12
-rw-r--r--src/publisher/Makefile10
-rw-r--r--src/publisher/main.c7
3 files changed, 29 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..17610ca
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,12 @@
+CC="gcc"
+
+all: publisher
+
+publisher:
+ echo "Building publisher..."
+ $(MAKE) -C src/publisher/ CC=$(CC) OUT=$(PWD)
+
+clean:
+ $(MAKE) clean -C src/publisher/ CC=$(CC) OUT=$(PWD)
+
+.PHONY: clean
diff --git a/src/publisher/Makefile b/src/publisher/Makefile
new file mode 100644
index 0000000..605e667
--- /dev/null
+++ b/src/publisher/Makefile
@@ -0,0 +1,10 @@
+EXEC=publisher
+CFLAGS=-lzmq
+
+all: main.c
+ $(CC) $^ -o $(OUT)/$(EXEC) $(CFLAGS)
+
+clean:
+ rm -f $(OUT)/$(EXEC)
+
+.PHONY: clean
diff --git a/src/publisher/main.c b/src/publisher/main.c
new file mode 100644
index 0000000..6ff8ae1
--- /dev/null
+++ b/src/publisher/main.c
@@ -0,0 +1,7 @@
+
+
+
+int main(){
+
+ return 0;
+}