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