8e165361ac13f7935df9fef67404cb463c49b3a7
[gregoa/zavai.git] / src / Makefile.am
1 VFLAGS=-g --pkg gee-1.0 --pkg dbus-glib-1 --pkg gtk+-2.0 --pkg posix
2
3 #zavai: $(SOURCES)
4 #       valac -o zavai $(VFLAGS) $^
5 #
6 #C: $(SOURCES)
7 #       valac -C $(VFLAGS) $^
8 #
9 ##zavai: $(SOURCES:.vala=.vala.o)
10 ##      echo $<
11 ##      gcc $(LDFLAGS) -o zavai $*
12 ##
13 ##%.vala.o: %.vala
14 ##      valac $(VFLAGS) -c $<
15
16 AM_CPPFLAGS = \
17         -I$(top_srcdir) \
18         $(GLIB_CFLAGS) \
19         $(DBUS_CFLAGS) \
20         $(GEE_CFLAGS) \
21         $(GTK_CFLAGS)
22
23 BUILT_SOURCES = zavai.vala.stamp
24
25 bin_PROGRAMS = zavai
26
27 zavai_VALASOURCES = \
28         log.vala \
29         config.vala \
30         registry.vala \
31         gps.vala \
32         app.vala \
33         app_keyboard.vala \
34         app_gps.vala \
35         app_debug.vala \
36         zavai.vala
37
38 zavai_SOURCES = \
39         zavai.vala.stamp \
40         $(zavai_VALASOURCES:.vala=.c) \
41         $(zavai_VALASOURCES:.vala=.h)
42
43 zavai.vapi zavai.vala.stamp: $(zavai_VALASOURCES)
44         $(VALAC) -C --basedir $(top_srcdir) $(VFLAGS) $^
45         touch $@
46
47 zavai_LDADD = \
48         $(GLIB_LIBS) \
49         $(DBUS_LIBS) \
50         $(GEE_LIBS) \
51         $(GTK_LIBS)
52
53 #vapidir = $(datadir)/vala/vapi
54
55 #dist_vapi_DATA = \
56 #       gee-1.0.vapi \
57 #       $(NULL)
58
59 #EXTRA_DIST += $(libgee_la_VALASOURCES) gee-1.0.vapi gee.vala.stamp