From d2de7aa0f180c17ea35032d31b596ea59cb9efbb Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Fri, 25 Aug 2023 15:54:38 +0200 Subject: [PATCH] Minor changes --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 7259e15..555653a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ CONF=$(PWD)/config.mk include $(CONF) CC="gcc" -CFLAGS= +CFLAGS=-lzmq MACROS=\ -DZMQ_TOKEN=\"$(ZMQ_TOKEN)\" \ @@ -12,10 +12,10 @@ MACROS=\ all: publisher subscriber 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 - $(CC) -lzmq $(filter-out config.mk,$^) -o $@ $(MACROS) + $(CC) $(filter-out config.mk,$^) -o $@ $(MACROS) $(CFLAGS) publish: publisher [ -f pid ] && { cat pid|xargs kill -INT; rm pid; } || exit 0