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
17 -I $(top_srcdir)/src/include \
18 -I $(top_srcdir)/src/core \
19 -I $(top_srcdir)/src/security \
20 -I $(top_srcdir)/src/shared \
21 -D_MODULE_DIRECTORY=\"$(MODULEDIR)\" \
22 -D_DEFAULT_CONFIGURATION_FILE=\"$(CONFPATH)\" \
23 -D_DB_PATH=\"$(DB_PATH)\" \
24 -D_BUXTON_SOCKET=\"$(BUXTON_SOCKET)\" \
25 -D_SMACK_LOAD_FILE=\"$(SMACK_LOAD_FILE)\"
30 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
31 AUTOMAKE_OPTIONS = color-tests parallel-tests
37 DISTCHECK_CONFIGURE_FLAGS = \
38 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) --enable-debug
40 systemdsystemunitdir = @SYSTEMD_SYSTEMUNITDIR@
41 systemdsystemunit_DATA = data/buxton.service data/buxton.socket
43 systemdsystemunit-install-hook:
44 mkdir -p $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants
45 ln -sf ../buxton.socket $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/buxton.socket
48 $(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/buxton
50 install-data-hook: systemdsystemunit-install-hook
52 systemdsystemunit-uninstall-hook:
53 rm -f $(DESTDIR)$(systemdsystemunitdir)/sockets.target.wants/buxton.socket
55 uninstall-hook: systemdsystemunit-uninstall-hook
58 rm -f log-check-stderr-file
59 rm -f test/databases/*.db
61 # set library version info
66 pkgconfiglibdir=$(libdir)/pkgconfig
77 docs/buxton-protocol.7 \
78 docs/buxton-security.7 \
79 docs/buxton_client_handle_response.3 \
81 docs/buxton_create_group.3 \
82 docs/buxton_get_value.3 \
83 docs/buxton_key_create.3 \
84 docs/buxton_key_free.3 \
85 docs/buxton_key_get_group.3 \
86 docs/buxton_key_get_layer.3 \
87 docs/buxton_key_get_name.3 \
88 docs/buxton_key_get_type.3 \
90 docs/buxton_register_notification.3 \
91 docs/buxton_remove_group.3 \
92 docs/buxton_response_key.3 \
93 docs/buxton_response_status.3 \
94 docs/buxton_response_type.3 \
95 docs/buxton_response_value.3 \
96 docs/buxton_set_conf_file.3 \
97 docs/buxton_set_label.3 \
98 docs/buxton_set_value.3 \
99 docs/buxton_unregister_notification.3 \
100 docs/buxton_unset_value.3
114 lcov --compat-libtool --directory . --capture --output-file coverage/report
115 genhtml -o coverage/ coverage/report
124 data/libbuxton.pc.in \
126 src/libbuxton/lbuxton.sym \
129 test/test-configurator.conf
131 dist_sysconf_DATA = \
156 buxtonctl_SOURCES = \
169 buxtonctl_LDFLAGS = \
172 noinst_LTLIBRARIES += \
175 libbuxton_shared_la_SOURCES = \
176 src/security/smack.c \
177 src/security/smack.h \
178 src/shared/backend.c \
179 src/shared/backend.h \
180 src/shared/buxtonarray.c \
181 src/shared/buxtonarray.h \
182 src/shared/buxtonclient.h \
183 src/shared/buxtondata.h \
184 src/shared/buxtonkey.h \
185 src/shared/buxtonlist.c \
186 src/shared/buxtonlist.h \
187 src/shared/buxtonresponse.h \
188 src/shared/buxtonstring.h \
189 src/shared/configurator.c \
190 src/shared/configurator.h \
191 src/shared/direct.c \
192 src/shared/direct.h \
193 src/shared/hashmap.c \
194 src/shared/hashmap.h \
199 src/shared/protocol.c \
200 src/shared/protocol.h \
201 src/shared/serialize.c \
202 src/shared/serialize.h \
207 if USE_LOCAL_INIPARSER
208 libbuxton_shared_la_SOURCES += \
209 src/shared/dictionary.c \
210 src/shared/dictionary.h \
211 src/shared/iniparser.c \
212 src/shared/iniparser.h
215 libbuxton_shared_la_LDFLAGS = \
225 libbuxton_la_SOURCES = \
226 src/libbuxton/lbuxton.c
228 libbuxton_la_CFLAGS = \
233 libbuxton_la_LDFLAGS = \
236 -version-info $(LIBBUXTON_CURRENT):$(LIBBUXTON_REVISION):$(LIBBUXTON_AGE) \
237 -Wl,--version-script=$(top_srcdir)/src/libbuxton/lbuxton.sym
239 libbuxton_la_LIBADD = \
240 libbuxton-shared.la \
243 pkglib_LTLIBRARIES += \
252 -fvisibility=hidden \
259 memory_la_SOURCES = \
262 memory_la_LDFLAGS = \
264 -fvisibility=hidden \
276 check_buxton_SOURCES = \
280 check_buxton_CFLAGS = \
284 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
285 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
286 check_buxton_LDADD = \
291 check_shared_lib_SOURCES = \
294 test/check_shared_lib.c
295 check_shared_lib_CFLAGS = \
300 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
301 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
302 check_shared_lib_LDADD = \
308 check_buxtond_SOURCES = \
314 check_buxtond_CFLAGS = \
319 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
320 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
321 check_buxtond_LDADD = \
327 check_daemon_SOURCES = \
333 check_daemon_CFLAGS = \
338 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
339 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
340 check_daemon_LDADD = \
346 check_smack_SOURCES = \
350 check_smack_CFLAGS = \
355 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
356 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
357 check_smack_LDADD = \
363 check_configurator_SOURCES = \
364 src/shared/configurator.c \
365 src/shared/configurator.h \
366 test/check_configurator.c
367 check_configurator_CFLAGS = \
372 -DABS_TOP_SRCDIR=\"$(abs_top_srcdir)\" \
373 -DABS_TOP_BUILDDIR=\"$(abs_top_builddir)\"
374 check_configurator_LDADD = \
391 bxt_hello_set_label \
392 bxt_hello_create_group \
393 bxt_hello_remove_group \
396 bxt_hello_notify_multi
399 bxt_timing_SOURCES = \
403 libbuxton-shared.la \
406 bxt_hello_get_SOURCES = \
408 bxt_hello_get_CFLAGS = \
410 bxt_hello_get_LDADD = \
413 bxt_hello_set_SOURCES = \
415 bxt_hello_set_CFLAGS = \
417 bxt_hello_set_LDADD = \
420 bxt_hello_set_label_SOURCES = \
422 bxt_hello_set_label_CFLAGS = \
424 bxt_hello_set_label_LDADD = \
427 bxt_hello_create_group_SOURCES = \
428 demo/hellocreategroup.c
429 bxt_hello_create_group_CFLAGS = \
431 bxt_hello_create_group_LDADD = \
434 bxt_hello_remove_group_SOURCES = \
435 demo/helloremovegroup.c
436 bxt_hello_remove_group_CFLAGS = \
438 bxt_hello_remove_group_LDADD = \
441 bxt_hello_unset_SOURCES = \
443 bxt_hello_unset_CFLAGS = \
445 bxt_hello_unset_LDADD = \
448 bxt_hello_notify_SOURCES = \
450 bxt_hello_notify_CFLAGS = \
452 bxt_hello_notify_LDADD = \
455 bxt_hello_notify_multi_SOURCES = \
457 bxt_hello_notify_multi_CFLAGS = \
459 bxt_hello_notify_multi_LDADD = \
466 bxt_gtk_client_SOURCES = \
469 bxt_gtk_client_LDADD = \
473 bxt_gtk_client_CFLAGS = \