This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
96 lines (77 loc) · 2.21 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# _____ ____ __
# __ ____ _ / _/ |/ / //_/
# / // / ' \_/ // / ,<
# \_,_/_/_/_/___/_/|_/_/|_|
#
# SPDX-License-Identifier: MIT
#
# aclocal m4 dir
ACLOCAL_AMFLAGS = -I m4
# check for debug mode [--enable-debug]
if ENABLE_DEBUG
CFLAGS += -O${OLEVEL} -g
else
CFLAGS += -O${OLEVEL}
endif
# compiler and linkerflags
COMMON_INCLUDES = -I. -Isrc/include
# umINK directories
confdir = $(sysconfdir)/umink
# dist files
EXTRA_DIST = scripts/git-version-gen \
.version
# pre-built
BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version:
echo $(VERSION) > $@-t && mv $@-t $@
dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version
# convenience libraries
noinst_LTLIBRARIES = libumd.la \
libumplg.la \
libumdb.la
# umink daemon
libumd_la_SOURCES = src/umd/umdaemon.c
libumd_la_CFLAGS = ${COMMON_INCLUDES}
# umink plugins
libumplg_la_SOURCES = src/utils/umink_plugin.c
libumplg_la_CFLAGS = ${COMMON_INCLUDES}
# umink db
libumdb_la_SOURCES = src/utils/umdb.c
libumdb_la_CFLAGS = ${COMMON_INCLUDES}
libumdb_la_LIBADD = ${SQLITE_LIBS}
# programs and libraries
bin_PROGRAMS = sysagentd
pkglib_LTLIBRARIES =
# sysagent
sysagentd_SOURCES = src/services/sysagent/sysagentd.c \
src/include/umatomic.h \
src/include/umdaemon.h \
src/include/umdb.h \
src/include/umink_plugin.h \
src/include/utarray.h \
src/include/uthash.h
sysagentd_CFLAGS = ${COMMON_INCLUDES} \
${JSON_C_CFLAGS} \
-Isrc/services/sysagent
sysagentd_LDFLAGS = -export-dynamic
sysagentd_LDADD = libumd.la \
libumplg.la \
${JSON_C_LIBS} \
-ldl
# cleanup rule
distclean-local: distclean-ax-prefix-umink-pkg-config-h
distclean-ax-prefix-umink-pkg-config-h:
rm -f umink_pkg_config.h
if ENABLE_LUA
# sysagent lua plugin
include src/services/sysagent/plugins/lua/Makefile.am
endif
if ENABLE_MQTT
# sysagent mqtt plugin
include src/services/sysagent/plugins/mqtt/Makefile.am
endif
# mosquitto auth plugin
if ENABLE_MOSQUITTO_AUTH
include src/services/sysagent/plugins/mosquitto_auth/Makefile.am
endif