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