summaryrefslogtreecommitdiff
path: root/tools/Makefile.am
blob: b8e03939b48b595c27f28c06bbe2b7271c7c9e3f (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
include $(top_srcdir)/gcov.mak

INCLUDES = \
	-DGIREPO_DEFAULT_SEARCH_PATH="\"$(libdir)\"" \
	-I$(top_srcdir)/girepository

bin_PROGRAMS = g-ir-compiler g-ir-generate
bin_SCRIPTS = g-ir-scanner
EXTRA_DIST = g-ir-scanner.in

g-ir-scanner: g-ir-scanner.in Makefile
	sed -e s,@libdir\@,$(libdir), -e s,@PYTHON\@,$(PYTHON), $< > $@.tmp && mv $@.tmp $@
	chmod a+x $@

g_ir_compiler_SOURCES = compiler.c	
g_ir_compiler_CFLAGS = $(GIREPO_CFLAGS)
g_ir_compiler_LDADD = \
	$(top_builddir)/girepository/libgirepository-parser.la \
	$(top_builddir)/girepository/libgirepository-1.0.la \
	$(GIREPO_LIBS)

g_ir_generate_SOURCES = generate.c
g_ir_generate_CFLAGS = $(GIREPO_CFLAGS)
g_ir_generate_LDADD = \
	$(top_builddir)/girepository/libgirepository-1.0.la \
	$(GIREPO_LIBS)

GCOVSOURCES =					\
	$(g_ir_compiler_SOURCES)		\
	$(g_ir_generate_SOURCES)

CLEANFILES=g-ir-scanner