distcheck fixes
[gnome.gobject-introspection] / tests / invoke / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 check_PROGRAMS = invoke
4 testlib_LTLIBRARIES = testfns.la
5 testlibdir = /tmp
6 install-testlibLTLIBRARIES: # prevent it from being installed
7
8
9 testfns_la_SOURCES =                            \
10         testfns.c                               \
11         testfns-metadata.c
12 testfns_la_CFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
13 testfns_la_LDFLAGS = -module -avoid-version
14 testfns_la_LIBADD = $(GIREPO_LIBS) $(top_builddir)/girepository/libgirepository.la
15
16 if OS_WIN32
17 testfns_la_LDFLAGS += -no-undefined
18 endif
19
20 BUILT_SOURCES = testfns-metadata.c
21 CLEANFILES = testfns-metadata.c 
22
23 testfns-metadata.c: testfns-1.0.gir $(top_builddir)/tools/g-ir-compiler Makefile
24         $(CHECK_DEBUG) $(top_builddir)/tools/g-ir-compiler $(srcdir)/testfns-1.0.gir --code -o testfns-metadata.c
25
26 invoke_SOURCES = invoke.c
27 invoke_CFLAGS = $(GIREPO_CFLAGS)  -I$(top_srcdir)/girepository
28 invoke_LDADD = $(GIREPO_LIBS) $(top_builddir)/girepository/libgirepository.la
29
30 TESTS = invoke invoke-namespace-find.sh
31
32 EXTRA_DIST = invoke-namespace-find.sh testfns-1.0.gir
33