blob: 606317c13bfc404a42e9f4099a4764dd881cc287 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
if USE_GTK3
VER=3
else
VER=
endif
CLEANFILES =
check_PROGRAMS = \
simple-client \
simple-client-vala
#########################################
## simple-client
#########################################
simple_client_SOURCES = \
simple-client.c
simple_client_CFLAGS = \
$(LIBRARY_CFLAGS) \
-DLOCAL_ICON="\"$(abs_srcdir)/simple-client-test-icon.png\"" \
-Wall -Werror \
-I$(top_srcdir)/src
simple_client_LDADD = \
$(LIBRARY_LIBS) \
$(top_builddir)/src/libappindicator$(VER).la
EXTRA_DIST = \
simple-client-test-icon.png
#########################################
## simple-client-vala
#########################################
if HAVE_VALAC
VALAFLAGS = \
--pkg appindicator$(VER)-0.1 \
--vapidir=$(top_builddir)/bindings/vala
BUILT_SOURCES = simple-client-vala.c
simple-client-vala.c: $(srcdir)/simple-client-vala.vala
$(VALAC) $(VALAFLAGS) -C $< -o $@
$(SED) -i "s|#include\s*<\s*libappindicator/app-indicator.h\s*>||g" $@
simple_client_vala_SOURCES = simple-client-vala.c
simple_client_vala_CFLAGS = \
$(simple_client_CFLAGS) \
-include $(top_srcdir)/src/app-indicator.h
simple_client_vala_LDADD = $(simple_client_LDADD)
CLEANFILES += *.stamp *-vala.c
endif
|