summaryrefslogtreecommitdiff
path: root/unsorted
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-08-21 16:22:04 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-08-21 16:22:25 -0400
commitf36e0f43da8f382bcc9f300d45e58e96bba22397 (patch)
tree31582d4a4f1be7b26f4b759f79b895065beed7c9 /unsorted
parent1c1854c6573f67cbfd90425e47164e0dc46f614c (diff)
add makefile for elementary C examples
Diffstat (limited to 'unsorted')
-rw-r--r--unsorted/Makefile1
-rw-r--r--unsorted/elementary/Makefile.examples153
2 files changed, 154 insertions, 0 deletions
diff --git a/unsorted/Makefile b/unsorted/Makefile
index 4aaf24f4..29b5caf2 100644
--- a/unsorted/Makefile
+++ b/unsorted/Makefile
@@ -7,6 +7,7 @@ eina \
7eio \ 7eio \
8eldbus \ 8eldbus \
9elocation \ 9elocation \
10elementary \
10emile \ 11emile \
11emotion \ 12emotion \
12ethumb_client \ 13ethumb_client \
diff --git a/unsorted/elementary/Makefile.examples b/unsorted/elementary/Makefile.examples
new file mode 100644
index 00000000..3967f5aa
--- /dev/null
+++ b/unsorted/elementary/Makefile.examples
@@ -0,0 +1,153 @@
1EDJE_CC=edje_cc
2EDJE_CODEGEN=edje_codegen
3ELEMENTARY_CODEGEN=elementary_codegen
4COMMON_FLAGS= \
5`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,edje,eo,ecore-file,elementary,elocation` \
6-lm
7
8EDJE_OBJS = \
9codegen_example.edj \
10efl_ui_view_list_example.edj \
11evas3d_map_example.edj \
12layout_example.edj \
13prefs_example_03.edj \
14theme_example.edj \
15twitter_example_01.edj
16
17
18EXAMPLES = \
19actionslider_example_01 \
20bg_example_01 \
21bg_example_02 \
22bg_example_03 \
23box_example_02 \
24bubble_example_01 \
25button_example_00 \
26button_example_01 \
27calendar_example_01 \
28calendar_example_02 \
29calendar_example_03 \
30calendar_example_04 \
31calendar_example_05 \
32calendar_example_06 \
33check_example_01 \
34clock_example \
35colorselector_example_01 \
36conformant_example_01 \
37conformant_example_02 \
38combobox_example_01 \
39ctxpopup_example_01 \
40datetime_example \
41dayselector_example \
42diskselector_example_01 \
43diskselector_example_02 \
44entry_example \
45fileselector_button_example \
46fileselector_entry_example \
47fileselector_example \
48fileviewlist \
49filemvc \
50flip_example_01 \
51flipselector_example \
52frame_example_01 \
53general_funcs_example \
54gengrid_example \
55genlist_example_01 \
56genlist_example_02 \
57genlist_example_03 \
58genlist_example_04 \
59genlist_example_05 \
60hover_example_01 \
61hoversel_example_01 \
62icon_example_01 \
63image_example_01 \
64index_example_01 \
65index_example_02 \
66inwin_example \
67label_example_01 \
68layout_example_01 \
69layout_example_02 \
70layout_example_03 \
71layout_model_connect \
72list_example_01 \
73list_example_02 \
74list_example_03 \
75location_example_01 \
76map_example_01 \
77map_example_02 \
78map_example_03 \
79mapbuf_example \
80menu_example_01 \
81naviframe_example \
82notify_example_01 \
83panes_example \
84panel_example_01 \
85photocam_example_01 \
86prefs_example_01 \
87prefs_example_02 \
88prefs_example_03 \
89popup_example_01 \
90popup_example_02 \
91popup_example_03 \
92progressbar_example \
93radio_example_01 \
94radio_example_02 \
95segment_control_example \
96separator_example_01 \
97slider_example \
98slideshow_example \
99spinner_example \
100scroller_example_01 \
101table_example_01 \
102table_example_02 \
103theme_example_01 \
104theme_example_02 \
105thumb_example_01 \
106toolbar_example_01 \
107toolbar_example_02 \
108toolbar_example_03 \
109transit_example_01 \
110transit_example_02 \
111transit_example_03 \
112transit_example_04 \
113web_example_01 \
114web_example_02 \
115win_example \
116track_example_01 \
117evas3d_object_on_button_example \
118evas3d_scene_on_button_example \
119evas3d_map_example \
120efl_thread_1 \
121efl_thread_2 \
122efl_thread_3 \
123efl_thread_4 \
124efl_thread_5 \
125efl_thread_6 \
126efl_ui_list_example_1 \
127efl_ui_view_list_example_1 \
128efl_ui_view_list_example_2 \
129efl_ui_view_list_example_3
130
131
132ELEMENTARY_CODEGEN_FLAGS = --prefix=codegen_example
133ELEMENTARY_CODEGEN_FILES = \
134codegen_example_generated.c \
135codegen_example_generated.h
136
137all: edje examples
138edje: $(EDJE_OBJS)
139examples: $(EXAMPLES) codegen_example
140codegen: codegen_example.edj
141 $(ELEMENTARY_CODEGEN) $(ELEMENTARY_CODEGEN_FLAGS) $(<) elm/example/mylayout/default $(ELEMENTARY_CODEGEN_FILES)
142codegen_example: codegen
143 $(CC) -o $@ $@.c codegen_example_generated.c $(COMMON_FLAGS)
144
145%.edj: %.edc
146 $(EDJE_CC) $<
147
148$(EXAMPLES):
149 $(CC) -o $@ $@.c $(COMMON_FLAGS)
150
151clean:
152 @echo "Cleaning up built objects..."
153 @rm -Rf $(EXAMPLES) *.edj