summaryrefslogtreecommitdiff
path: root/src/examples/ecore
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-31 00:46:14 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-31 00:46:14 +0000
commitdf1b3d30c4ca130fcecce67b2c0fcbbbcfa5a29c (patch)
treee26086071ac285910d3e162c39819f3a2c3affea /src/examples/ecore
parent51f8fe26fc4774e69be3547d49ae902c287c8b61 (diff)
efl: refactor CFLAGS, LIBS, LIBADD and LDADD usage.
- remove EFL_LIBS and EFL_CFLAGS, use per-lib values that inherit from EFL (general) - add NAME_LDFLAGS and EFL_LDFLAGS for linker flags. - LDADD (binaries) now use NAME_LDFLAGS instead of NAME_LIBS, as they link to libname.la and that will pull in the libtool dependencies SVN revision: 81915
Diffstat (limited to 'src/examples/ecore')
-rw-r--r--src/examples/ecore/Makefile.am83
1 files changed, 51 insertions, 32 deletions
diff --git a/src/examples/ecore/Makefile.am b/src/examples/ecore/Makefile.am
index b23dfeb466..edcab2b69d 100644
--- a/src/examples/ecore/Makefile.am
+++ b/src/examples/ecore/Makefile.am
@@ -51,108 +51,127 @@ ecore_thread_example \
51ecore_time_functions_example \ 51ecore_time_functions_example \
52ecore_timer_example 52ecore_timer_example
53 53
54ECORE_COMMON_LDADD = \
55$(top_builddir)/src/lib/ecore/libecore.la \
56$(top_builddir)/src/lib/eo/libeo.la \
57$(top_builddir)/src/lib/eina/libeina.la \
58@ECORE_LDFLAGS@
59
54if HAVE_ECORE_AUDIO 60if HAVE_ECORE_AUDIO
55EXTRA_PROGRAMS += \ 61EXTRA_PROGRAMS += \
56ecore_audio_custom \ 62ecore_audio_custom \
57ecore_audio_playback \ 63ecore_audio_playback \
58ecore_audio_to_ogg 64ecore_audio_to_ogg
59 65
66ECORE_AUDIO_COMMON_LDADD = \
67$(top_builddir)/src/lib/ecore_audio/libecore_audio.la \
68$(ECORE_COMMON_LDADD)
69
60ecore_audio_custom_SOURCES = ecore_audio_custom.c 70ecore_audio_custom_SOURCES = ecore_audio_custom.c
61ecore_audio_custom_LDADD = $(top_builddir)/src/lib/ecore_audio/libecore_audio.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eina/libeina.la @ECORE_LIBS@ 71ecore_audio_custom_LDADD = $(ECORE_AUDIO_COMMON_LDADD)
62 72
63ecore_audio_playback_SOURCES = ecore_audio_playback.c 73ecore_audio_playback_SOURCES = ecore_audio_playback.c
64ecore_audio_playback_LDADD = $(top_builddir)/src/lib/ecore_audio/libecore_audio.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eina/libeina.la @ECORE_LIBS@ 74ecore_audio_playback_LDADD = $(ECORE_AUDIO_COMMON_LDADD)
65 75
66ecore_audio_to_ogg_SOURCES = ecore_audio_to_ogg.c 76ecore_audio_to_ogg_SOURCES = ecore_audio_to_ogg.c
67ecore_audio_to_ogg_LDADD = $(top_builddir)/src/lib/ecore_audio/libecore_audio.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eina/libeina.la @ECORE_LIBS@ 77ecore_audio_to_ogg_LDADD = $(ECORE_AUDIO_COMMON_LDADD)
68endif 78endif
69 79
80ECORE_EVAS_COMMON_LDADD = \
81$(top_builddir)/src/lib/ecore_evas/libecore_evas.la \
82$(top_builddir)/src/lib/evas/libevas.la \
83$(ECORE_COMMON_LDADD)
84
85ECORE_CON_COMMON_LDADD = \
86$(top_builddir)/src/lib/ecore_con/libecore_con.la \
87$(ECORE_COMMON_LDADD)
88
70ecore_animator_example_SOURCES = ecore_animator_example.c 89ecore_animator_example_SOURCES = ecore_animator_example.c
71ecore_animator_example_LDADD = $(top_builddir)/src/lib/ecore_evas/libecore_evas.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/evas/libevas.la @ECORE_LIBS@ 90ecore_animator_example_LDADD = $(ECORE_EVAS_COMMON_LDADD)
72 91
73ecore_client_bench_SOURCES = ecore_client_bench.c 92ecore_client_bench_SOURCES = ecore_client_bench.c
74ecore_client_bench_LDADD = $(top_builddir)/src/lib/ecore_con/libecore_con.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eina/libeina.la @ECORE_LIBS@ 93ecore_client_bench_LDADD = $(ECORE_CON_COMMON_LDADD)
75 94
76ecore_con_client_simple_example_SOURCES = ecore_con_client_simple_example.c 95ecore_con_client_simple_example_SOURCES = ecore_con_client_simple_example.c
77ecore_con_client_simple_example_LDADD = $(top_builddir)/src/lib/ecore_con/libecore_con.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eina/libeina.la @ECORE_LIBS@ 96ecore_con_client_simple_example_LDADD = $(ECORE_CON_COMMON_LDADD)
78 97
79ecore_con_lookup_example_SOURCES = ecore_con_lookup_example.c 98ecore_con_lookup_example_SOURCES = ecore_con_lookup_example.c
80ecore_con_lookup_example_LDADD = $(top_builddir)/src/lib/ecore_con/libecore_con.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eina/libeina.la @ECORE_LIBS@ 99ecore_con_lookup_example_LDADD = $(ECORE_CON_COMMON_LDADD)
81 100
82ecore_con_server_http_example_SOURCES = ecore_con_server_http_example.c 101ecore_con_server_http_example_SOURCES = ecore_con_server_http_example.c
83ecore_con_server_http_example_LDADD = $(top_builddir)/src/lib/ecore_con/libecore_con.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eina/libeina.la @ECORE_LIBS@ 102ecore_con_server_http_example_LDADD = $(ECORE_CON_COMMON_LDADD)
84 103
85ecore_con_server_simple_example_SOURCES = ecore_con_server_simple_example.c 104ecore_con_server_simple_example_SOURCES = ecore_con_server_simple_example.c
86ecore_con_server_simple_example_LDADD = $(top_builddir)/src/lib/ecore_con/libecore_con.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eina/libeina.la @ECORE_LIBS@ 105ecore_con_server_simple_example_LDADD = $(ECORE_CON_COMMON_LDADD)
87 106
88ecore_con_url_cookies_example_SOURCES = ecore_con_url_cookies_example.c 107ecore_con_url_cookies_example_SOURCES = ecore_con_url_cookies_example.c
89ecore_con_url_cookies_example_LDADD = $(top_builddir)/src/lib/ecore_con/libecore_con.la $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 108ecore_con_url_cookies_example_LDADD = $(ECORE_CON_COMMON_LDADD)
90 109
91ecore_con_url_download_example_SOURCES = ecore_con_url_download_example.c 110ecore_con_url_download_example_SOURCES = ecore_con_url_download_example.c
92ecore_con_url_download_example_LDADD = $(top_builddir)/src/lib/ecore_con/libecore_con.la $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 111ecore_con_url_download_example_LDADD = $(ECORE_CON_COMMON_LDADD)
93 112
94ecore_con_url_headers_example_SOURCES = ecore_con_url_headers_example.c 113ecore_con_url_headers_example_SOURCES = ecore_con_url_headers_example.c
95ecore_con_url_headers_example_LDADD = $(top_builddir)/src/lib/ecore_con/libecore_con.la $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 114ecore_con_url_headers_example_LDADD = $(ECORE_CON_COMMON_LDADD)
96 115
97ecore_evas_basics_example_SOURCES = ecore_evas_basics_example.c 116ecore_evas_basics_example_SOURCES = ecore_evas_basics_example.c
98ecore_evas_basics_example_LDADD = $(top_builddir)/src/lib/ecore_evas/libecore_evas.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/evas/libevas.la @ECORE_LIBS@ 117ecore_evas_basics_example_LDADD = $(ECORE_EVAS_COMMON_LDADD)
99 118
100ecore_evas_buffer_example_01_SOURCES = ecore_evas_buffer_example_01.c 119ecore_evas_buffer_example_01_SOURCES = ecore_evas_buffer_example_01.c
101ecore_evas_buffer_example_01_LDADD = $(top_builddir)/src/lib/ecore_evas/libecore_evas.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/evas/libevas.la @ECORE_LIBS@ 120ecore_evas_buffer_example_01_LDADD = $(ECORE_EVAS_COMMON_LDADD)
102 121
103ecore_evas_buffer_example_02_SOURCES = ecore_evas_buffer_example_02.c 122ecore_evas_buffer_example_02_SOURCES = ecore_evas_buffer_example_02.c
104ecore_evas_buffer_example_02_LDADD = $(top_builddir)/src/lib/ecore_evas/libecore_evas.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/evas/libevas.la @ECORE_LIBS@ 123ecore_evas_buffer_example_02_LDADD = $(ECORE_EVAS_COMMON_LDADD)
105 124
106ecore_evas_callbacks_SOURCES = ecore_evas_callbacks.c 125ecore_evas_callbacks_SOURCES = ecore_evas_callbacks.c
107ecore_evas_callbacks_LDADD = $(top_builddir)/src/lib/ecore_evas/libecore_evas.la $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 126ecore_evas_callbacks_LDADD = $(ECORE_EVAS_COMMON_LDADD)
108 127
109ecore_evas_ews_example_SOURCES = ecore_evas_ews_example.c 128ecore_evas_ews_example_SOURCES = ecore_evas_ews_example.c
110ecore_evas_ews_example_LDADD = $(top_builddir)/src/lib/ecore_evas/libecore_evas.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/evas/libevas.la @ECORE_LIBS@ 129ecore_evas_ews_example_LDADD = $(ECORE_EVAS_COMMON_LDADD)
111 130
112ecore_evas_object_example_SOURCES = ecore_evas_object_example.c 131ecore_evas_object_example_SOURCES = ecore_evas_object_example.c
113ecore_evas_object_example_LDADD = $(top_builddir)/src/lib/ecore_evas/libecore_evas.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/evas/libevas.la @ECORE_LIBS@ 132ecore_evas_object_example_LDADD = $(ECORE_EVAS_COMMON_LDADD)
114 133
115ecore_evas_window_sizes_example_SOURCES = ecore_evas_window_sizes_example.c 134ecore_evas_window_sizes_example_SOURCES = ecore_evas_window_sizes_example.c
116ecore_evas_window_sizes_example_LDADD = $(top_builddir)/src/lib/ecore_evas/libecore_evas.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/evas/libevas.la @ECORE_LIBS@ 135ecore_evas_window_sizes_example_LDADD = $(ECORE_EVAS_COMMON_LDADD)
117 136
118ecore_event_example_01_SOURCES = ecore_event_example_01.c 137ecore_event_example_01_SOURCES = ecore_event_example_01.c
119ecore_event_example_01_LDADD = $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 138ecore_event_example_01_LDADD = $(ECORE_COMMON_LDADD)
120 139
121ecore_event_example_02_SOURCES = ecore_event_example_02.c 140ecore_event_example_02_SOURCES = ecore_event_example_02.c
122ecore_event_example_02_LDADD = $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 141ecore_event_example_02_LDADD = $(ECORE_COMMON_LDADD)
123 142
124ecore_exe_example_SOURCES = ecore_exe_example.c 143ecore_exe_example_SOURCES = ecore_exe_example.c
125ecore_exe_example_LDADD = $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 144ecore_exe_example_LDADD = $(ECORE_COMMON_LDADD)
126 145
127ecore_exe_example_child_SOURCES = ecore_exe_example_child.c 146ecore_exe_example_child_SOURCES = ecore_exe_example_child.c
128ecore_exe_example_child_LDADD = $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 147ecore_exe_example_child_LDADD = $(ECORE_COMMON_LDADD)
129 148
130ecore_fd_handler_example_SOURCES = ecore_fd_handler_example.c 149ecore_fd_handler_example_SOURCES = ecore_fd_handler_example.c
131ecore_fd_handler_example_LDADD = $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 150ecore_fd_handler_example_LDADD = $(ECORE_COMMON_LDADD)
132 151
133ecore_idler_example_SOURCES = ecore_idler_example.c 152ecore_idler_example_SOURCES = ecore_idler_example.c
134ecore_idler_example_LDADD = $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eo/libeo.la @ECORE_LIBS@ 153ecore_idler_example_LDADD = $(ECORE_COMMON_LDADD)
135 154
136ecore_job_example_SOURCES = ecore_job_example.c 155ecore_job_example_SOURCES = ecore_job_example.c
137ecore_job_example_LDADD = $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 156ecore_job_example_LDADD = $(ECORE_COMMON_LDADD)
138 157
139ecore_pipe_simple_example_SOURCES = ecore_pipe_simple_example.c 158ecore_pipe_simple_example_SOURCES = ecore_pipe_simple_example.c
140ecore_pipe_simple_example_LDADD = $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 159ecore_pipe_simple_example_LDADD = $(ECORE_COMMON_LDADD)
141 160
142ecore_poller_example_SOURCES = ecore_poller_example.c 161ecore_poller_example_SOURCES = ecore_poller_example.c
143ecore_poller_example_LDADD = $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eo/libeo.la @ECORE_LIBS@ 162ecore_poller_example_LDADD = $(ECORE_COMMON_LDADD)
144 163
145ecore_server_bench_SOURCES = ecore_server_bench.c 164ecore_server_bench_SOURCES = ecore_server_bench.c
146ecore_server_bench_LDADD = $(top_builddir)/src/lib/ecore_con/libecore_con.la $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eina/libeina.la @ECORE_LIBS@ 165ecore_server_bench_LDADD = $(ECORE_CON_COMMON_LDADD)
147 166
148ecore_thread_example_SOURCES = ecore_thread_example.c 167ecore_thread_example_SOURCES = ecore_thread_example.c
149ecore_thread_example_LDADD = $(top_builddir)/src/lib/ecore/libecore.la $(top_builddir)/src/lib/eina/libeina.la @ECORE_LIBS@ 168ecore_thread_example_LDADD = $(ECORE_COMMON_LDADD)
150 169
151ecore_time_functions_example_SOURCES = ecore_time_functions_example.c 170ecore_time_functions_example_SOURCES = ecore_time_functions_example.c
152ecore_time_functions_example_LDADD = $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 171ecore_time_functions_example_LDADD = $(ECORE_COMMON_LDADD)
153 172
154ecore_timer_example_SOURCES = ecore_timer_example.c 173ecore_timer_example_SOURCES = ecore_timer_example.c
155ecore_timer_example_LDADD = $(top_builddir)/src/lib/ecore/libecore.la @ECORE_LIBS@ 174ecore_timer_example_LDADD = $(ECORE_COMMON_LDADD)
156 175
157SRCS = \ 176SRCS = \
158ecore_animator_example \ 177ecore_animator_example \