aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-14 08:18:49 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-01-14 08:18:49 +0100
commitaeaa5ab9f5f1148331ca466e00e2e0f2b0e867ab (patch)
tree7df8114504e3969fb076a280ecac56914f7ca766
parent7959f2ca2f2c0cea1f34b5469311d9a9a2f240cd (diff)
downloadmmbtools-aux-aeaa5ab9f5f1148331ca466e00e2e0f2b0e867ab.tar.gz
mmbtools-aux-aeaa5ab9f5f1148331ca466e00e2e0f2b0e867ab.tar.bz2
mmbtools-aux-aeaa5ab9f5f1148331ca466e00e2e0f2b0e867ab.zip
use pkgconfig to find zmq in zmq-sub Makefile
-rw-r--r--zmqtest/zmq-sub/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/zmqtest/zmq-sub/Makefile b/zmqtest/zmq-sub/Makefile
index 1b1f646..be3ea43 100644
--- a/zmqtest/zmq-sub/Makefile
+++ b/zmqtest/zmq-sub/Makefile
@@ -1,6 +1,8 @@
GIT_VERSION = $(shell git describe --long --all | cut -d "-" -f 3)
-CFLAGS = -Wall -g -std=gnu11 -lzmq -DGIT_VERSION=\"$(GIT_VERSION)\"
+ZMQ_LIB=$(shell pkg-config --libs libzmq)
+
+CFLAGS = -Wall -g -std=gnu11 $(ZMQ_LIB) -DGIT_VERSION=\"$(GIT_VERSION)\"
all: zmq-sub