Started infrastructure to listen to button events
[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 bin_SCRIPTS = sat-monitor
30
31 zavai_VALASOURCES = \
32         log.vala \
33         config.vala \
34         registry.vala \
35         input.vala \
36         gps.vala \
37         app.vala \
38         app_keyboard.vala \
39         app_powerbutton.vala \
40         app_wm.vala \
41         app_gps.vala \
42         app_debug.vala \
43         zavai.vala
44
45 zavai_SOURCES = \
46         zavai.vala.stamp \
47         $(zavai_VALASOURCES:.vala=.c) \
48         $(zavai_VALASOURCES:.vala=.h)
49
50 zavai.vapi zavai.vala.stamp: $(zavai_VALASOURCES)
51         $(VALAC) -C --basedir $(top_srcdir) $(VFLAGS) $^
52         touch $@
53
54 zavai_LDADD = \
55         $(GLIB_LIBS) \
56         $(DBUS_LIBS) \
57         $(GEE_LIBS) \
58         $(GTK_LIBS) \
59         $(WNCK_LIBS)
60
61 #vapidir = $(datadir)/vala/vapi
62
63 #dist_vapi_DATA = \
64 #       gee-1.0.vapi \
65 #       $(NULL)
66
67 EXTRA_DIST = sat-monitor
68 #$(libgee_la_VALASOURCES) gee-1.0.vapi gee.vala.stamp