summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2023-07-14 19:29:18 +0200
committerLoic Guegan <manzerbredes@mailbox.org>2023-07-14 19:29:18 +0200
commit6172ad70924be37de833facb41365eff1cec497b (patch)
treeb915b78a055ef25cf1d9585f00eb369aa268a41d /Makefile
parent2e02fd6b93606656d04e31e4c351d9658dd41f0a (diff)
Minor changes
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index e889f55..9606e51 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,17 @@
+PUBLISHER_PORT=5556
CC="gcc"
+CFLAGS=
all: publisher client
publisher:
echo "Building publisher..."
+ CFLAGS+=-DPUBLISHER_PORT=$(PUBLISHER_PORT) \
$(MAKE) -C src/publisher/ CC=$(CC) OUT=$(PWD)
client:
echo "Building client..."
+ CFLAGS+=-DPUBLISHER_PORT=$(PUBLISHER_PORT) \
$(MAKE) -C src/client/ CC=$(CC) OUT=$(PWD)