Imported Upstream version 1.7.1
[platform/upstream/edje.git] / src / examples / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 EDJE_CC = @edje_cc@
4 EDJE_CC_FLAGS_VERBOSE_0 =
5 EDJE_CC_FLAGS_VERBOSE_1 = -v
6 EDJE_CC_FLAGS = $(EDJE_CC_FLAGS_$(V)) -id $(srcdir) -fd $(srcdir)
7
8 examplesdir = $(datadir)/$(PACKAGE)/examples
9
10 if ENABLE_MULTISENSE
11 MULTISENSE_BIN_FILE = edje-multisense
12 MULTISENSE_C_FILE   = edje-multisense.c
13 MULTISENSE_EDC_FILE = multisense.edc
14 SND_DIR             = -sd $(srcdir)
15 endif
16
17 #put here all EDCs one needs to the examples
18 EDCS = \
19         basic.edc \
20         swallow.edc \
21         text.edc \
22         table.edc \
23         box.edc \
24         drag.edc \
25         edje_example.edc \
26         embryo_custom_state.edc \
27         embryo_pong.edc \
28         embryo_run_program.edc \
29         embryo_set_state.edc \
30         embryo_set_text.edc \
31         embryo_timer.edc \
32         external_elm_anchorblock.edc \
33         external_elm_button.edc \
34         external_elm_check.edc \
35         external_elm_panes.edc \
36         external_emotion_elm.edc \
37         toggle_using_filter.edc \
38         signals-messages.edc \
39         color-class.edc \
40         perspective.edc \
41         animations.edc \
42         lua_script.edc \
43         sigtest.edc \
44         animations2.edc \
45         basic2.edc \
46         signalsBubble.edc \
47         $(MULTISENSE_EDC_FILE)
48
49 .edc.edj:
50         $(EDJE_CC) $(EDJE_CC_FLAGS) $(SND_DIR) $< $(builddir)/$(@F)
51
52
53 EDJS = $(EDCS:%.edc=%.edj)
54
55 filesdir = $(datadir)/$(PACKAGE)/examples
56 files_DATA = \
57         $(EDCS) \
58         bubble.png \
59         red.png \
60         test.png \
61         Vera.ttf \
62         duck.wav \
63         edje_example.c \
64         edje-basic.c \
65         edje-swallow.c \
66         edje-text.c \
67         edje-table.c \
68         edje-box.c \
69         edje-box2.c \
70         edje-drag.c \
71         edje-signals-messages.c \
72         edje-color-class.c \
73         edje-perspective.c \
74         edje-animations.c \
75         sigtest.c \
76         animations2.c \
77         edje-basic2.c \
78         signals2.c \
79         edje-swallow2.c \
80         $(MULTISENSE_C_FILE)
81
82 EXTRA_DIST = $(files_DATA)
83
84 if BUILD_EXAMPLES
85
86 AM_CPPFLAGS = \
87 -I. \
88 -I$(top_srcdir)/src/lib \
89 -I$(top_srcdir)/src/lib/include \
90 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
91 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
92 -DPACKAGE_DATA_DIR=\"$(pkgdatadir)\" \
93 @EDJE_CFLAGS@
94
95 files_DATA += $(EDJS)
96
97 examples_PROGRAMS = \
98         edje-animations \
99         edje-basic \
100         edje-box \
101         edje-box2 \
102         edje-color-class \
103         edje-drag\
104         edje-perspective \
105         edje-signals-messages \
106         edje-swallow \
107         edje-table \
108         edje-text \
109         sigtest \
110         animations2 \
111         edje-basic2 \
112         signals2 \
113         edje-swallow2 \
114         $(MULTISENSE_BIN_FILE)
115
116 LDADD = $(top_builddir)/src/lib/libedje.la @EDJE_LIBS@
117
118 endif
119
120 clean-local:
121         rm -f *.edj