headers: move the exposed headers to include folder
[platform/upstream/enlightenment.git] / src / bin / Makefile.mk
1 E_CPPFLAGS = \
2 -I$(top_builddir) \
3 -I$(top_builddir)/src/bin \
4 -I$(top_builddir)/src/include \
5 -I$(top_builddir)/src/bin/video \
6 -I$(top_srcdir) \
7 -I$(top_srcdir)/src/bin \
8 -I$(top_srcdir)/src/include \
9 -I$(top_srcdir)/src/bin/video \
10 @e_cflags@ \
11 @cf_cflags@ \
12 @VALGRIND_CFLAGS@ \
13 @EDJE_DEF@ \
14 @WAYLAND_CFLAGS@ \
15 @WAYLAND_TBM_CFLAGS@ \
16 -DE_BINDIR=\"$(bindir)\" \
17 -DPACKAGE_BIN_DIR=\"@PACKAGE_BIN_DIR@\" \
18 -DPACKAGE_LIB_DIR=\"@PACKAGE_LIB_DIR@\" \
19 -DPACKAGE_DATA_DIR=\"@PACKAGE_DATA_DIR@\" \
20 -DLOCALE_DIR=\"@LOCALE_DIR@\" \
21 -DPACKAGE_SYSCONF_DIR=\"@PACKAGE_SYSCONF_DIR@\"
22
23 bin_PROGRAMS = \
24 src/bin/enlightenment \
25 src/bin/enlightenment_info
26
27 #internal_bindir = $(libdir)/enlightenment/utils
28 #internal_bin_PROGRAMS =
29
30 ENLIGHTENMENTHEADERS = \
31 src/include/e_actions.h \
32 src/include/e_bindings.h \
33 src/include/e_client.h \
34 src/include/e_comp.h \
35 src/include/e_comp_canvas.h \
36 src/include/e_comp_cfdata.h \
37 src/include/e_comp_object.h \
38 src/include/e_config_data.h \
39 src/include/e_config.h \
40 src/include/e_desk.h \
41 src/include/e_desk_area.h \
42 src/include/e_dnd.h \
43 src/include/e_eom.h \
44 src/include/e_focus.h \
45 src/include/e.h \
46 src/include/e_hints.h \
47 src/include/e_includes.h \
48 src/include/e_info_shared_types.h \
49 src/include/e_info_server.h \
50 src/include/e_layout.h \
51 src/include/e_log.h \
52 src/include/e_main.h \
53 src/include/e_module.h \
54 src/include/e_object.h \
55 src/include/e_output.h \
56 src/include/e_pixmap.h \
57 src/include/e_plane.h \
58 src/include/e_pointer.h \
59 src/include/e_prefix.h \
60 src/include/e_plane_renderer.h \
61 src/include/e_screensaver.h \
62 src/include/e_theme.h \
63 src/include/e_utils.h \
64 src/include/e_zone.h \
65 src/include/e_util_transform.h \
66 src/include/e_comp_screen.h \
67 src/include/e_comp_wl_input.h \
68 src/include/e_comp_wl.h \
69 src/include/e_hwc.h \
70 src/include/e_hwc_planes.h \
71 src/include/e_hwc_windows.h \
72 src/include/e_hwc_window.h \
73 src/include/e_hwc_window_queue.h \
74 src/include/e_explicit_sync.h \
75 src/include/e_egl_sync.h \
76 src/include/e_info_server_input.h \
77 src/include/e_comp_wl_tbm.h \
78 src/include/e_presentation_time.h \
79 src/include/e_comp_wl_rsm.h \
80 src/include/e_comp_wl_video_buffer.h \
81 src/include/e_client_video.h \
82 src/include/e_zone_video.h \
83 src/include/e_video_debug.h \
84 src/include/e_comp_wl_viewport.h \
85 src/include/e_comp_wl_capture.h \
86 src/include/e_service_gesture.h \
87 src/include/e_service_quickpanel.h \
88 src/include/e_service_softkey.h \
89 src/include/e_policy.h \
90 src/include/e_policy_conformant.h \
91 src/include/e_policy_visibility.h \
92 src/include/e_policy_private_data.h \
93 src/include/e_policy_wl.h \
94 src/include/e_policy_appinfo.h \
95 src/include/e_appinfo.h \
96 src/include/e_process.h \
97 src/include/e_privilege.h \
98 src/include/e_security.h \
99 src/include/e_keyrouter.h \
100 src/include/e_keyrouter_private.h \
101 src/include/e_gesture.h \
102 src/include/e_input.h \
103 src/include/e_dbus_conn.h \
104 src/include/e_devicemgr.h \
105 src/include/e_map.h \
106 src/include/e_input_event.h
107
108 enlightenment_src = \
109 src/bin/e_actions.c \
110 src/bin/e_bg.c \
111 src/bin/e_bindings.c \
112 src/bin/e_client.c \
113 src/bin/e_comp.c \
114 src/bin/e_comp_canvas.c \
115 src/bin/e_comp_cfdata.c \
116 src/bin/e_comp_object.c \
117 src/bin/e_comp_screen.c \
118 src/bin/e_config.c \
119 src/bin/e_config_data.c \
120 src/bin/e_desk.c \
121 src/bin/e_desk_area.c \
122 src/bin/e_dpms.c \
123 src/bin/e_dnd.c \
124 src/bin/e_env.c \
125 src/bin/e_eom.c \
126 src/bin/e_error.c \
127 src/bin/e_focus_policy_history.c \
128 src/bin/e_focus_policy_topmost.c \
129 src/bin/e_focus_policy_iface.c \
130 src/bin/e_focus.c \
131 src/bin/e_grabinput.c \
132 src/bin/e_hints.c \
133 src/bin/e_icon.c \
134 src/bin/e_info_server.c \
135 src/bin/e_layout.c \
136 src/bin/e_log.c \
137 src/bin/e_maximize.c \
138 src/bin/e_module.c \
139 src/bin/e_mouse.c \
140 src/bin/e_object.c \
141 src/bin/e_path.c \
142 src/bin/e_pixmap.c \
143 src/bin/e_place.c \
144 src/bin/e_plane.c \
145 src/bin/e_pointer.c \
146 src/bin/e_prefix.c \
147 src/bin/e_plane_renderer.c \
148 src/bin/e_scale.c \
149 src/bin/e_screensaver.c \
150 src/bin/e_signals.c \
151 src/bin/e_test_helper.c \
152 src/bin/e_theme.c \
153 src/bin/e_user.c \
154 src/bin/e_utils.c \
155 src/bin/e_zone.c \
156 src/bin/e_util_transform.c \
157 src/bin/e_output.c \
158 src/bin/e_info_protocol.c \
159 src/bin/e_uuid_store.c \
160 src/bin/e_comp_wl_data.c \
161 src/bin/e_comp_wl_input.c \
162 src/bin/e_comp_wl.c \
163 src/bin/e_comp_wl_subsurface.c \
164 src/bin/e_hwc.c \
165 src/bin/e_hwc_planes.c \
166 src/bin/e_hwc_windows.c \
167 src/bin/e_hwc_window.c \
168 src/bin/e_hwc_window_queue.c \
169 src/bin/e_explicit_sync.c \
170 src/bin/e_egl_sync.c \
171 src/bin/e_info_server_input.c \
172 src/bin/e_comp_wl_tbm.c \
173 src/bin/e_comp_wl_renderer.c \
174 src/bin/e_comp_wl_tizen_hwc.c \
175 src/bin/e_presentation_time.c \
176 src/bin/e_comp_wl_rsm.c \
177 src/bin/video/e_comp_wl_video.c \
178 src/bin/video/e_comp_wl_video_buffer.c \
179 src/bin/video/e_client_video.c \
180 src/bin/video/e_zone_video.c \
181 src/bin/video/e_video_debug.c \
182 src/bin/video/e_util_video.c \
183 src/bin/video/iface/e_video_hwc.c \
184 src/bin/video/iface/e_video_hwc_planes.c \
185 src/bin/video/iface/e_video_hwc_windows.c \
186 src/bin/video/iface/e_video_external.c \
187 src/bin/video/iface/e_video_fallback.c \
188 src/bin/e_comp_wl_viewport.c \
189 src/bin/e_comp_wl_screenshooter.c \
190 src/bin/e_comp_wl_shell.c \
191 src/bin/e_comp_wl_capture.c \
192 src/bin/services/e_service_gesture.c \
193 src/bin/services/e_service_lockscreen.c \
194 src/bin/services/e_service_quickpanel.c \
195 src/bin/services/e_service_region.c \
196 src/bin/services/e_service_volume.c \
197 src/bin/services/e_service_indicator.c \
198 src/bin/services/e_service_cbhm.c \
199 src/bin/services/e_service_scrsaver.c \
200 src/bin/services/e_service_softkey.c \
201 src/bin/services/e_service_launcher.c \
202 src/bin/services/e_service_taskbar.c \
203 src/bin/services/e_service_kvm.c \
204 src/bin/e_policy.c \
205 src/bin/e_policy_conformant.c \
206 src/bin/e_policy_softkey.c \
207 src/bin/e_policy_stack.c  \
208 src/bin/e_policy_visibility.c \
209 src/bin/e_policy_wl.c \
210 src/bin/e_policy_wl_display.c \
211 src/bin/e_appinfo.c \
212 src/bin/e_magnifier.c \
213 src/bin/e_process.c \
214 src/bin/e_privilege.c \
215 src/bin/e_security.c \
216 src/bin/e_keyrouter_events.c \
217 src/bin/e_keyrouter_list.c \
218 src/bin/e_keyrouter_conf.c \
219 src/bin/e_keyrouter_wl.c \
220 src/bin/e_keyrouter.c \
221 src/bin/e_gesture.c \
222 src/bin/e_input.c \
223 src/bin/e_input_inputs.c \
224 src/bin/e_input_device.c \
225 src/bin/e_input_evdev.c \
226 src/bin/e_dbus_conn.c \
227 src/bin/e_xdg_shell_v6.c \
228 src/bin/e_devicemgr.c \
229 src/bin/e_devicemgr_conf.c \
230 src/bin/e_devicemgr_block.c \
231 src/bin/e_devicemgr_input.c \
232 src/bin/e_devicemgr_inputgen.c \
233 src/bin/e_devicemgr_wl.c \
234 src/bin/e_msg.c \
235 src/bin/e_foreign.c \
236 src/bin/e_foreign_shell.c \
237 src/bin/e_map.c \
238 src/bin/e_wtz_shell.c \
239 src/bin/e_device.c \
240 src/bin/e_input_event.c \
241 src/bin/e_comp_wl_buffer.c \
242 src/bin/e_compositor.c \
243 src/bin/e_blender.c \
244 src/bin/e_devicemgr_keyboard_grab.c \
245 src/bin/e_subsurface_watcher.c \
246 src/bin/e_tbm_gbm_server.c
247
248 src_bin_enlightenment_CPPFLAGS = $(E_CPPFLAGS) -DEFL_BETA_API_SUPPORT -DEFL_EO_API_SUPPORT -DE_LOGGING=2 @WAYLAND_CFLAGS@ $(TTRACE_CFLAGS) $(DLOG_CFLAGS) $(PIXMAN_CFLAGS) $(POLICY_CFLAGS) $(EGL_CFLAGS)
249 if HAVE_LIBGOMP
250 src_bin_enlightenment_CPPFLAGS += -fopenmp
251 endif
252 if HAVE_WAYLAND_TBM
253 src_bin_enlightenment_CPPFLAGS += @WAYLAND_TBM_CFLAGS@
254 endif
255 if HAVE_HWC
256 src_bin_enlightenment_CPPFLAGS += @HWC_CFLAGS@
257 endif
258 if HAVE_SYSTEMD
259 src_bin_enlightenment_CPPFLAGS += @SYSTEMD_CFLAGS@
260 endif
261 src_bin_enlightenment_CPPFLAGS += @LIBINPUT_CFLAGS@
262
263 src_bin_enlightenment_CPPFLAGS += -Wno-format-truncation
264
265 src_bin_enlightenment_SOURCES = \
266 src/bin/e_main.c \
267 $(enlightenment_src)
268
269 src_bin_enlightenment_LDFLAGS = -export-dynamic
270 if HAVE_LIBGOMP
271 src_bin_enlightenment_LDFLAGS += -fopenmp
272 endif
273 src_bin_enlightenment_LDADD = @e_libs@ @dlopen_libs@ @cf_libs@ @VALGRIND_LIBS@ @WAYLAND_LIBS@ -lm @SHM_OPEN_LIBS@ $(TTRACE_LIBS) $(DLOG_LIBS) $(PIXMAN_LIBS) $(POLICY_LIBS) $(EGL_LIBS)
274 if HAVE_WAYLAND_TBM
275 src_bin_enlightenment_LDADD += @WAYLAND_TBM_LIBS@
276 endif
277 if HAVE_HWC
278 src_bin_enlightenment_LDADD += @HWC_LIBS@
279 endif
280 if HAVE_SYSTEMD
281 src_bin_enlightenment_LDFLAGS += @SYSTEMD_LIBS@
282 endif
283 src_bin_enlightenment_LDFLAGS += @LIBINPUT_LIBS@
284
285 src_bin_enlightenment_info_SOURCES = \
286 src/bin/e.h \
287 src/bin/e_info_client.c
288 src_bin_enlightenment_info_LDADD = @E_INFO_LIBS@
289 src_bin_enlightenment_info_CPPFLAGS = $(E_CPPFLAGS) @E_INFO_CFLAGS@
290 src_bin_enlightenment_info_LDFLAGS = -pie
291 src_bin_enlightenment_info_CPPFLAGS += -fPIE
292 src_bin_enlightenment_info_CPPFLAGS += -Wno-format-truncation
293
294 # HACK! why install-data-hook? install-exec-hook is run after bin_PROGRAMS
295 # and before internal_bin_PROGRAMS are installed. install-data-hook is
296 # run after both
297 setuid_root_mode = a=rx,u+xs
298 installed_headersdir = $(prefix)/include/enlightenment
299 installed_headers_DATA = $(ENLIGHTENMENTHEADERS)
300
301 PHONIES += e enlightenment install-e install-enlightenment
302 e: $(bin_PROGRAMS)
303 enlightenment: e
304 install-e: install-binPROGRAMS
305 install-enlightenment: install-e