2 AM_CFLAGS = -std=gnu99 -fstack-protector -Wall -pedantic \
3 -Wstrict-prototypes -Wundef -fno-common \
4 -Werror-implicit-function-declaration \
5 -Wformat -Wformat-security -Werror=format-security \
6 -Wconversion -Wunreachable-code
8 AM_CFLAGS += -ggdb3 -O0
11 AM_CFLAGS += --coverage
15 -I $(top_srcdir)/src/include \
16 -I $(top_srcdir)/src/core \
17 -I $(top_srcdir)/src/security \
18 -I $(top_srcdir)/src/shared \
19 -D_MODULE_DIRECTORY=\"$(MODULEDIR)\" \
20 -D_DEFAULT_CONFIGURATION_FILE=\"$(CONFPATH)\" \
21 -D_DB_PATH=\"$(DB_PATH)\" \
22 -D_BUXTON_SOCKET=\"$(BUXTON_SOCKET)\" \
23 -D_SMACK_LOAD_FILE=\"$(SMACK_LOAD_FILE)\"
28 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
29 AUTOMAKE_OPTIONS = color-tests parallel-tests
35 DISTCHECK_CONFIGURE_FLAGS = \
36 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) --enable-debug
38 systemdsystemunitdir = @SYSTEMD_SYSTEMUNITDIR@
39 systemdsystemunit_DATA = data/buxton.service data/buxton.socket
41 systemdsystemunit-install-hook:
42 mkdir -p $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants
43 ln -sf ../buxton.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/buxton.socket
46 $(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/buxton
48 install-data-hook: systemdsystemunit-install-hook
50 systemdsystemunit-uninstall-hook:
51 rm -f $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/buxton.socket
53 uninstall-hook: systemdsystemunit-uninstall-hook
56 rm -f log-check-stderr-file
57 rm -f test/databases/*.db
59 # set library version info
64 pkgconfiglibdir=$(libdir)/pkgconfig
75 docs/buxton-protocol.7 \
76 docs/buxton-security.7 \
77 docs/buxton_client_handle_response.3 \
79 docs/buxton_create_group.3 \
80 docs/buxton_get_value.3 \
81 docs/buxton_key_create.3 \
82 docs/buxton_key_free.3 \
83 docs/buxton_key_get_group.3 \
84 docs/buxton_key_get_layer.3 \
85 docs/buxton_key_get_name.3 \
86 docs/buxton_key_get_type.3 \
88 docs/buxton_register_notification.3 \
89 docs/buxton_remove_group.3 \
90 docs/buxton_response_key.3 \
91 docs/buxton_response_status.3 \
92 docs/buxton_response_type.3 \
93 docs/buxton_response_value.3 \
94 docs/buxton_set_conf_file.3 \
95 docs/buxton_set_label.3 \
96 docs/buxton_set_value.3 \
97 docs/buxton_unregister_notification.3 \
98 docs/buxton_unset_value.3
112 lcov --compat-libtool --directory . --capture --output-file coverage/report
113 genhtml -o coverage/ coverage/report
122 data/libbuxton.pc.in \
124 src/libbuxton/lbuxton.sym \
127 test/test-configurator.conf
129 dist_sysconf_DATA = \
150 buxtonctl_SOURCES = \
162 noinst_LTLIBRARIES += \
165 libbuxton_shared_la_SOURCES = \
166 src/security/smack.c \
167 src/security/smack.h \
168 src/shared/backend.c \
169 src/shared/backend.h \
170 src/shared/buxtonarray.c \
171 src/shared/buxtonarray.h \
172 src/shared/buxtonclient.h \
173 src/shared/buxtondata.h \
174 src/shared/buxtonkey.h \
175 src/shared/buxtonlist.c \
176 src/shared/buxtonlist.h \
177 src/shared/buxtonresponse.h \
178 src/shared/buxtonstring.h \
179 src/shared/configurator.c \
180 src/shared/configurator.h \
181 src/shared/direct.c \
182 src/shared/direct.h \
183 src/shared/hashmap.c \
184 src/shared/hashmap.h \
189 src/shared/protocol.c \
190 src/shared/protocol.h \
191 src/shared/serialize.c \
192 src/shared/serialize.h \
197 if USE_LOCAL_INIPARSER
198 libbuxton_shared_la_SOURCES += \
199 src/shared/dictionary.c \
200 src/shared/dictionary.h \
201 src/shared/iniparser.c \
202 src/shared/iniparser.h
205 libbuxton_shared_la_LDFLAGS = \
215 libbuxton_la_SOURCES = \
216 src/libbuxton/lbuxton.c
218 libbuxton_la_CFLAGS = \
223 libbuxton_la_LDFLAGS = \
226 -version-info $(LIBBUXTON_CURRENT):$(LIBBUXTON_REVISION):$(LIBBUXTON_AGE) \
227 -Wl,--version-script=$(top_srcdir)/src/libbuxton/lbuxton.sym
229 libbuxton_la_LIBADD = \
230 libbuxton-shared.la \
233 pkglib_LTLIBRARIES += \
242 -fvisibility=hidden \
249 memory_la_SOURCES = \
252 memory_la_LDFLAGS = \
254 -fvisibility=hidden \
266 check_buxton_SOURCES = \
270 check_buxton_CFLAGS = \
274 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
275 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
276 check_buxton_LDADD = \
281 check_shared_lib_SOURCES = \
284 test/check_shared_lib.c
285 check_shared_lib_CFLAGS = \
290 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
291 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
292 check_shared_lib_LDADD = \
298 check_buxtond_SOURCES = \
304 check_buxtond_CFLAGS = \
309 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
310 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
311 check_buxtond_LDADD = \
317 check_daemon_SOURCES = \
323 check_daemon_CFLAGS = \
328 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
329 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
330 check_daemon_LDADD = \
336 check_smack_SOURCES = \
340 check_smack_CFLAGS = \
345 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
346 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
347 check_smack_LDADD = \
353 check_configurator_SOURCES = \
354 src/shared/configurator.c \
355 src/shared/configurator.h \
356 test/check_configurator.c
357 check_configurator_CFLAGS = \
362 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
363 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
364 check_configurator_LDADD = \
381 bxt_hello_set_label \
382 bxt_hello_create_group \
383 bxt_hello_remove_group \
386 bxt_hello_notify_multi
389 bxt_timing_SOURCES = \
393 libbuxton-shared.la \
396 bxt_hello_get_SOURCES = \
398 bxt_hello_get_CFLAGS = \
400 bxt_hello_get_LDADD = \
403 bxt_hello_set_SOURCES = \
405 bxt_hello_set_CFLAGS = \
407 bxt_hello_set_LDADD = \
410 bxt_hello_set_label_SOURCES = \
412 bxt_hello_set_label_CFLAGS = \
414 bxt_hello_set_label_LDADD = \
417 bxt_hello_create_group_SOURCES = \
418 demo/hellocreategroup.c
419 bxt_hello_create_group_CFLAGS = \
421 bxt_hello_create_group_LDADD = \
424 bxt_hello_remove_group_SOURCES = \
425 demo/helloremovegroup.c
426 bxt_hello_remove_group_CFLAGS = \
428 bxt_hello_remove_group_LDADD = \
431 bxt_hello_unset_SOURCES = \
433 bxt_hello_unset_CFLAGS = \
435 bxt_hello_unset_LDADD = \
438 bxt_hello_notify_SOURCES = \
440 bxt_hello_notify_CFLAGS = \
442 bxt_hello_notify_LDADD = \
445 bxt_hello_notify_multi_SOURCES = \
447 bxt_hello_notify_multi_CFLAGS = \
449 bxt_hello_notify_multi_LDADD = \
456 bxt_gtk_client_SOURCES = \
459 bxt_gtk_client_LDADD = \
463 bxt_gtk_client_CFLAGS = \