]> git.meshlink.io Git - catta/blobdiff - avahi-core/Makefile.am
* Compile tests only when --enable-tests was specified on the configure command line
[catta] / avahi-core / Makefile.am
index 14b161a8309f09df7bd340a4a8b9e3e83337e2cf..95166157ede800f0755df3448ea6fb3577292218 100644 (file)
@@ -34,6 +34,7 @@ avahiinclude_HEADERS = \
 lib_LTLIBRARIES = \
        libavahi-core.la 
 
+if ENABLE_TESTS
 noinst_PROGRAMS = \
        prioq-test \
        avahi-test \
@@ -42,12 +43,14 @@ noinst_PROGRAMS = \
        dns-test \
        timeeventq-test \
        hashmap-test \
-       querier-test
+       querier-test \
+       update-test
+endif  
 
 libavahi_core_la_SOURCES = \
        timeeventq.c timeeventq.h\
        iface.c iface.h \
-       server.c server.h \
+       server.c internal.h entry.c \
        prioq.c prioq.h \
        cache.c cache.h \
        socket.c socket.h \
@@ -74,11 +77,16 @@ libavahi_core_la_SOURCES = \
        wide-area.c wide-area.h \
        multicast-lookup.c multicast-lookup.h \
        querier.c querier.h
-       
+
 if HAVE_NETLINK
 libavahi_core_la_SOURCES += \
        iface-linux.c iface-linux.h \
        netlink.c netlink.h
+else
+if HAVE_PF_ROUTE 
+libavahi_core_la_SOURCES += \
+       iface-pfroute.c iface-pfroute.h
+endif
 endif
 
 libavahi_core_la_CFLAGS = $(AM_CFLAGS)
@@ -96,6 +104,10 @@ avahi_test_SOURCES = \
 avahi_test_CFLAGS = $(AM_CFLAGS)
 avahi_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
 
+update_test_SOURCES = \
+       update-test.c
+update_test_CFLAGS = $(AM_CFLAGS)
+update_test_LDADD = $(AM_LDADD) ../avahi-common/libavahi-common.la libavahi-core.la
 
 querier_test_SOURCES = \
        querier-test.c