ina260-zmq-publisher/Makefile

23 lines
466 B
Makefile
Raw Normal View History

2023-07-14 19:29:18 +02:00
PUBLISHER_PORT=5556
2023-07-14 18:26:31 +02:00
CC="gcc"
2023-07-14 19:29:18 +02:00
CFLAGS=
2023-07-14 18:26:31 +02:00
2023-07-14 18:28:02 +02:00
all: publisher client
2023-07-14 18:26:31 +02:00
publisher:
echo "Building publisher..."
2023-07-14 19:29:18 +02:00
CFLAGS+=-DPUBLISHER_PORT=$(PUBLISHER_PORT) \
2023-07-14 18:26:31 +02:00
$(MAKE) -C src/publisher/ CC=$(CC) OUT=$(PWD)
2023-07-14 18:28:02 +02:00
client:
echo "Building client..."
2023-07-14 19:29:18 +02:00
CFLAGS+=-DPUBLISHER_PORT=$(PUBLISHER_PORT) \
2023-07-14 18:28:02 +02:00
$(MAKE) -C src/client/ CC=$(CC) OUT=$(PWD)
2023-07-14 18:26:31 +02:00
clean:
$(MAKE) clean -C src/publisher/ CC=$(CC) OUT=$(PWD)
2023-07-14 18:28:02 +02:00
$(MAKE) clean -C src/client/ CC=$(CC) OUT=$(PWD)
2023-07-14 18:26:31 +02:00
2023-07-14 18:49:03 +02:00
.PHONY: clean publisher client