863f2bc9983c33221f5936421fc9c06caf21639aTimo Sirainenpkgsysconfdir = $(sysconfdir)/dovecot
863f2bc9983c33221f5936421fc9c06caf21639aTimo Sirainen
3faa1040e5a3f9f35ffad29110216094ab2f5880Timo Sirainennoinst_LTLIBRARIES = libmaster.la
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo SirainenAM_CPPFLAGS = \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen -I$(top_srcdir)/src/lib \
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen -I$(top_srcdir)/src/lib-test \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen -I$(top_srcdir)/src/lib-settings \
cf3894a2a22dc76247275e7ad7a5417fa5f27a28Timo Sirainen -I$(top_srcdir)/src/lib-ssl-iostream \
b8efab7ea8876c0a33a73ee0d08eddada31320f8Timo Sirainen -DPKG_RUNDIR=\""$(rundir)"\" \
96d19229e5f322411eb84446e5477d8170cfa5afTimo Sirainen -DPKG_STATEDIR=\""$(statedir)"\" \
863f2bc9983c33221f5936421fc9c06caf21639aTimo Sirainen -DSYSCONFDIR=\""$(pkgsysconfdir)"\" \
7ab70e15c63c172c1715a40c8ffcff0285b6f05eTimo Sirainen -DBINDIR=\""$(bindir)"\"
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainenlibmaster_la_SOURCES = \
83879fb63453dc3b96269d2217339e14dca753b4Timo Sirainen anvil-client.c \
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen ipc-client.c \
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen ipc-server.c \
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen master-auth.c \
d47a87c927ca77e780480f4eaf575511698d42c8Timo Sirainen master-instance.c \
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen master-login.c \
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen master-login-auth.c \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen master-service.c \
8761992b5aa05862e7ec3a460cdc17af41a4a0f5Timo Sirainen master-service-haproxy.c \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen master-service-settings.c \
5d03d9f439e41c90215a3c938ffebe4c2a8ae257Timo Sirainen master-service-settings-cache.c \
3faa1040e5a3f9f35ffad29110216094ab2f5880Timo Sirainen master-service-ssl.c \
f29756821a4c6b12b73e4a2a3e1c230117a43773Timo Sirainen master-service-ssl-settings.c \
b63e20ea9bc84f1aa90a551f217d01385e070b73Timo Sirainen stats-client.c \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen syslog-util.c
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen
9874b30b34224c1372800be017f3bb636e7d7f7aTimo Sirainenheaders = \
83879fb63453dc3b96269d2217339e14dca753b4Timo Sirainen anvil-client.h \
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen ipc-client.h \
83942ac160cdfb922c3a2f29ddfae2a13ebf8b5dTimo Sirainen ipc-server.h \
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen master-auth.h \
d47a87c927ca77e780480f4eaf575511698d42c8Timo Sirainen master-instance.h \
d176f84ce5ca2073f4dfbafb457b9c74f6bf0d76Timo Sirainen master-interface.h \
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen master-login.h \
cf0ad1a0bddb0787f3d7b408a96d721a8b2a98a3Timo Sirainen master-login-auth.h \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen master-service.h \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen master-service-private.h \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen master-service-settings.h \
2710604bdf77c8db98ef3837223edc81a24a52f0Timo Sirainen master-service-settings-cache.h \
cf3894a2a22dc76247275e7ad7a5417fa5f27a28Timo Sirainen master-service-ssl.h \
f29756821a4c6b12b73e4a2a3e1c230117a43773Timo Sirainen master-service-ssl-settings.h \
9f0f2de10e4ea0c99052bf4b2bef8179f2536228Timo Sirainen service-settings.h \
b63e20ea9bc84f1aa90a551f217d01385e070b73Timo Sirainen stats-client.h \
8d3278a82b964217d95c340ec6f82037cdc59d19Timo Sirainen syslog-util.h
9874b30b34224c1372800be017f3bb636e7d7f7aTimo Sirainen
53f37d41e1abb068131320f39f870fc92e81f560Timo Sirainenpkginc_libdir=$(pkgincludedir)
53f37d41e1abb068131320f39f870fc92e81f560Timo Sirainenpkginc_lib_HEADERS = $(headers)
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainentest_programs = \
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen test-master-service-settings-cache
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainennoinst_PROGRAMS = $(test_programs)
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainentest_libs = \
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen ../lib-test/libtest.la \
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen ../lib/liblib.la
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainentest_deps = $(noinst_LTLIBRARIES) $(test_libs)
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainentest_master_service_settings_cache_SOURCES = test-master-service-settings-cache.c
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainentest_master_service_settings_cache_LDADD = master-service-settings-cache.lo ../lib-settings/libsettings.la $(test_libs)
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainentest_master_service_settings_cache_DEPENDENCIES = $(test_deps) ../lib-settings/libsettings.la
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen
149299c7d5136a8fb425ef3cf8953026a1358002Timo Sirainencheck-local:
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen for bin in $(test_programs); do \
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen if ! $(RUN_TEST) ./$$bin; then exit 1; fi; \
e479250007aaa49c9f38aa294f5cfb024cbcec73Timo Sirainen done