mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-06 03:46:25 +02:00
Minor changes
This commit is contained in:
parent
8350d7e977
commit
d2de7aa0f1
1 changed files with 3 additions and 3 deletions
6
Makefile
6
Makefile
|
@ -1,7 +1,7 @@
|
||||||
CONF=$(PWD)/config.mk
|
CONF=$(PWD)/config.mk
|
||||||
include $(CONF)
|
include $(CONF)
|
||||||
CC="gcc"
|
CC="gcc"
|
||||||
CFLAGS=
|
CFLAGS=-lzmq
|
||||||
|
|
||||||
MACROS=\
|
MACROS=\
|
||||||
-DZMQ_TOKEN=\"$(ZMQ_TOKEN)\" \
|
-DZMQ_TOKEN=\"$(ZMQ_TOKEN)\" \
|
||||||
|
@ -12,10 +12,10 @@ MACROS=\
|
||||||
all: publisher subscriber
|
all: publisher subscriber
|
||||||
|
|
||||||
publisher: src/publisher.c src/utils.c config.mk
|
publisher: src/publisher.c src/utils.c config.mk
|
||||||
$(CC) -lzmq -lpthread $(filter-out config.mk,$^) -o $@ $(MACROS)
|
$(CC) $(filter-out config.mk,$^) -o $@ $(MACROS) $(CFLAGS) -lpthread
|
||||||
|
|
||||||
subscriber: src/subscriber.c src/utils.c config.mk
|
subscriber: src/subscriber.c src/utils.c config.mk
|
||||||
$(CC) -lzmq $(filter-out config.mk,$^) -o $@ $(MACROS)
|
$(CC) $(filter-out config.mk,$^) -o $@ $(MACROS) $(CFLAGS)
|
||||||
|
|
||||||
publish: publisher
|
publish: publisher
|
||||||
[ -f pid ] && { cat pid|xargs kill -INT; rm pid; } || exit 0
|
[ -f pid ] && { cat pid|xargs kill -INT; rm pid; } || exit 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue