bfa60031a10e7c059229114c36b3328a4833dcd3
[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 --pkg dbus-extra --pkg devkit-power-gobject
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         $(DEVKITPOWER_CFLAGS) \
24         -DWNCK_I_KNOW_THIS_IS_UNSTABLE \
25         -DI_KNOW_THE_DEVICEKIT_POWER_API_IS_SUBJECT_TO_CHANGE
26
27 BUILT_SOURCES = zavai.vala.stamp $(zavai_VALASOURCES:.vala=.c)
28
29 bin_PROGRAMS = zavai
30
31 bin_SCRIPTS = sat-monitor
32
33 zavai_VALASOURCES = \
34         log.vala \
35         config.vala \
36         registry.vala \
37         input.vala \
38         gps.vala \
39         gsm.vala \
40         clock.vala \
41         audio.vala \
42         app.vala \
43         app_keyboard.vala \
44         app_power.vala \
45         app_wm.vala \
46         app_gps.vala \
47         app_gsm.vala \
48         app_calendar.vala \
49         app_polygen.vala \
50         app_main.vala \
51         app_debug.vala \
52         zavai.vala
53
54 zavai_VAPIS = linux-input.vapi dbus-extra.vapi devkit-power-gobject.vapi
55
56 zavai_SOURCES = \
57         zavai.vala.stamp \
58         $(zavai_VALASOURCES:.vala=.c)
59
60 zavai.vapi zavai.vala.stamp: $(zavai_VALASOURCES) $(zavai_VAPIS)
61         $(VALAC) -C --basedir $(top_srcdir) $(VFLAGS) $(zavai_VALASOURCES)
62         touch $@
63
64 %.c: %.vala
65
66 zavai_LDADD = \
67         $(GLIB_LIBS) \
68         $(DBUS_LIBS) \
69         $(GEE_LIBS) \
70         $(GTK_LIBS) \
71         $(WNCK_LIBS) \
72         $(DEVKITPOWER_LIBS)
73
74 #vapidir = $(datadir)/vala/vapi
75
76 #dist_vapi_DATA = \
77 #       gee-1.0.vapi \
78 #       $(NULL)
79
80 EXTRA_DIST = $(zavai_VAPIS) sat-monitor update-polygen-info
81 #$(libgee_la_VALASOURCES) gee-1.0.vapi gee.vala.stamp