summaryrefslogtreecommitdiff
path: root/vapigen/Makefile.am
blob: b1394b99bb1a8d2f80a0660f31d5a718913145db (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
NULL =

SUBDIRS = \
	vala-gen-introspect \
	$(NULL)

INCLUDES = \
	$(GLIB_CFLAGS) \
	-I$(top_srcdir) \
	-I$(top_srcdir)/gobject-introspection \
	$(NULL)

bin_PROGRAMS = \
	vapigen \
	vapicheck \
	$(NULL)

BUILT_SOURCES = vapigen.vala.stamp vapicheck.vala.stamp

vapigen_SOURCES = \
	vapigen.vala.stamp \
	valagidlparser.c \
	valagidlparser.h \
	valagidlparser.vala \
	valavapigen.c \
	valavapigen.h \
	valavapigen.vala \
	$(NULL)

vapicheck_SOURCES = \
	vapicheck.vala.stamp \
	valavapicheck.c \
	valavapicheck.h \
	valavapicheck.vala \
	$(NULL)

vapigen.vala.stamp: $(filter %.vala,$(vapigen_SOURCES))
	$(VALAC) --vapidir $(srcdir)/../vapi --vapidir ../gee --pkg gee --vapidir ../ccode --pkg ccode --vapidir ../vala --pkg vala --vapidir ../gobject-introspection --pkg gidl --pkg config --basedir $(top_srcdir) $^
	touch $@

vapicheck.vala.stamp: $(filter %.vala,$(vapicheck_SOURCES))
	$(VALAC) --vapidir $(srcdir)/../vapi --vapidir ../gee --pkg gee --vapidir ../ccode --pkg ccode --vapidir ../vala --pkg vala --vapidir ../gobject-introspection --pkg gidl --pkg config --basedir $(top_srcdir) $^
	touch $@

vapigen_LDADD = \
	$(GLIB_LIBS) \
	../gee/libgee.la \
	../gobject/libvala.la \
	../gobject-introspection/libgidl.la \
	$(NULL)

vapicheck_LDADD = \
	$(GLIB_LIBS) \
	../gee/libgee.la \
	../gobject/libvala.la \
	../gobject-introspection/libgidl.la \
	$(NULL)

EXTRA_DIST = vapigen.vala.stamp vapicheck.vala.stamp