]> 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 b62a4d54c763403c6006773a9d1baa82dc1923ce..95166157ede800f0755df3448ea6fb3577292218 100644 (file)
@@ -34,6 +34,7 @@ avahiinclude_HEADERS = \
 lib_LTLIBRARIES = \
        libavahi-core.la 
 
+if ENABLE_TESTS
 noinst_PROGRAMS = \
        prioq-test \
        avahi-test \
@@ -44,11 +45,12 @@ noinst_PROGRAMS = \
        hashmap-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 \
@@ -80,6 +82,11 @@ 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)