Annotation of mqtt/src/Makefile.in, revision 1.2.2.2
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.2.2.2 ! misho 6: # $Id: Makefile.in,v 1.2.2.1 2012/10/11 14:58:46 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.2.2.1 misho 21: SQLITE3DIR = @SQLITE3DIR@
22:
1.2 misho 23: LIBS = -laitio -laitcrc -laitcfg -lsqlite3
24: LDADD = -laitmqtt -lpthread -laitsched -laitio -laitcfg -laitcrc -lutil -lcrypto
25:
1.2.2.1 misho 26: CFLAGS = -I. -I${INC} -I${includedir} -I${SQLITE3DIR}/include @CFLAGS@
27: LDFLAGS = -L. -L${LIB} -L${libdir} -L${SQLITE3DIR}/lib @LDFLAGS@
1.2 misho 28:
29: SRCS = ${MQTTD_SRCS} ${MQTT_SUBS_SRCS} ${MQTT_PUB_SRCS} ${MQTT_PING_SRCS} \
30: ${MQTTPUB_SRCS} ${MQTTACC_SRCS} ${MQTTLOG_SRCS}
31: PROGS = ${MQTTD_PROG} ${MQTT_SUBS_PROG} ${MQTT_PUB_PROG} ${MQTT_PING_PROG} \
32: ${RTLM_PUB} ${RTLM_ACC} ${RTLM_LOG}
33:
34: MQTTD_SRCS = mqttd.c compile.c dl.c utils.c daemon.c mqttd_calls.c
35: MQTTD_OBJS = mqttd.o compile.o dl.o utils.o daemon.o mqttd_calls.o
36: MQTTD_PROG = mqttd
37:
38: MQTT_SUBS_SRCS = mqtt_subs.c compile.c client.c
39: MQTT_SUBS_OBJS = mqtt_subs.o compile.o client.o
40: MQTT_SUBS_PROG = mqtt_subs
41:
42: MQTT_PUB_SRCS = mqtt_pub.c compile.c client.c
43: MQTT_PUB_OBJS = mqtt_pub.o compile.o client.o
44: MQTT_PUB_PROG = mqtt_pub
45:
46: MQTT_PING_SRCS = mqtt_ping.c compile.c client.c
47: MQTT_PING_OBJS = mqtt_ping.o compile.o client.o
48: MQTT_PING_PROG = mqtt_ping
49:
50: MQTTPUB_SRCS = pubmqtt.c pub_schema.c
51: MQTTPUB_OBJS = pubmqtt.o pub_schema.o
52: RTLM_PUB = mqtt_pub.so
53:
54: MQTTACC_SRCS = accmqtt.c acc_schema.c
55: MQTTACC_OBJS = accmqtt.o acc_schema.o
56: RTLM_ACC = mqtt_acc.so
57:
58: MQTTLOG_SRCS = logmqtt.c
59: MQTTLOG_OBJS = logmqtt.o
60: RTLM_LOG = mqtt_log.so
61:
62:
63: all: depend \
64: ${PROGS} \
65:
66: depend:
67: ./compile.sh
68: ${MKDEP} ${CFLAGS} ${SRCS}
69:
70: clean:
71: rm -f *.o .depend compile.c acc_schema.c pub_schema.c *~
72:
73: install:
74:
75: .o: compile.c acc_schema.c pub_schema.c
76: ${CC} -c ${CFLAGS} $<
77:
78: ${MQTTD_PROG}: ${MQTTD_OBJS}
79: ${CC} ${LDFLAGS} -o${BIN}/$@ ${MQTTD_OBJS} ${LDADD}
80:
81: ${MQTT_SUBS_PROG}: ${MQTT_SUBS_OBJS}
82: ${CC} ${LDFLAGS} -o${BIN}/$@ ${MQTT_SUBS_OBJS} ${LDADD}
83:
84: ${MQTT_PUB_PROG}: ${MQTT_PUB_OBJS}
85: ${CC} ${LDFLAGS} -o${BIN}/$@ ${MQTT_PUB_OBJS} ${LDADD}
86:
87: ${MQTT_PING_PROG}: ${MQTT_PING_OBJS}
88: ${CC} ${LDFLAGS} -o${BIN}/$@ ${MQTT_PING_OBJS} ${LDADD}
89:
90: ${RTLM_PUB}: ${MQTTPUB_OBJS}
91: ${CC} ${LDFLAGS} -shared -nostartfiles -o ${LIB}/$@ -Wl,-x,-soname,$@ ${MQTTPUB_OBJS} ${LIBS}
92:
93: ${RTLM_ACC}: ${MQTTACC_OBJS}
94: ${CC} ${LDFLAGS} -shared -nostartfiles -o ${LIB}/$@ -Wl,-x,-soname,$@ ${MQTTACC_OBJS} ${LIBS}
95:
96: ${RTLM_LOG}: ${MQTTLOG_OBJS}
97: ${CC} ${LDFLAGS} -shared -nostartfiles -o ${LIB}/$@ -Wl,-x,-soname,$@ ${MQTTLOG_OBJS}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>