Annotation of mqtt/src/Makefile.in, revision 1.4.2.1
1.2 misho 1: #
2: # (C) 2011 AITnet - Sofia/Bulgaria - <misho@openbsd-bg.org>
3: # by Michael Pounov <misho@elwix.org>
4: #
5: # $Author: misho $
1.4.2.1 ! misho 6: # $Id: Makefile.in,v 1.4 2017/10/08 22:49:24 misho Exp $
1.2 misho 7: #
8: prefix = @prefix@
9: exec_prefix = @exec_prefix@
10: includedir = @includedir@
11: libdir = @libdir@
12:
13: CC = @CC@
14: MKDEP = @MKDEP@
15: RANLIB = @RANLIB@
16:
17: BIN = ../bin
18: INC = ../inc
19: LIB = ../lib
20:
1.3 misho 21: SQLITE3DIR = @SQLITE3DIR@
1.4.2.1 ! misho 22: SQLITE3INC = @SQLITE3INC@
! 23: SQLITE3LIB = @SQLITE3LIB@
1.3 misho 24:
1.4 misho 25: LIBS = -lelwix -laitcfg -lsqlite3
26: LDADD = -laitmqtt -lpthread -laitsched -lelwix -laitcfg -lutil -lcrypto
1.2 misho 27:
1.4.2.1 ! misho 28: CFLAGS = -I. -I${INC} -I${includedir} -I${SQLITE3DIR}/include -I${SQLITE3INC} @CFLAGS@
! 29: LDFLAGS = -L. -L${LIB} -L${libdir} -L${SQLITE3DIR}/lib -L${SQLITE3LIB} @LDFLAGS@
1.2 misho 30:
31: SRCS = ${MQTTD_SRCS} ${MQTT_SUBS_SRCS} ${MQTT_PUB_SRCS} ${MQTT_PING_SRCS} \
32: ${MQTTPUB_SRCS} ${MQTTACC_SRCS} ${MQTTLOG_SRCS}
33: PROGS = ${MQTTD_PROG} ${MQTT_SUBS_PROG} ${MQTT_PUB_PROG} ${MQTT_PING_PROG} \
34: ${RTLM_PUB} ${RTLM_ACC} ${RTLM_LOG}
35:
36: MQTTD_SRCS = mqttd.c compile.c dl.c utils.c daemon.c mqttd_calls.c
37: MQTTD_OBJS = mqttd.o compile.o dl.o utils.o daemon.o mqttd_calls.o
38: MQTTD_PROG = mqttd
39:
40: MQTT_SUBS_SRCS = mqtt_subs.c compile.c client.c
41: MQTT_SUBS_OBJS = mqtt_subs.o compile.o client.o
42: MQTT_SUBS_PROG = mqtt_subs
43:
44: MQTT_PUB_SRCS = mqtt_pub.c compile.c client.c
45: MQTT_PUB_OBJS = mqtt_pub.o compile.o client.o
46: MQTT_PUB_PROG = mqtt_pub
47:
48: MQTT_PING_SRCS = mqtt_ping.c compile.c client.c
49: MQTT_PING_OBJS = mqtt_ping.o compile.o client.o
50: MQTT_PING_PROG = mqtt_ping
51:
52: MQTTPUB_SRCS = pubmqtt.c pub_schema.c
53: MQTTPUB_OBJS = pubmqtt.o pub_schema.o
54: RTLM_PUB = mqtt_pub.so
55:
56: MQTTACC_SRCS = accmqtt.c acc_schema.c
57: MQTTACC_OBJS = accmqtt.o acc_schema.o
58: RTLM_ACC = mqtt_acc.so
59:
60: MQTTLOG_SRCS = logmqtt.c
61: MQTTLOG_OBJS = logmqtt.o
62: RTLM_LOG = mqtt_log.so
63:
64:
65: all: depend \
66: ${PROGS} \
67:
68: depend:
69: ./compile.sh
70: ${MKDEP} ${CFLAGS} ${SRCS}
71:
72: clean:
73: rm -f *.o .depend compile.c acc_schema.c pub_schema.c *~
74:
75: install:
76:
77: .o: compile.c acc_schema.c pub_schema.c
78: ${CC} -c ${CFLAGS} $<
79:
80: ${MQTTD_PROG}: ${MQTTD_OBJS}
81: ${CC} ${LDFLAGS} -o${BIN}/$@ ${MQTTD_OBJS} ${LDADD}
82:
83: ${MQTT_SUBS_PROG}: ${MQTT_SUBS_OBJS}
84: ${CC} ${LDFLAGS} -o${BIN}/$@ ${MQTT_SUBS_OBJS} ${LDADD}
85:
86: ${MQTT_PUB_PROG}: ${MQTT_PUB_OBJS}
87: ${CC} ${LDFLAGS} -o${BIN}/$@ ${MQTT_PUB_OBJS} ${LDADD}
88:
89: ${MQTT_PING_PROG}: ${MQTT_PING_OBJS}
90: ${CC} ${LDFLAGS} -o${BIN}/$@ ${MQTT_PING_OBJS} ${LDADD}
91:
92: ${RTLM_PUB}: ${MQTTPUB_OBJS}
93: ${CC} ${LDFLAGS} -shared -nostartfiles -o ${LIB}/$@ -Wl,-x,-soname,$@ ${MQTTPUB_OBJS} ${LIBS}
94:
95: ${RTLM_ACC}: ${MQTTACC_OBJS}
96: ${CC} ${LDFLAGS} -shared -nostartfiles -o ${LIB}/$@ -Wl,-x,-soname,$@ ${MQTTACC_OBJS} ${LIBS}
97:
98: ${RTLM_LOG}: ${MQTTLOG_OBJS}
99: ${CC} ${LDFLAGS} -shared -nostartfiles -o ${LIB}/$@ -Wl,-x,-soname,$@ ${MQTTLOG_OBJS}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>