summaryrefslogtreecommitdiff
path: root/tests/invoke/Makefile.am
blob: fa83d7beff911a6004f0ef6884ae838fa302100f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
## Process this file with automake to produce Makefile.in

check_PROGRAMS = invoke
testlib_LTLIBRARIES = testfns.la
testlibdir = /tmp
install-testlibLTLIBRARIES: # prevent it from being installed


testfns_la_SOURCES =				\
	testfns.c				\
	testfns-metadata.c
testfns_la_CFLAGS = $(GIREPO_CFLAGS) -I$(top_srcdir)/girepository
testfns_la_LDFLAGS = -module -avoid-version
testfns_la_LIBADD = $(GIREPO_LIBS) $(top_builddir)/girepository/libgirepository.la

BUILT_SOURCES = testfns-metadata.c test.repo
CLEANFILES = testfns-metadata.c test.repo

testfns-metadata.c: testfns.gir $(top_builddir)/tools/g-ir-compiler
	$(CHECK_DEBUG) $(top_builddir)/tools/g-ir-compiler $(srcdir)/testfns.gir -o testfns-metadata.c

test.repo: testfns.gir
	$(CHECK_DEBUG) $(top_builddir)/tools/g-ir-compiler --shared-library testfns.la $< --raw -o $@

invoke_SOURCES = invoke.c
invoke_CFLAGS = $(GIREPO_CFLAGS)  -I$(top_srcdir)/girepository
invoke_LDADD = $(GIREPO_LIBS) $(top_builddir)/girepository/libgirepository.la

TESTS = invoke invoke-namespace-find.sh

EXTRA_DIST = invoke-namespace-find.sh testfns.gir

TESTS_ENVIRONMENT = GIREPOPATH="."