mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-19 04:09:45 +00:00
Minor changes
This commit is contained in:
parent
8f6bf2c440
commit
fe62b11365
4 changed files with 18 additions and 8 deletions
10
Makefile
10
Makefile
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue