File: Makefile-tools.am

package info (click to toggle)
gobject-introspection 1.50.0-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 18,992 kB
  • ctags: 8,274
  • sloc: ansic: 37,206; xml: 15,012; python: 13,414; sh: 4,554; yacc: 1,591; makefile: 742; lex: 475; perl: 269
file content (53 lines) | stat: -rw-r--r-- 1,884 bytes parent folder | download
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
bin_PROGRAMS += g-ir-compiler g-ir-generate g-ir-inspect
bin_SCRIPTS += g-ir-scanner g-ir-annotation-tool

if BUILD_DOCTOOL
bin_SCRIPTS += g-ir-doc-tool
endif

EXTRA_DIST += 				\
	tools/g-ir-tool-template.in

TOOL_SUBSTITUTIONS = -e s,@libdir\@,$(libdir), -e s,@datarootdir\@,$(datarootdir), -e s,@PYTHON\@,$(PYTHON),

g-ir-scanner: tools/g-ir-tool-template.in _giscanner.la Makefile
	$(AM_V_GEN) sed $(TOOL_SUBSTITUTIONS) -e s,@TOOL_MODULE\@,scannermain, -e s,@TOOL_FUNCTION\@,scanner_main, $< > $@.tmp && mv $@.tmp $@
	@chmod a+x $@

g-ir-annotation-tool: tools/g-ir-tool-template.in _giscanner.la Makefile
	$(AM_V_GEN) sed $(TOOL_SUBSTITUTIONS) -e s,@TOOL_MODULE\@,annotationmain, -e s,@TOOL_FUNCTION\@,annotation_main, $< > $@.tmp && mv $@.tmp $@
	@chmod a+x $@

g-ir-doc-tool: tools/g-ir-tool-template.in _giscanner.la Makefile
	$(AM_V_GEN) sed $(TOOL_SUBSTITUTIONS) -e s,@TOOL_MODULE\@,docmain, -e s,@TOOL_FUNCTION\@,doc_main, $< > $@.tmp && mv $@.tmp $@
	@chmod a+x $@

g_ir_compiler_SOURCES = tools/compiler.c
g_ir_compiler_CPPFLAGS = -DGIREPO_DEFAULT_SEARCH_PATH="\"$(libdir)\"" \
			 -I$(top_srcdir)/girepository
g_ir_compiler_CFLAGS = $(GIO_CFLAGS)
g_ir_compiler_LDADD = \
	libgirepository-internals.la	\
	libgirepository-1.0.la		\
	$(GIREPO_LIBS)

g_ir_generate_SOURCES = tools/generate.c
g_ir_generate_CPPFLAGS = -DGIREPO_DEFAULT_SEARCH_PATH="\"$(libdir)\"" \
			 -I$(top_srcdir)/girepository
g_ir_generate_CFLAGS = $(GIO_CFLAGS)
g_ir_generate_LDADD = \
	libgirepository-internals.la	\
	libgirepository-1.0.la		\
	$(GIREPO_LIBS)

g_ir_inspect_SOURCES = tools/g-ir-inspect.c
g_ir_inspect_CFLAGS = $(GIO_CFLAGS) -I$(top_srcdir)/girepository
g_ir_inspect_LDADD = \
        libgirepository-1.0.la	\
        $(GIREPO_LIBS)

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

CLEANFILES += g-ir-scanner g-ir-annotation-tool g-ir-doc-tool g-ir-inspect