Minor changes

This commit is contained in:
Loic Guegan 2023-07-15 21:38:12 +02:00
parent 8f6bf2c440
commit fe62b11365
4 changed files with 18 additions and 8 deletions

View file

@ -3,16 +3,20 @@ include $(CONF)
CC="gcc"
CFLAGS=
MACROS=\
-DZMQ_TOKEN=\"$(ZMQ_TOKEN)\" \
-DZMQ_MSG_SIZE=$(ZMQ_MSG_SIZE)
all: publisher subscriber logger
publisher: src/publisher.c src/utils.c
$(CC) -lzmq $^ -o $@
$(CC) -lzmq $^ -o $@ $(MACROS)
subscriber: src/subscriber.c src/utils.c
$(CC) -lzmq $^ -o $@
$(CC) -lzmq $^ -o $@ $(MACROS)
logger: src/logger.c src/utils.c
$(CC) $^ -o $@
$(CC) $^ -o $@ $(MACROS)
publish: publisher logger
[ -f pid ] && { kill $(shell cat pid); rm pid; }