summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/ecore/Makefile.am2
-rw-r--r--src/examples/ecore/Makefile.examples52
-rw-r--r--src/examples/edbus/Makefile.am19
-rw-r--r--src/examples/edbus/Makefile.examples21
-rw-r--r--src/examples/edje/Makefile.am3
-rw-r--r--src/examples/edje/Makefile.examples82
-rw-r--r--src/examples/eet/Makefile.am8
-rw-r--r--src/examples/eet/Makefile.examples20
-rw-r--r--src/examples/eina/Makefile.am10
-rw-r--r--src/examples/eina/Makefile.examples51
-rw-r--r--src/examples/eio/Makefile.am8
-rw-r--r--src/examples/eio/Makefile.examples15
-rw-r--r--src/examples/emotion/Makefile.am8
-rw-r--r--src/examples/emotion/Makefile.examples18
-rw-r--r--src/examples/eo/Makefile.am25
-rw-r--r--src/examples/eo/Makefile.examples42
-rw-r--r--src/examples/ethumb_client/Makefile.am8
-rw-r--r--src/examples/ethumb_client/Makefile.examples14
-rw-r--r--src/examples/evas/Makefile.am3
-rw-r--r--src/examples/evas/Makefile.examples38
20 files changed, 422 insertions, 25 deletions
diff --git a/src/examples/ecore/Makefile.am b/src/examples/ecore/Makefile.am
index edbe688eb0..9a7ab0e530 100644
--- a/src/examples/ecore/Makefile.am
+++ b/src/examples/ecore/Makefile.am
@@ -255,7 +255,7 @@ ecore_thread_example.c \
255ecore_time_functions_example.c \ 255ecore_time_functions_example.c \
256ecore_timer_example.c 256ecore_timer_example.c
257 257
258DATA_FILES = red.png 258DATA_FILES = red.png Makefile.examples
259 259
260EXTRA_DIST = $(DATA_FILES) 260EXTRA_DIST = $(DATA_FILES)
261 261
diff --git a/src/examples/ecore/Makefile.examples b/src/examples/ecore/Makefile.examples
new file mode 100644
index 0000000000..30a9521861
--- /dev/null
+++ b/src/examples/ecore/Makefile.examples
@@ -0,0 +1,52 @@
1CC=gcc
2COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,ecore-audio,ecore-con,ecore-file, \
3 eo,evas-software-buffer,gnutls,ecore-imf,ecore-imf-evas,gstreamer-0.10` -lm
4
5EXAMPLES= ecore_animator_example \
6 ecore_audio_custom \
7 ecore_audio_playback \
8 ecore_audio_to_ogg \
9 ecore_client_bench \
10 ecore_con_client_example \
11 ecore_con_client_simple_example \
12 ecore_con_lookup_example \
13 ecore_con_server_example \
14 ecore_con_server_http_example \
15 ecore_con_server_simple_example \
16 ecore_con_url_cookies_example \
17 ecore_con_url_download_example \
18 ecore_con_url_headers_example \
19 ecore_evas_basics_example \
20 ecore_evas_buffer_example_01 \
21 ecore_evas_buffer_example_02 \
22 ecore_evas_callbacks \
23 ecore_evas_ews_example \
24 ecore_evas_object_example \
25 ecore_evas_window_sizes_example \
26 ecore_event_example_01 \
27 ecore_event_example_02 \
28 ecore_exe_example \
29 ecore_exe_example_child \
30 ecore_fd_handler_example \
31 ecore_fd_handler_gnutls_example \
32 ecore_file_download_example \
33 ecore_idler_example \
34 ecore_imf_example \
35 ecore_job_example \
36 ecore_pipe_gstreamer_example \
37 ecore_pipe_simple_example \
38 ecore_poller_example \
39 ecore_server_bench \
40 ecore_thread_example \
41 ecore_time_functions_example \
42 ecore_timer_example
43
44all: examples
45examples: $(EXAMPLES)
46
47$(EXAMPLES):
48 $(CC) -o $@ $@.c $(COMMON_FLAGS)
49
50clean:
51 @echo "Cleaning up built objects..."
52 @rm -Rf $(EXAMPLES)
diff --git a/src/examples/edbus/Makefile.am b/src/examples/edbus/Makefile.am
index e7fc3a49aa..891de027bc 100644
--- a/src/examples/edbus/Makefile.am
+++ b/src/examples/edbus/Makefile.am
@@ -18,6 +18,17 @@ $(top_builddir)/src/lib/eina/libeina.la \
18$(top_builddir)/src/lib/edbus/libedbus2.la \ 18$(top_builddir)/src/lib/edbus/libedbus2.la \
19@EDBUS_LDFLAGS@ 19@EDBUS_LDFLAGS@
20 20
21SRCS = \
22connman-list-services.c \
23ofono-dial.c \
24banshee.c \
25complex-types.c \
26complex-types-server.c \
27server.c \
28client.c \
29simple-signal-emit.c \
30complex-types-client-eina-value.c
31
21EXTRA_PROGRAMS = \ 32EXTRA_PROGRAMS = \
22connman-list-services \ 33connman-list-services \
23ofono-dial \ 34ofono-dial \
@@ -56,7 +67,9 @@ simple_signal_emit_LDADD = $(EXAMPLES_LIBS)
56complex_types_client_eina_value_SOURCES = complex-types-client-eina-value.c 67complex_types_client_eina_value_SOURCES = complex-types-client-eina-value.c
57complex_types_client_eina_value_LDADD = $(EXAMPLES_LIBS) 68complex_types_client_eina_value_LDADD = $(EXAMPLES_LIBS)
58 69
59SRCS = $(EXTRA_PROGRAMS) 70DATA_FILES = Makefile.examples
71
72EXTRA_DIST = $(DATA_FILES)
60 73
61examples: $(EXTRA_PROGRAMS) 74examples: $(EXTRA_PROGRAMS)
62 75
@@ -65,10 +78,10 @@ clean-local:
65 78
66install-examples: 79install-examples:
67 mkdir -p $(datadir)/edbus/examples 80 mkdir -p $(datadir)/edbus/examples
68 $(install_sh_DATA) -c $(SRCS) $(datadir)/edbus/examples 81 $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/edbus/examples
69 82
70uninstall-local: 83uninstall-local:
71 for f in $(SRCS) ; do \ 84 for f in $(SRCS) $(DATA_FILES); do \
72 rm -f $(datadir)/edbus/examples/$$f ; \ 85 rm -f $(datadir)/edbus/examples/$$f ; \
73 done 86 done
74 87
diff --git a/src/examples/edbus/Makefile.examples b/src/examples/edbus/Makefile.examples
new file mode 100644
index 0000000000..d1227bfb22
--- /dev/null
+++ b/src/examples/edbus/Makefile.examples
@@ -0,0 +1,21 @@
1CC=gcc
2COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,edbus2`
3
4EXAMPLES= banshee client \
5 complex-types \
6 complex-types-client-eina-value \
7 complex-types-server \
8 connman-list-services \
9 ofono-dial \
10 server \
11 simple-signal-emit
12
13all: examples
14examples: $(EXAMPLES)
15
16$(EXAMPLES):
17 $(CC) -o $@ $@.c $(COMMON_FLAGS)
18
19clean:
20 @echo "Cleaning up built objects..."
21 @rm -Rf $(EXAMPLES)
diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index 6d365d9e62..a068d23b6d 100644
--- a/src/examples/edje/Makefile.am
+++ b/src/examples/edje/Makefile.am
@@ -83,7 +83,8 @@ bubble-blue.png \
83red.png \ 83red.png \
84test.png \ 84test.png \
85Vera.ttf \ 85Vera.ttf \
86duck.wav 86duck.wav \
87Makefile.examples
87 88
88SRCS = \ 89SRCS = \
89edje-codegen-example.c \ 90edje-codegen-example.c \
diff --git a/src/examples/edje/Makefile.examples b/src/examples/edje/Makefile.examples
new file mode 100644
index 0000000000..8d7349499e
--- /dev/null
+++ b/src/examples/edje/Makefile.examples
@@ -0,0 +1,82 @@
1CC=gcc
2EDJE_CC=edje_cc
3EDJE_CODEGEN=edje_codegen
4COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,edje`
5
6EDJE_OBJS= animations.edj \
7 animations2.edj \
8 basic.edj \
9 basic2.edj \
10 box.edj \
11 codegen.edj \
12 color-class.edj \
13 drag.edj \
14 edje_example.edj \
15 edje-nested.edj \
16 embryo_custom_state.edj \
17 embryo_pong.edj \
18 embryo_run_program.edj \
19 embryo_set_state.edj \
20 embryo_set_text.edj \
21 embryo_timer.edj \
22 external_elm_anchorblock.edj \
23 external_elm_button.edj \
24 external_elm_check.edj \
25 external_elm_panes.edj \
26 external_emotion_elm.edj \
27 lua_script.edj \
28 messages_echo.edj \
29 multisense.edj \
30 perspective.edj \
31 physics_3d.edj \
32 physics_actions.edj \
33 physics_backcull.edj \
34 physics_basic.edj \
35 physics_complex.edj \
36 physics_soft_bodies.edj \
37 signalsBubble.edj \
38 signals-messages.edj \
39 sigtest.edj \
40 swallow.edj \
41 table.edj \
42 text.edj \
43 toggle_using_filter.edj
44
45EXAMPLES= animations2 \
46 edje-animations \
47 edje-basic \
48 edje-basic2 \
49 edje-box \
50 edje-box2 \
51 edje-color-class \
52 edje-drag \
53 edje_example \
54 edje-multisense \
55 edje-perspective \
56 edje-signals-messages \
57 edje-swallow \
58 edje-swallow2 \
59 edje-table \
60 edje-text \
61 signals2 \
62 sigtest
63
64all: edje examples edje-codegen-example
65edje: $(EDJE_OBJS)
66examples: $(EXAMPLES)
67
68%.edj: %.edc
69 $(EDJE_CC) $<
70
71$(EXAMPLES):
72 $(CC) -o $@ $@.c $(COMMON_FLAGS)
73
74codegen:
75 $(EDJE_CODEGEN) --prefix=codegen_example codegen.edj example_group codegen_example_generated.c codegen_example_generated.h
76
77edje-codegen-example: codegen
78 $(CC) -o edje-codegen-example codegen_example_generated.c edje-codegen-example.c $(COMMON_FLAGS)
79
80clean:
81 @echo "Cleaning up built objects..."
82 @rm -Rf $(EXAMPLES) *.edj edje-codegen-example
diff --git a/src/examples/eet/Makefile.am b/src/examples/eet/Makefile.am
index 1233e700ae..226a7e636a 100644
--- a/src/examples/eet/Makefile.am
+++ b/src/examples/eet/Makefile.am
@@ -39,6 +39,10 @@ eet-data-file_descriptor_01.c \
39eet-data-file_descriptor_02.c \ 39eet-data-file_descriptor_02.c \
40eet-data-cipher_decipher.c 40eet-data-cipher_decipher.c
41 41
42DATA_FILES = Makefile.examples
43
44EXTRA_DIST = $(DATA_FILES)
45
42examples: $(EXTRA_PROGRAMS) 46examples: $(EXTRA_PROGRAMS)
43 47
44clean-local: 48clean-local:
@@ -46,10 +50,10 @@ clean-local:
46 50
47install-examples: 51install-examples:
48 mkdir -p $(datadir)/eet/examples 52 mkdir -p $(datadir)/eet/examples
49 $(install_sh_DATA) -c $(SRCS) $(datadir)/eet/examples 53 $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eet/examples
50 54
51uninstall-local: 55uninstall-local:
52 for f in $(SRCS) ; do \ 56 for f in $(SRCS) $(DATA_FILES); do \
53 rm -f $(datadir)/eet/examples/$$f ; \ 57 rm -f $(datadir)/eet/examples/$$f ; \
54 done 58 done
55 59
diff --git a/src/examples/eet/Makefile.examples b/src/examples/eet/Makefile.examples
new file mode 100644
index 0000000000..6b419cb7ba
--- /dev/null
+++ b/src/examples/eet/Makefile.examples
@@ -0,0 +1,20 @@
1CC=gcc
2COMMON_FLAGS=`pkg-config --libs --cflags eina,eet`
3
4EXAMPLES= eet-basic \
5 eet-data-cipher_decipher \
6 eet-data-file_descriptor_01 \
7 eet-data-file_descriptor_02 \
8 eet-data-nested \
9 eet-data-simple \
10 eet-file
11
12all: examples
13examples: $(EXAMPLES)
14
15$(EXAMPLES):
16 $(CC) -o $@ $@.c $(COMMON_FLAGS)
17
18clean:
19 @echo "Cleaning up built objects..."
20 @rm -Rf $(EXAMPLES)
diff --git a/src/examples/eina/Makefile.am b/src/examples/eina/Makefile.am
index 4421f502a0..b64805a4d6 100644
--- a/src/examples/eina/Makefile.am
+++ b/src/examples/eina/Makefile.am
@@ -134,6 +134,10 @@ $(top_builddir)/src/lib/ecore_evas/libecore_evas.la \
134$(top_builddir)/src/lib/evas/libevas.la \ 134$(top_builddir)/src/lib/evas/libevas.la \
135@EINA_LDFLAGS@ 135@EINA_LDFLAGS@
136 136
137DATA_FILES = addr_book.txt chat.xml Makefile.examples
138
139EXTRA_DIST = $(DATA_FILES)
140
137examples: $(EXTRA_PROGRAMS) 141examples: $(EXTRA_PROGRAMS)
138 142
139clean-local: 143clean-local:
@@ -141,15 +145,13 @@ clean-local:
141 145
142install-examples: 146install-examples:
143 mkdir -p $(datadir)/eina/examples 147 mkdir -p $(datadir)/eina/examples
144 $(install_sh_DATA) -c $(SRCS) $(datadir)/eina/examples 148 $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eina/examples
145 149
146uninstall-local: 150uninstall-local:
147 for f in $(SRCS) ; do \ 151 for f in $(SRCS) $(DATA_FILES); do \
148 rm -f $(datadir)/eina/examples/$$f ; \ 152 rm -f $(datadir)/eina/examples/$$f ; \
149 done 153 done
150 154
151EXTRA_DIST = addr_book.txt chat.xml
152
153if ALWAYS_BUILD_EXAMPLES 155if ALWAYS_BUILD_EXAMPLES
154noinst_PROGRAMS = $(EXTRA_PROGRAMS) 156noinst_PROGRAMS = $(EXTRA_PROGRAMS)
155endif 157endif
diff --git a/src/examples/eina/Makefile.examples b/src/examples/eina/Makefile.examples
new file mode 100644
index 0000000000..928dae41d7
--- /dev/null
+++ b/src/examples/eina/Makefile.examples
@@ -0,0 +1,51 @@
1CC=gcc
2COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas`
3
4EXAMPLES= eina_accessor_01 \
5 eina_array_01 \
6 eina_array_02 \
7 eina_error_01 \
8 eina_file_01 \
9 eina_file_02 \
10 eina_hash_01 \
11 eina_hash_02 \
12 eina_hash_03 \
13 eina_hash_04 \
14 eina_hash_05 \
15 eina_hash_06 \
16 eina_hash_07 \
17 eina_hash_08 \
18 eina_inarray_01 \
19 eina_inarray_02 \
20 eina_inlist_01 \
21 eina_inlist_02 \
22 eina_inlist_03 \
23 eina_iterator_01 \
24 eina_list_01 \
25 eina_list_02 \
26 eina_list_03 \
27 eina_list_04 \
28 eina_log_01 \
29 eina_log_02 \
30 eina_log_03 \
31 eina_magic_01 \
32 eina_simple_xml_parser_01 \
33 eina_str_01 \
34 eina_strbuf_01 \
35 eina_stringshare_01 \
36 eina_tiler_01 \
37 eina_value_01 \
38 eina_value_02 \
39 eina_value_03 \
40 eina_xattr_01 \
41 eina_xattr_02
42
43all: examples
44examples: $(EXAMPLES)
45
46$(EXAMPLES):
47 $(CC) -o $@ $@.c $(COMMON_FLAGS)
48
49clean:
50 @echo "Cleaning up built objects..."
51 @rm -Rf $(EXAMPLES)
diff --git a/src/examples/eio/Makefile.am b/src/examples/eio/Makefile.am
index 762a742292..6e5be1f510 100644
--- a/src/examples/eio/Makefile.am
+++ b/src/examples/eio/Makefile.am
@@ -38,6 +38,10 @@ SRCS = \
38eio_file_ls.c \ 38eio_file_ls.c \
39eio_file_copy.c 39eio_file_copy.c
40 40
41DATA_FILES = Makefile.examples
42
43EXTRA_DIST = $(DATA_FILES)
44
41examples: $(EXTRA_PROGRAMS) 45examples: $(EXTRA_PROGRAMS)
42 46
43clean-local: 47clean-local:
@@ -45,10 +49,10 @@ clean-local:
45 49
46install-examples: 50install-examples:
47 mkdir -p $(datadir)/eio/examples 51 mkdir -p $(datadir)/eio/examples
48 $(install_sh_DATA) -c $(SRCS) $(datadir)/eio/examples 52 $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/eio/examples
49 53
50uninstall-local: 54uninstall-local:
51 for f in $(SRCS) ; do \ 55 for f in $(SRCS) $(DATA_FILES); do \
52 rm -f $(datadir)/eio/examples/$$f ; \ 56 rm -f $(datadir)/eio/examples/$$f ; \
53 done 57 done
54 58
diff --git a/src/examples/eio/Makefile.examples b/src/examples/eio/Makefile.examples
new file mode 100644
index 0000000000..58070a92bd
--- /dev/null
+++ b/src/examples/eio/Makefile.examples
@@ -0,0 +1,15 @@
1CC=gcc
2COMMON_FLAGS=`pkg-config --libs --cflags ecore,eio`
3
4EXAMPLES= eio_file_copy \
5 eio_file_ls
6
7all: examples
8examples: $(EXAMPLES)
9
10$(EXAMPLES):
11 $(CC) -o $@ $@.c $(COMMON_FLAGS)
12
13clean:
14 @echo "Cleaning up built objects..."
15 @rm -Rf $(EXAMPLES)
diff --git a/src/examples/emotion/Makefile.am b/src/examples/emotion/Makefile.am
index b1bf86e654..23adc0ecb9 100644
--- a/src/examples/emotion/Makefile.am
+++ b/src/examples/emotion/Makefile.am
@@ -38,6 +38,10 @@ emotion_generic_subtitle_example.c \
38emotion_border_example.c \ 38emotion_border_example.c \
39emotion_signals_example.c 39emotion_signals_example.c
40 40
41DATA_FILES = Makefile.examples
42
43EXTRA_DIST = $(DATA_FILES)
44
41examples: $(EXTRA_PROGRAMS) 45examples: $(EXTRA_PROGRAMS)
42 46
43clean-local: 47clean-local:
@@ -45,10 +49,10 @@ clean-local:
45 49
46install-examples: 50install-examples:
47 mkdir -p $(datadir)/emotion/examples 51 mkdir -p $(datadir)/emotion/examples
48 $(install_sh_DATA) -c $(SRCS) $(datadir)/emotion/examples 52 $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/emotion/examples
49 53
50uninstall-local: 54uninstall-local:
51 for f in $(SRCS); do \ 55 for f in $(SRCS) $(DATA_FILES); do \
52 rm -f $(datadir)/emotion/examples/$$f ; \ 56 rm -f $(datadir)/emotion/examples/$$f ; \
53 done 57 done
54 58
diff --git a/src/examples/emotion/Makefile.examples b/src/examples/emotion/Makefile.examples
new file mode 100644
index 0000000000..e97882d850
--- /dev/null
+++ b/src/examples/emotion/Makefile.examples
@@ -0,0 +1,18 @@
1CC=gcc
2COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,emotion`
3
4EXAMPLES= emotion_basic_example \
5 emotion_border_example \
6 emotion_generic_example \
7 emotion_generic_subtitle_example \
8 emotion_signals_example
9
10all: examples
11examples: $(EXAMPLES)
12
13$(EXAMPLES):
14 $(CC) -o $@ $@.c $(COMMON_FLAGS)
15
16clean:
17 @echo "Cleaning up built objects..."
18 @rm -Rf $(EXAMPLES)
diff --git a/src/examples/eo/Makefile.am b/src/examples/eo/Makefile.am
index 540d3fc02d..6f0b783ab0 100644
--- a/src/examples/eo/Makefile.am
+++ b/src/examples/eo/Makefile.am
@@ -61,29 +61,40 @@ simple/simple_simple.h
61 61
62eo_simple_LDADD = $(top_builddir)/src/lib/eo/libeo.la @EO_LDFLAGS@ 62eo_simple_LDADD = $(top_builddir)/src/lib/eo/libeo.la @EO_LDFLAGS@
63 63
64DATA_FILES = Makefile.examples
65
66EXTRA_DIST = $(DATA_FILES)
67
64examples: $(EXTRA_PROGRAMS) 68examples: $(EXTRA_PROGRAMS)
65 69
66clean-local: 70clean-local:
67 rm -f $(EXTRA_PROGRAMS) 71 rm -f $(EXTRA_PROGRAMS)
68 72
69install-examples: 73install-examples:
74 mkdir -p $(datadir)/eo/examples
75 $(install_sh_DATA) -c $(DATA_FILES) $(datadir)/eo/examples
70 mkdir -p $(datadir)/eo/examples/isa 76 mkdir -p $(datadir)/eo/examples/isa
71 $(install_sh_DATA) -c $(eo_isa_SOURCES) $(datadir)/eo/examples/isa 77 $(install_sh_DATA) -c $(eo_isa_SOURCES) $(datadir)/eo/examples/isa
72 mkdir -p $(datadir)/eo/examples/evas
73 $(install_sh_DATA) -c $(evas_SOURCES) $(datadir)/eo/examples/evas
74 mkdir -p $(datadir)/eo/examples/simple 78 mkdir -p $(datadir)/eo/examples/simple
75 $(install_sh_DATA) -c $(simple_SOURCES) $(datadir)/eo/examples/simple 79 $(install_sh_DATA) -c $(eo_simple_SOURCES) $(datadir)/eo/examples/simple
80if EO_BUILD_EXAMPLE_EVAS
81 mkdir -p $(datadir)/eo/examples/evas
82 $(install_sh_DATA) -c $(eo_evas_SOURCES) $(datadir)/eo/examples/evas
83endif
76 84
77uninstall-local: 85uninstall-local:
86 for f in $(DATA_FILES) ; do \
87 rm -f $(datadir)/eo/examples/$$f ; \
88 done
78 for f in $(eo_isa_SOURCES) ; do \ 89 for f in $(eo_isa_SOURCES) ; do \
79 rm -f $(datadir)/eo/examples/isa/$$f ; \ 90 rm -f $(datadir)/eo/examples/isa/$$f ; \
80 done 91 done
81 for f in $(evas_SOURCES) ; do \ 92 for f in $(eo_simple_SOURCES) ; do \
82 rm -f $(datadir)/eo/examples/evas/$$f ; \
83 done
84 for f in $(simple_SOURCES) ; do \
85 rm -f $(datadir)/eo/examples/simple/$$f ; \ 93 rm -f $(datadir)/eo/examples/simple/$$f ; \
86 done 94 done
95 for f in $(eo_evas_SOURCES) ; do \
96 rm -f $(datadir)/eo/examples/evas/$$f ; \
97 done
87 98
88if ALWAYS_BUILD_EXAMPLES 99if ALWAYS_BUILD_EXAMPLES
89noinst_PROGRAMS = $(EXTRA_PROGRAMS) 100noinst_PROGRAMS = $(EXTRA_PROGRAMS)
diff --git a/src/examples/eo/Makefile.examples b/src/examples/eo/Makefile.examples
new file mode 100644
index 0000000000..887e3b9b45
--- /dev/null
+++ b/src/examples/eo/Makefile.examples
@@ -0,0 +1,42 @@
1CC=gcc
2COMMON_FLAGS=`pkg-config --libs --cflags eo`
3EXTRA_FLAGS=`pkg-config --libs --cflags evas,elementary`
4
5SIMPLE= simple/simple_main.c \
6 simple/simple_interface.c \
7 simple/simple_mixin.c \
8 simple/simple_simple.c
9
10ISA= isa/eo_isa_main.c \
11 isa/eo_isa_complex.c \
12 isa/eo_isa_interface.c \
13 isa/eo_isa_simple.c \
14 isa/eo_isa_mixin.c
15
16EVAS= evas/evas_test.c \
17 evas/evas_elw_box.c \
18 evas/evas_elw_boxedbutton.c \
19 evas/evas_elw_button.c \
20 evas/evas_elw_win.c \
21 evas/evas_evas_obj.c
22
23EXAMPLES= eo_simple \
24 eo_isa
25
26all: examples
27
28examples: $(EXAMPLES)
29 @echo "To build optional evas examples, run: make Makefile.examples eo_evas"
30
31eo_simple:
32 $(CC) -o $@ $(SIMPLE) $(COMMON_FLAGS)
33
34eo_isa:
35 $(CC) -o $@ $(ISA) $(COMMON_FLAGS)
36
37eo_evas:
38 $(CC) -o $@ $(EVAS) $(COMMON_FLAGS) $(EXTRA_FLAGS)
39
40clean:
41 @echo "Cleaning up built objects..."
42 @rm -Rf $(EXAMPLES) eo_evas
diff --git a/src/examples/ethumb_client/Makefile.am b/src/examples/ethumb_client/Makefile.am
index a7f81e113e..247c5287ca 100644
--- a/src/examples/ethumb_client/Makefile.am
+++ b/src/examples/ethumb_client/Makefile.am
@@ -39,6 +39,10 @@ ethumb_dbus
39SRCS = \ 39SRCS = \
40ethumb_dbus.c 40ethumb_dbus.c
41 41
42DATA_FILES = Makefile.examples
43
44EXTRA_DIST = $(DATA_FILES)
45
42examples: $(EXTRA_PROGRAMS) 46examples: $(EXTRA_PROGRAMS)
43 47
44clean-local: 48clean-local:
@@ -46,10 +50,10 @@ clean-local:
46 50
47install-examples: 51install-examples:
48 mkdir -p $(datadir)/ethumb_client/examples 52 mkdir -p $(datadir)/ethumb_client/examples
49 $(install_sh_DATA) -c $(SRCS) $(datadir)/ethumb_client/examples 53 $(install_sh_DATA) -c $(SRCS) $(DATA_FILES) $(datadir)/ethumb_client/examples
50 54
51uninstall-local: 55uninstall-local:
52 for f in $(SRCS); do \ 56 for f in $(SRCS) $(DATA_FILES); do \
53 rm -f $(datadir)/ethumb_client/examples/$$f ; \ 57 rm -f $(datadir)/ethumb_client/examples/$$f ; \
54 done 58 done
55 59
diff --git a/src/examples/ethumb_client/Makefile.examples b/src/examples/ethumb_client/Makefile.examples
new file mode 100644
index 0000000000..5d8d7ceb1b
--- /dev/null
+++ b/src/examples/ethumb_client/Makefile.examples
@@ -0,0 +1,14 @@
1CC=gcc
2COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,ethumb,ethumb_client`
3
4EXAMPLES= ethumb_dbus
5
6all: examples
7examples: $(EXAMPLES)
8
9$(EXAMPLES):
10 $(CC) -o $@ $@.c $(COMMON_FLAGS)
11
12clean:
13 @echo "Cleaning up built objects..."
14 @rm -Rf $(EXAMPLES)
diff --git a/src/examples/evas/Makefile.am b/src/examples/evas/Makefile.am
index 978622711a..0a04858243 100644
--- a/src/examples/evas/Makefile.am
+++ b/src/examples/evas/Makefile.am
@@ -204,7 +204,8 @@ DATA_FILES = \
204enlightenment.png \ 204enlightenment.png \
205red.png \ 205red.png \
206im1.png \ 206im1.png \
207cube1.png 207cube1.png \
208Makefile.examples
208 209
209examples: $(EXTRA_PROGRAMS) $(EDJS) 210examples: $(EXTRA_PROGRAMS) $(EDJS)
210 211
diff --git a/src/examples/evas/Makefile.examples b/src/examples/evas/Makefile.examples
new file mode 100644
index 0000000000..f91d14f48f
--- /dev/null
+++ b/src/examples/evas/Makefile.examples
@@ -0,0 +1,38 @@
1CC=gcc
2EDJE_CC=edje_cc
3EDJE_CODEGEN=edje_codegen
4COMMON_FLAGS=`pkg-config --libs --cflags eina,ecore,evas,ecore-evas,edje,eo`
5
6EDJE_OBJS= aspect.edj
7
8EXAMPLES= evas-aspect-hints \
9 evas-box \
10 evas-buffer-simple \
11 evas-events \
12 evas-hints \
13 evas-images \
14 evas-images2 \
15 evas-images3 \
16 evas-init-shutdown \
17 evas-map-utils \
18 evas-object-manipulation \
19 evas-object-manipulation-eo \
20 evas-smart-interface \
21 evas-smart-object \
22 evas-stacking \
23 evas-table \
24 evas-text
25
26all: edje examples
27edje: $(EDJE_OBJS)
28examples: $(EXAMPLES)
29
30%.edj: %.edc
31 $(EDJE_CC) $<
32
33$(EXAMPLES):
34 $(CC) -o $@ $@.c $(COMMON_FLAGS)
35
36clean:
37 @echo "Cleaning up built objects..."
38 @rm -Rf $(EXAMPLES) *.edj