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