ina260-zmq-publisher/Makefile
2023-07-14 19:29:18 +02:00

22 lines
466 B
Makefile

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)
clean:
$(MAKE) clean -C src/publisher/ CC=$(CC) OUT=$(PWD)
$(MAKE) clean -C src/client/ CC=$(CC) OUT=$(PWD)
.PHONY: clean publisher client