Split things so that there can be a standalone zavai-calendar application
[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 zavai_VAPIS = linux-input.vapi dbus-extra.vapi devkit-power-gobject.vapi
28
29 BUILT_SOURCES = zavai.vala.stamp $(zavai_VALASOURCES:.vala=.c)
30
31 bin_PROGRAMS = zavai zavai-calendar
32
33 bin_SCRIPTS = sat-monitor
34
35 zavai_VALASOURCES = \
36         log.vala \
37         core.vala \
38         config.vala \
39         registry.vala \
40         input.vala \
41         gps.vala \
42         gsm.vala \
43         clock.vala \
44         audio.vala \
45         widgets/calendar.vala \
46         app.vala \
47         app_keyboard.vala \
48         app_power.vala \
49         app_wm.vala \
50         app_gps.vala \
51         app_gsm.vala \
52         app_calendar.vala \
53         app_polygen.vala \
54         app_main.vala \
55         app_debug.vala \
56         zavai.vala
57
58 zavai_calendar_VALASOURCES = \
59         log.vala \
60         core.vala \
61         config.vala \
62         widgets/calendar.vala \
63         zavai-calendar.vala
64
65 zavai_SOURCES = \
66         zavai.vala.stamp \
67         $(zavai_VALASOURCES:.vala=.c)
68
69 zavai_calendar_SOURCES = \
70         zavai-calendar.vala.stamp \
71         $(zavai_calendar_VALASOURCES:.vala=.c)
72
73 zavai.vapi zavai.vala.stamp: $(zavai_VALASOURCES) $(zavai_VAPIS)
74         $(VALAC) -C --basedir $(top_srcdir) $(VFLAGS) $(zavai_VALASOURCES)
75         touch $@
76
77 zavai-calendar.vapi zavai-calendar.vala.stamp: $(zavai_calendar_VALASOURCES) $(zavai_VAPIS)
78         $(VALAC) -C --basedir $(top_srcdir) $(VFLAGS) $(zavai_calendar_VALASOURCES)
79         touch $@
80
81 %.c: %.vala
82
83 zavai_LDADD = \
84         $(GLIB_LIBS) \
85         $(DBUS_LIBS) \
86         $(GEE_LIBS) \
87         $(GTK_LIBS) \
88         $(WNCK_LIBS) \
89         $(DEVKITPOWER_LIBS)
90
91 zavai_calendar_LDADD = \
92         $(GLIB_LIBS) \
93         $(GEE_LIBS) \
94         $(GTK_LIBS)
95
96 #vapidir = $(datadir)/vala/vapi
97
98 #dist_vapi_DATA = \
99 #       gee-1.0.vapi \
100 #       $(NULL)
101
102 EXTRA_DIST = $(zavai_VAPIS) sat-monitor update-polygen-info
103 #$(libgee_la_VALASOURCES) gee-1.0.vapi gee.vala.stamp