Added battery icon
[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 --vapidir=. --pkg linux-input
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_power.vala \
40         app_wm.vala \
41         app_gps.vala \
42         app_debug.vala \
43         zavai.vala
44
45 zavai_VAPIS = linux-input.vapi 
46
47 zavai_SOURCES = \
48         zavai.vala.stamp \
49         $(zavai_VALASOURCES:.vala=.c) \
50         $(zavai_VALASOURCES:.vala=.h)
51
52 zavai.vapi zavai.vala.stamp: $(zavai_VALASOURCES) $(zavai_VAPIS)
53         $(VALAC) -C --basedir $(top_srcdir) $(VFLAGS) $(zavai_VALASOURCES)
54         touch $@
55
56 zavai_LDADD = \
57         $(GLIB_LIBS) \
58         $(DBUS_LIBS) \
59         $(GEE_LIBS) \
60         $(GTK_LIBS) \
61         $(WNCK_LIBS)
62
63 #vapidir = $(datadir)/vala/vapi
64
65 #dist_vapi_DATA = \
66 #       gee-1.0.vapi \
67 #       $(NULL)
68
69 EXTRA_DIST = $(zavai_VAPIS) sat-monitor
70 #$(libgee_la_VALASOURCES) gee-1.0.vapi gee.vala.stamp