Merge branch 'master' of ssh://ciapino/root/zavai
[gregoa/zavai.git] / src / Makefile.am
1 VFLAGS=-g --pkg gee-1.0 --pkg dbus-glib-1 --pkg gtk+-2.0 --pkg posix --pkg libwnck-1.0
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         $(WNCK_CFLAGS) \
23         -DWNCK_I_KNOW_THIS_IS_UNSTABLE
24
25 BUILT_SOURCES = zavai.vala.stamp
26
27 bin_PROGRAMS = zavai
28
29 zavai_VALASOURCES = \
30         log.vala \
31         config.vala \
32         registry.vala \
33         gps.vala \
34         app.vala \
35         app_keyboard.vala \
36         app_wm.vala \
37         app_gps.vala \
38         app_debug.vala \
39         zavai.vala
40
41 zavai_SOURCES = \
42         zavai.vala.stamp \
43         $(zavai_VALASOURCES:.vala=.c) \
44         $(zavai_VALASOURCES:.vala=.h)
45
46 zavai.vapi zavai.vala.stamp: $(zavai_VALASOURCES)
47         $(VALAC) -C --basedir $(top_srcdir) $(VFLAGS) $^
48         touch $@
49
50 zavai_LDADD = \
51         $(GLIB_LIBS) \
52         $(DBUS_LIBS) \
53         $(GEE_LIBS) \
54         $(GTK_LIBS) \
55         $(WNCK_LIBS)
56
57 #vapidir = $(datadir)/vala/vapi
58
59 #dist_vapi_DATA = \
60 #       gee-1.0.vapi \
61 #       $(NULL)
62
63 #EXTRA_DIST += $(libgee_la_VALASOURCES) gee-1.0.vapi gee.vala.stamp