ina260-zmq-publisher/Makefile

24 lines
482 B
Makefile
Raw Normal View History

2023-07-14 20:08:36 +02:00
CONF=$(PWD)/config.mk
include $(CONF)
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:
2023-07-14 20:08:36 +02:00
@echo "---------- Building publisher..."
CFLAGS=$(CFLAGS) \
$(MAKE) -C src/publisher/ CC=$(CC) OUT=$(PWD) CONF=$(CONF)
2023-07-14 18:26:31 +02:00
2023-07-14 18:28:02 +02:00
client:
2023-07-14 20:08:36 +02:00
@echo "---------- Building client..."
CFLAGS=$(CFLAGS) \
$(MAKE) -C src/client/ CC=$(CC) OUT=$(PWD) CONF=$(CONF)
2023-07-14 18:28:02 +02:00
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