summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-07-14 18:26:31 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-07-14 18:26:31 +0200
commit4f9aced0c34d9554fc61f5072d8536133455b941 (patch)
tree79d2d8a2d619aa18b9d26b9f20d2f427833321a9
parentbc84e55c7909dfd4870d9d5174447c1b805ae2fb (diff)
Minor changes
-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;
+}