From 7f9db87f30644e88e8cb95bb6f305d74e77840af Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Sat, 12 Mar 2016 20:22:36 +0000 Subject: [PATCH] Makefile target for static compiled pub/sub clients. --- client/Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/Makefile b/client/Makefile index bd65355f..a1c6c9df 100644 --- a/client/Makefile +++ b/client/Makefile @@ -4,6 +4,14 @@ include ../config.mk all : mosquitto_pub mosquitto_sub +static : static_pub static_sub + +static_pub : pub_client.o client_shared.o ../lib/libmosquitto.a + ${CROSS_COMPILE}${CC} $^ -o mosquitto_pub ${CLIENT_LDFLAGS} -lssl -lcrypto -lpthread + +static_sub : sub_client.o client_shared.o ../lib/libmosquitto.a + ${CROSS_COMPILE}${CC} $^ -o mosquitto_sub ${CLIENT_LDFLAGS} -lssl -lcrypto -lpthread + mosquitto_pub : pub_client.o client_shared.o ${CROSS_COMPILE}${CC} $^ -o $@ ${CLIENT_LDFLAGS}