Fix memory leaks in cadet tests
[oweals/gnunet.git] / contrib / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
3
4 tap32dir = $(pkgdatadir)/openvpn-tap32/tapw32/
5
6 tap64dir = $(pkgdatadir)/openvpn-tap32/tapw64/
7
8 noinst_PROGRAMS = \
9  timeout_watchdog
10
11 if !MINGW
12 timeout_watchdog_SOURCES = \
13  timeout_watchdog.c
14 else
15 timeout_watchdog_SOURCES = \
16  timeout_watchdog_w32.c
17 endif
18
19 noinst_SCRIPTS = \
20  terminate.py \
21  pydiffer.py \
22  gnunet_pyexpect.py \
23  gnunet_janitor.py
24
25 bin_SCRIPTS = \
26  gnunet-gns-import.sh
27
28 dist_pkgdata_DATA = \
29  gns-bcd.html \
30  gns-bcd.tex \
31  gnunet-logo.pdf \
32  gnunet-logo-color.png \
33  testing_hostkeys.ecc
34
35 if MINGW
36 tap32_DATA = \
37  openvpn-tap32/tapw32/tap0901.sys \
38  openvpn-tap32/tapw32/tap0901.cat \
39  openvpn-tap32/tapw32/OemWin2k.inf
40
41 tap64_DATA = \
42  openvpn-tap32/tapw64/tap0901.sys \
43  openvpn-tap32/tapw64/tap0901.cat \
44  openvpn-tap32/tapw64/OemWin2k.inf
45 endif
46
47 EXTRA_DIST = \
48  no_forcestart.conf \
49  no_autostart_above_core.conf \
50  coverage.sh \
51  nssswitch.conf \
52  report.sh \
53  terminate.py.in \
54  gnunet_pyexpect.py.in \
55  gnunet_janitor.py.in \
56  pydiffer.py.in \
57  gnunet-gns-import.sh \
58  openvpn-tap32/tapw32/tap0901.sys \
59  openvpn-tap32/tapw32/tap0901.cat \
60  openvpn-tap32/tapw32/OemWin2k.inf \
61  openvpn-tap32/tapw64/tap0901.sys \
62  openvpn-tap32/tapw64/tap0901.cat \
63  openvpn-tap32/tapw64/OemWin2k.inf \
64  openvpn-tap32/INSTALL \
65  openvpn-tap32/tap32-signed-i386-2.1.zip \
66  openvpn-tap32/tap32-source-2.1.zip
67
68 CLEANFILES = \
69   $(noinst_SCRIPTS)
70
71 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
72
73 # Use SUFFIX Extension rules, they are more portable for every
74 # implementation of 'make'.
75 # You'll also run into the "'%' is a GNU make extension warning"
76 # if you use this:
77 #
78 #%.py: %.py.in Makefile
79 #       $(do_subst) < $< > $@
80 #       chmod +x $@
81 #
82 # instead of this:
83
84 SUFFIXES = .py.in .py
85
86 .py.in.py:
87         $(do_subst) < $< > $@
88         chmod +x $@
89
90 # init_gnunet_redhat \
91 # init_gnunet_ubuntu \
92 # visualize_stats.sh \
93 # gnmessage.sh \
94 # junkinsert.sh \
95 # junklookup.sh \
96 # namespacehelper.sh
97
98
99 check_PROGRAMS = \
100  test_gnunet_prefix
101
102 if ENABLE_TEST_RUN
103 AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
104 TESTS = $(check_PROGRAMS)
105 endif
106
107 test_gnunet_prefix_SOURCES = \
108  test_gnunet_prefix.c
109
110 test_gnunet_prefix_CPPFLAGS = \
111   $(LTDLINCL) $(AM_CPPFLAGS)
112
113 test_gnunet_prefix_LDADD = \
114   $(GCLIBADD) $(WINLIB) \
115   $(LTLIBICONV) \
116   $(GN_LIBINTL) \
117   $(LIBLTDL) -lunistring $(XLIB)
118
119 pkghellodir= $(pkgdatadir)/hellos
120
121 install-data-local:
122         $(mkinstalldirs) $(DESTDIR)$(pkghellodir)
123         @$(NORMAL_INSTALL)
124         for hello in $(srcdir)/hellos/*; do \
125           if test -f $$hello; then \
126             $(INSTALL_DATA) $$hello $(DESTDIR)$(pkghellodir)/ ; \
127           fi \
128         done
129
130 dist-hook:
131         if test -d $(srcdir)/hellos; then \
132           mkdir -p $(distdir)/hellos; \
133           for hello in $(srcdir)/hellos/*; do \
134             if test -f $$hello; then \
135               cp -p $$hello $(distdir)/hellos; \
136             fi \
137           done \
138         fi
139