X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=tests%2FMakefile.am;h=e28b0b721af8e3074af3e818c0ad7489a1c207b0;hb=7a5b2f69af7d36d6cd4153142f125fa011784e03;hp=f300c6cd56ef018e36ff64e4e53adf77d66e8807;hpb=7934ca5e102693ba02d9ca6dcdee4960f2ba1a64;p=catta diff --git a/tests/Makefile.am b/tests/Makefile.am index f300c6c..e28b0b7 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1,7 +1,5 @@ -# $Id$ -# # This file is part of avahi. -# +# # avahi is free software; you can redistribute it and/or modify it # under the terms of the GNU Lesser General Public License as # published by the Free Software Foundation; either version 2 of the @@ -20,20 +18,36 @@ AM_CFLAGS= \ -I$(top_srcdir) -# GLIB 2.0 -AM_CFLAGS+=$(GLIB20_CFLAGS) -AM_LDADD=$(GLIB20_LIBS) +if HAVE_GLIB +if HAVE_DBUS +if HAVE_NETLINK + +if ENABLE_TESTS +noinst_PROGRAMS = c-plus-plus-test +endif -noinst_PROGRAMS = \ - c-plus-plus-test +c_plus_plus_test_SOURCES = c-plus-plus-test.cc -c_plus_plus_test_SOURCES = \ - c-plus-plus-test.cc +c_plus_plus_test_CXXFLAGS = \ + $(AM_CFLAGS) \ + $(GLIB20_CFLAGS) \ + $(DBUS_CFLAGS) -c_plus_plus_CFLAGS = $(AM_CFLAGS) -c_plus_plus_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la ../avahi-core/libavahi-core.la +c_plus_plus_test_LDADD = \ + $(AM_LDADD) \ + ../avahi-common/libavahi-common.la \ + ../avahi-core/libavahi-core.la \ + ../avahi-client/libavahi-client.la \ + ../avahi-glib/libavahi-glib.la \ + $(GLIB20_LIBS) \ + $(DBUS_LIBS) + +endif +endif +endif EXTRA_DIST=c-plus-plus-test-gen.py gen: - python ./c-plus-plus-test-gen.py > c-plus-plus-test.cc + python ./c-plus-plus-test-gen.py avahi-common avahi-core avahi-client avahi-glib > c-plus-plus-test.cc +