X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Makefile.am;h=266ff10c1048ee777a146b5ebe1af18d2c822dae;hb=2f7fd156e92952dc478d3735e79af7d344a1eba1;hp=aa8c59f9a7599d15d796e478b0ec582b6659d32d;hpb=949a964dc749cf2fdd2cfff4026a5c8ad5007c45;p=collectd.git diff --git a/Makefile.am b/Makefile.am index aa8c59f9..266ff10c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -576,7 +576,7 @@ liboconfig_la_LDFLAGS = -avoid-version $(LEXLIB) if BUILD_WITH_LIBCURL if BUILD_WITH_LIBSSL -if BUILD_WITH_LIBYAJL +if BUILD_WITH_LIBYAJL2 noinst_LTLIBRARIES += liboauth.la liboauth_la_SOURCES = \ src/utils_oauth.c \ @@ -593,8 +593,12 @@ liboauth_la_LIBADD = \ check_PROGRAMS += test_utils_oauth TESTS += test_utils_oauth -test_utils_oauth_SOURCES = utils_oauth_test.c -test_utils_oauth_LDADD = liboauth.la daemon/libcommon.la daemon/libplugin_mock.la +test_utils_oauth_SOURCES = \ + src/utils_oauth_test.c +test_utils_oauth_LDADD = \ + liboauth.la \ + libcommon.la \ + libplugin_mock.la endif endif endif @@ -611,27 +615,27 @@ libgce_la_LIBADD = \ $(BUILD_WITH_LIBCURL_LIBS) endif -if BUILD_WITH_LIBYAJL -noinst_LTLIBRARIES += libformat_gcm.la -libformat_gcm_la_SOURCES = \ - src/utils_format_gcm.c \ - src/utils_format_gcm.h -libformat_gcm_la_CPPFLAGS = \ +if BUILD_WITH_LIBYAJL2 +noinst_LTLIBRARIES += libformat_stackdriver.la +libformat_stackdriver_la_SOURCES = \ + src/utils_format_stackdriver.c \ + src/utils_format_stackdriver.h +libformat_stackdriver_la_CPPFLAGS = \ $(AM_CPPFLAGS) \ $(BUILD_WITH_LIBYAJL_CPPFLAGS) -libformat_gcm_la_LIBADD = \ +libformat_stackdriver_la_LIBADD = \ libavltree.la \ $(BUILD_WITH_LIBSSL_LIBS) \ $(BUILD_WITH_LIBYAJL_LIBS) -check_PROGRAMS += test_format_gcm -TESTS += test_format_gcm -test_format_gcm_SOURCES = \ - utils_format_gcm_test.c \ - testing.h -test_format_gcm_LDADD = \ - libformat_gcm.la \ - daemon/libplugin_mock.la \ +check_PROGRAMS += test_format_stackdriver +TESTS += test_format_stackdriver +test_format_stackdriver_SOURCES = \ + src/utils_format_stackdriver_test.c \ + src/testing.h +test_format_stackdriver_LDADD = \ + libformat_stackdriver.la \ + libplugin_mock.la \ -lm endif @@ -2037,6 +2041,15 @@ write_sensu_la_SOURCES = src/write_sensu.c write_sensu_la_LDFLAGS = $(PLUGIN_LDFLAGS) endif +if BUILD_PLUGIN_WRITE_STACKDRIVER +pkglib_LTLIBRARIES += write_stackdriver.la +write_stackdriver_la_SOURCES = src/write_stackdriver.c +write_stackdriver_la_LDFLAGS = $(PLUGIN_LDFLAGS) +write_stackdriver_la_CPPFLAGS = $(AM_CPPFLAGS) $(BUILD_WITH_LIBCURL_CFLAGS) +write_stackdriver_la_LIBADD = libformat_stackdriver.la libgce.la liboauth.la \ + $(BUILD_WITH_LIBCURL_LIBS) +endif + if BUILD_PLUGIN_WRITE_TSDB pkglib_LTLIBRARIES += write_tsdb.la write_tsdb_la_SOURCES = src/write_tsdb.c