Home | History | Annotate | Download | only in tests
      1 # This file is part of avahi.
      2 #
      3 # avahi is free software; you can redistribute it and/or modify it
      4 # under the terms of the GNU Lesser General Public License as
      5 # published by the Free Software Foundation; either version 2 of the
      6 # License, or (at your option) any later version.
      7 #
      8 # avahi is distributed in the hope that it will be useful, but WITHOUT
      9 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
     10 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
     11 # License for more details.
     12 #
     13 # You should have received a copy of the GNU Lesser General Public
     14 # License along with avahi; if not, write to the Free Software
     15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
     16 # USA.
     17 
     18 AM_CFLAGS= \
     19 	-I$(top_srcdir)
     20 
     21 if HAVE_GLIB
     22 if HAVE_DBUS
     23 if HAVE_NETLINK
     24 
     25 if ENABLE_TESTS
     26 noinst_PROGRAMS = c-plus-plus-test
     27 endif
     28 
     29 c_plus_plus_test_SOURCES = c-plus-plus-test.cc
     30 
     31 c_plus_plus_test_CXXFLAGS = \
     32 	$(AM_CFLAGS) \
     33 	$(GLIB20_CFLAGS) \
     34 	$(DBUS_CFLAGS)
     35 
     36 c_plus_plus_test_LDADD = \
     37 	$(AM_LDADD) \
     38 	../avahi-common/libavahi-common.la \
     39 	../avahi-core/libavahi-core.la \
     40 	../avahi-client/libavahi-client.la \
     41 	../avahi-glib/libavahi-glib.la  \
     42 	$(GLIB20_LIBS) \
     43 	$(DBUS_LIBS)
     44 
     45 endif
     46 endif
     47 endif
     48 
     49 EXTRA_DIST=c-plus-plus-test-gen.py
     50 
     51 gen:
     52 	python ./c-plus-plus-test-gen.py avahi-common avahi-core avahi-client avahi-glib > c-plus-plus-test.cc
     53 
     54