Debian Codegraph @

plugins/persist-sqlite/Makefile

raw
1 R=../..
2 include ${R}/config.mk
3
4 PLUGIN_NAME=mosquitto_persist_sqlite
5 LOCAL_CFLAGS+=
6 LOCAL_CPPFLAGS+=-I${R}/src/ -I${R}/plugins/common
7 LOCAL_LIBADD+=-lsqlite3 ${LIBMOSQ_COMMON}
8 LOCAL_LDFLAGS+=
9
10 OBJS = \
11 base_msgs.o \
12 clients.o \
13 client_msgs.o \
14 common.o \
15 init.o \
16 plugin.o \
17 restore.o \
18 retain_msgs.o \
19 subscriptions.o \
20 tick.o \
21 will.o
22
23 OBJS_EXTERNAL = \
24 json_help.o
25
26 ifeq ($(WITH_SQLITE),yes)
27 ALL_DEPS:= binary
28 else
29 ALL_DEPS:=
30 endif
31
32 all : ${ALL_DEPS}
33
34 json_help.o : ${R}/common/json_help.c ${R}/common/json_help.h
35 ${CROSS_COMPILE}${CC} $(LOCAL_CPPFLAGS) $(LOCAL_CFLAGS) -c $< -o $@
36
37 EXTRA_DEPS:=persist_sqlite.h
38
39 include ${R}/plugins/plugin.mk