--- mqtt/src/Attic/Makefile 2012/01/27 15:18:12 1.2.2.1 +++ mqtt/src/Attic/Makefile 2012/07/03 09:02:50 1.3 @@ -3,7 +3,7 @@ # by Michael Pounov # # $Author: misho $ -# $Id: Makefile,v 1.2.2.1 2012/01/27 15:18:12 misho Exp $ +# $Id: Makefile,v 1.3 2012/07/03 09:02:50 misho Exp $ # prefix = /usr/local exec_prefix = ${prefix} @@ -19,15 +19,15 @@ BIN = ../bin INC = ../inc LIB = ../lib -LIBS = -laitio -laitcfg -lsqlite3 -LDADD = -laitmqtt -lpthread -laitsched -laitio -laitcfg -lutil -lcrypto +LIBS = -laitio -laitcrc -laitcfg -lsqlite3 +LDADD = -laitmqtt -lpthread -laitsched -laitio -laitcfg -laitcrc -lutil -lcrypto CFLAGS = -I. -I${INC} -I${includedir} -Wall -O2 -fPIC -I/usr/local/include -g -O2 LDFLAGS = -L. -L${LIB} -L${libdir} -L/usr/local/lib -SRCS = ${MQTTD_SRCS} ${MQTT_SUBS_SRCS} ${MQTT_PUB_SRCS} \ +SRCS = ${MQTTD_SRCS} ${MQTT_SUBS_SRCS} ${MQTT_PUB_SRCS} ${MQTT_PING_SRCS} \ ${MQTTPUB_SRCS} ${MQTTACC_SRCS} ${MQTTLOG_SRCS} -PROGS = ${MQTTD_PROG} ${MQTT_SUBS_PROG} ${MQTT_PUB_PROG} \ +PROGS = ${MQTTD_PROG} ${MQTT_SUBS_PROG} ${MQTT_PUB_PROG} ${MQTT_PING_PROG} \ ${RTLM_PUB} ${RTLM_ACC} ${RTLM_LOG} MQTTD_SRCS = mqttd.c compile.c dl.c utils.c daemon.c mqttd_calls.c @@ -42,6 +42,10 @@ MQTT_PUB_SRCS = mqtt_pub.c compile.c client.c MQTT_PUB_OBJS = mqtt_pub.o compile.o client.o MQTT_PUB_PROG = mqtt_pub +MQTT_PING_SRCS = mqtt_ping.c compile.c client.c +MQTT_PING_OBJS = mqtt_ping.o compile.o client.o +MQTT_PING_PROG = mqtt_ping + MQTTPUB_SRCS = pubmqtt.c pub_schema.c MQTTPUB_OBJS = pubmqtt.o pub_schema.o RTLM_PUB = mqtt_pub.so @@ -78,6 +82,9 @@ ${MQTT_SUBS_PROG}: ${MQTT_SUBS_OBJS} ${MQTT_PUB_PROG}: ${MQTT_PUB_OBJS} ${CC} ${LDFLAGS} -o${BIN}/$@ ${MQTT_PUB_OBJS} ${LDADD} + +${MQTT_PING_PROG}: ${MQTT_PING_OBJS} + ${CC} ${LDFLAGS} -o${BIN}/$@ ${MQTT_PING_OBJS} ${LDADD} ${RTLM_PUB}: ${MQTTPUB_OBJS} ${CC} ${LDFLAGS} -shared -nostartfiles -o ${LIB}/$@ -Wl,-x,-soname,$@ ${MQTTPUB_OBJS} ${LIBS}