Makefile.am 11.9 KB
Newer Older
1
ACLOCAL_AMFLAGS = -I m4
2
AM_MAKEFLAGS = --no-print-directory
3
AM_DISTCHECK_CONFIGURE_FLAGS = \
4
--with-tests=regular \
5 6
--with-systemdunitdir=. \
--enable-always-build-examples
7

8
SUBDIRS = src data config doc
9

10 11 12 13 14 15
if HAVE_PO

SUBDIRS += po

endif

16 17 18
MAINTAINERCLEANFILES = \
Makefile.in \
aclocal.m4 \
19
compile \
Vincent Torri's avatar
Vincent Torri committed
20
config.cache-env \
21 22 23 24 25
config.guess \
config.h.in \
config.h.in~ \
config.sub \
configure \
Vincent Torri's avatar
Vincent Torri committed
26
depcomp \
27 28 29 30 31 32 33 34 35 36
install-sh \
ltmain.sh \
missing \
m4/libtool.m4 \
m4/lt~obsolete.m4 \
m4/ltoptions.m4 \
m4/ltsugar.m4 \
m4/ltversion.m4

EXTRA_DIST =  \
37
m4/pkg_var.m4 \
Vincent Torri's avatar
Vincent Torri committed
38
m4/ac_path_generic.m4 \
39 40
m4/ecore_check_c_extension.m4 \
m4/ecore_check_module.m4 \
41
m4/efl_attribute.m4 \
Vincent Torri's avatar
Vincent Torri committed
42
m4/efl_check_funcs.m4 \
43 44
m4/efl_compiler.m4 \
m4/efl_doxygen.m4 \
Vincent Torri's avatar
Vincent Torri committed
45 46
m4/efl_path_max.m4 \
m4/efl_threads.m4 \
47
m4/efl_libunwind.m4 \
48 49
m4/eina_check.m4 \
m4/eina_config.m4 \
50
m4/eio_check_options.m4 \
51 52
m4/evas_check_engine.m4 \
m4/evas_check_loader.m4 \
53
m4/evil_windows.m4 \
54 55
m4/libgcrypt.m4 \
m4/gcc_check_builtin.m4
56

Vincent Torri's avatar
Vincent Torri committed
57
EXTRA_DIST += \
58 59 60 61
README \
AUTHORS \
COPYING \
COMPLIANCE \
62 63 64
licenses/COPYING.LGPL \
licenses/COPYING.GPL \
licenses/COPYING.BSD \
65
licenses/COPYING.SMALL \
ChunEon Park's avatar
ChunEon Park committed
66
licenses/COPYING.FTL \
67
licenses/COPYING.NGINX-MIT \
68 69
old/ChangeLog.ecore \
old/ChangeLog.edje \
70
old/ChangeLog.eet \
71 72 73 74 75
old/ChangeLog.eeze \
old/ChangeLog.efreet \
old/ChangeLog.eina \
old/ChangeLog.eio \
old/ChangeLog.embryo \
76
old/ChangeLog.emotion \
77
old/ChangeLog.escape \
Gustavo Sverzut Barbieri's avatar
Gustavo Sverzut Barbieri committed
78
old/ChangeLog.ethumb \
79 80 81 82 83
old/ChangeLog.evas \
old/ChangeLog.evil \
old/ChangeLog.evil.0 \
old/NEWS.ecore \
old/NEWS.edje \
84
old/NEWS.eet \
85 86 87 88 89
old/NEWS.eeze \
old/NEWS.efreet \
old/NEWS.eina \
old/NEWS.eio \
old/NEWS.embryo \
90
old/NEWS.emotion \
91
old/NEWS.escape \
Gustavo Sverzut Barbieri's avatar
Gustavo Sverzut Barbieri committed
92
old/NEWS.ethumb \
93 94 95
old/NEWS.evas \
old/NEWS.evil \
old/README.ecore \
Lucas De Marchi's avatar
Lucas De Marchi committed
96
old/README.eldbus \
97
old/README.edje \
98
old/README.eet \
99 100 101 102 103
old/README.eeze \
old/README.efreet \
old/README.eina \
old/README.eio \
old/README.embryo \
104
old/README.emotion \
105 106
old/README.ephysics \
old/README.escape \
Gustavo Sverzut Barbieri's avatar
Gustavo Sverzut Barbieri committed
107
old/README.ethumb \
108 109
old/README.evas \
old/README.evil \
110
spec/efl.spec \
Doug Newgard's avatar
Doug Newgard committed
111
pkgbuild/PKGBUILD \
112
pkgbuild/efl.install
Vincent Torri's avatar
Vincent Torri committed
113

114 115 116
if HAVE_FREEBSD
pkgconfigdir = $(libdir)data/pkgconfig
else
Vincent Torri's avatar
Vincent Torri committed
117
pkgconfigdir = $(libdir)/pkgconfig
118 119
endif

Vincent Torri's avatar
Vincent Torri committed
120 121 122
pkgconfig_DATA =

if HAVE_WINDOWS
123
pkgconfig_DATA += pc/evil.pc
Vincent Torri's avatar
Vincent Torri committed
124
endif
125

126 127 128 129
if HAVE_PS3
pkgconfig_DATA += pc/escape.pc
endif

130 131 132
pkgconfig_DATA += \
pc/eina.pc \
pc/eo.pc \
Tom Hacohen's avatar
Tom Hacohen committed
133
pc/eolian.pc \
Tom Hacohen's avatar
Tom Hacohen committed
134
pc/efl.pc \
135
pc/emile.pc \
Vincent Torri's avatar
Vincent Torri committed
136
pc/eet.pc \
Vincent Torri's avatar
Vincent Torri committed
137
pc/evas.pc \
138 139 140 141 142 143 144 145 146
pc/ecore.pc \
pc/ecore-con.pc \
pc/ecore-ipc.pc \
pc/ecore-file.pc \
pc/ecore-input.pc \
pc/ecore-input-evas.pc \
pc/ecore-imf.pc \
pc/ecore-imf-evas.pc \
pc/ecore-evas.pc \
147
pc/ecore-avahi.pc \
148
pc/ector.pc \
149
pc/embryo.pc \
150
pc/eio.pc \
Lucas De Marchi's avatar
Lucas De Marchi committed
151
pc/eldbus.pc \
152 153
pc/efreet.pc \
pc/efreet-mime.pc \
154
pc/efreet-trash.pc \
155
pc/edje.pc \
Gustavo Sverzut Barbieri's avatar
Gustavo Sverzut Barbieri committed
156 157
pc/emotion.pc \
pc/ethumb.pc \
158
pc/ethumb_client.pc \
159 160
pc/elocation.pc \
pc/elementary.pc
161 162 163 164 165 166

if HAVE_CXX11
pkgconfig_DATA += \
pc/eina-cxx.pc \
pc/evas-cxx.pc \
pc/ecore-cxx.pc \
167
pc/efl-cxx.pc \
168 169 170
pc/eolian-cxx.pc \
pc/edje-cxx.pc \
pc/eet-cxx.pc \
171
pc/eo-cxx.pc \
172 173
pc/eio-cxx.pc \
pc/elementary-cxx.pc
174
endif
175

176
if HAVE_ELUA
177
pkgconfig_DATA += pc/elua.pc
178 179 180 181 182 183 184 185
endif

if HAVE_JS
pkgconfig_DATA += \
pc/eolian-js.pc \
pc/efl-js.pc \
pc/eo-js.pc \
pc/eina-js.pc
186 187
endif

Vincent Torri's avatar
Vincent Torri committed
188 189 190 191 192 193 194 195
if BUILD_ENGINE_SOFTWARE_X11
pkgconfig_DATA += pc/evas-software-x11.pc
endif

if BUILD_ENGINE_FB
pkgconfig_DATA += pc/evas-fb.pc
endif

196 197 198 199
if BUILD_ENGINE_EGLFS
pkgconfig_DATA += pc/evas-eglfs.pc
endif

Vincent Torri's avatar
Vincent Torri committed
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235
if BUILD_ENGINE_BUFFER
pkgconfig_DATA += pc/evas-software-buffer.pc
endif

if BUILD_ENGINE_GL_X11
pkgconfig_DATA += pc/evas-opengl-x11.pc
endif

if BUILD_ENGINE_GL_SDL
pkgconfig_DATA += pc/evas-opengl-sdl.pc
endif

if BUILD_ENGINE_GL_COCOA
pkgconfig_DATA += pc/evas-opengl-cocoa.pc
endif

if BUILD_ENGINE_SOFTWARE_GDI
pkgconfig_DATA += pc/evas-software-gdi.pc
endif

if BUILD_ENGINE_SOFTWARE_DDRAW
pkgconfig_DATA += pc/evas-software-ddraw.pc
endif

if BUILD_ENGINE_PSL1GHT
pkgconfig_DATA += pc/evas-psl1ght.pc
endif

if BUILD_ENGINE_WAYLAND_SHM
pkgconfig_DATA += pc/evas-wayland-shm.pc
endif

if BUILD_ENGINE_WAYLAND_EGL
pkgconfig_DATA += pc/evas-wayland-egl.pc
endif

236 237 238 239
if BUILD_ENGINE_DRM
pkgconfig_DATA += pc/evas-drm.pc
endif

240 241 242 243 244 245 246 247
if HAVE_ECORE_COCOA
pkgconfig_DATA += pc/ecore-cocoa.pc
endif

if HAVE_ECORE_FB
pkgconfig_DATA += pc/ecore-fb.pc
endif

248 249 250 251
if HAVE_ECORE_DRM
pkgconfig_DATA += pc/ecore-drm.pc
endif

252 253 254 255 256 257 258 259 260 261 262 263
if HAVE_PS3
pkgconfig_DATA += pc/ecore-psl1ght.pc
endif

if HAVE_ECORE_SDL
pkgconfig_DATA += pc/ecore-sdl.pc
endif

if HAVE_ECORE_WAYLAND
pkgconfig_DATA += pc/ecore-wayland.pc
endif

264 265 266 267
if HAVE_ECORE_WL2
pkgconfig_DATA += pc/ecore-wl2.pc
endif

Mike Blumenkrantz's avatar
Mike Blumenkrantz committed
268 269 270 271
if HAVE_EFL_WL
pkgconfig_DATA += pc/efl-wl.pc
endif

272 273 274 275 276 277 278 279
if HAVE_WIN32
pkgconfig_DATA += pc/ecore-win32.pc
endif

if HAVE_ECORE_X
pkgconfig_DATA += pc/ecore-x.pc
endif

280 281 282 283
if HAVE_EEZE
pkgconfig_DATA += pc/eeze.pc
endif

284 285 286 287
if HAVE_EPHYSICS
pkgconfig_DATA += pc/ephysics.pc
endif

288
if HAVE_ECORE_AUDIO
289
pkgconfig_DATA += pc/ecore-audio.pc pc/ecore-audio-cxx.pc
290
endif
291

292 293 294 295
if HAVE_ECORE_BUFFER
pkgconfig_DATA += pc/ecore-buffer.pc
endif

296 297 298 299
if HAVE_ELPUT
pkgconfig_DATA += pc/elput.pc
endif

300 301 302 303
if HAVE_ECORE_DRM2
pkgconfig_DATA += pc/ecore-drm2.pc
endif

304
# Cmake configs:
305 306 307 308 309
efl_cmakeconfigdir = $(libdir)/cmake/Efl/
efl_cmakeconfig_DATA = \
cmakeconfig/EflConfig.cmake \
cmakeconfig/EflConfigVersion.cmake

310 311 312 313 314
eina_cmakeconfigdir = $(libdir)/cmake/Eina/
eina_cmakeconfig_DATA = \
cmakeconfig/EinaConfig.cmake \
cmakeconfig/EinaConfigVersion.cmake

315 316 317 318 319
eio_cmakeconfigdir = $(libdir)/cmake/Eio/
eio_cmakeconfig_DATA = \
cmakeconfig/EioConfig.cmake \
cmakeconfig/EioConfigVersion.cmake

Ryuan Choi's avatar
Ryuan Choi committed
320 321 322 323 324
eeze_cmakeconfigdir = $(libdir)/cmake/Eeze/
eeze_cmakeconfig_DATA = \
cmakeconfig/EezeConfig.cmake \
cmakeconfig/EezeConfigVersion.cmake

325 326 327 328 329
eo_cmakeconfigdir = $(libdir)/cmake/Eo/
eo_cmakeconfig_DATA = \
cmakeconfig/EoConfig.cmake \
cmakeconfig/EoConfigVersion.cmake

330 331 332
eolian_cmakeconfigdir = $(libdir)/cmake/Eolian/
eolian_cmakeconfig_DATA = \
cmakeconfig/EolianConfig.cmake \
333 334
cmakeconfig/EolianConfigVersion.cmake \
cmakeconfig/EolianHelper.cmake
335

336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365
eolian_cxx_cmakeconfigdir = $(libdir)/cmake/EolianCxx/
eolian_cxx_cmakeconfig_DATA = \
cmakeconfig/EolianCxxConfig.cmake \
cmakeconfig/EolianCxxConfigVersion.cmake

eina_cxx_cmakeconfigdir = $(libdir)/cmake/EinaCxx/
eina_cxx_cmakeconfig_DATA = \
cmakeconfig/EinaCxxConfig.cmake \
cmakeconfig/EinaCxxConfigVersion.cmake

eo_cxx_cmakeconfigdir = $(libdir)/cmake/EoCxx/
eo_cxx_cmakeconfig_DATA = \
cmakeconfig/EoCxxConfig.cmake \
cmakeconfig/EoCxxConfigVersion.cmake

ecore_cxx_cmakeconfigdir = $(libdir)/cmake/EcoreCxx/
ecore_cxx_cmakeconfig_DATA = \
cmakeconfig/EcoreCxxConfig.cmake \
cmakeconfig/EcoreCxxConfigVersion.cmake

evas_cxx_cmakeconfigdir = $(libdir)/cmake/EvasCxx/
evas_cxx_cmakeconfig_DATA = \
cmakeconfig/EvasCxxConfig.cmake \
cmakeconfig/EvasCxxConfigVersion.cmake

eet_cxx_cmakeconfigdir = $(libdir)/cmake/EetCxx/
eet_cxx_cmakeconfig_DATA = \
cmakeconfig/EetCxxConfig.cmake \
cmakeconfig/EetCxxConfigVersion.cmake

366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385
eet_cmakeconfigdir = $(libdir)/cmake/Eet/
eet_cmakeconfig_DATA = \
cmakeconfig/EetConfig.cmake \
cmakeconfig/EetConfigVersion.cmake

evas_cmakeconfigdir =  $(libdir)/cmake/Evas/
evas_cmakeconfig_DATA = \
cmakeconfig/EvasConfig.cmake \
cmakeconfig/EvasConfigVersion.cmake

ecore_cmakeconfigdir =  $(libdir)/cmake/Ecore/
ecore_cmakeconfig_DATA = \
cmakeconfig/EcoreConfig.cmake \
cmakeconfig/EcoreConfigVersion.cmake

edje_cmakeconfigdir =  $(libdir)/cmake/Edje/
edje_cmakeconfig_DATA = \
cmakeconfig/EdjeConfig.cmake \
cmakeconfig/EdjeConfigVersion.cmake

386 387 388 389 390
eldbus_cmakeconfigdir = $(libdir)/cmake/Eldbus/
eldbus_cmakeconfig_DATA = \
cmakeconfig/EldbusConfig.cmake \
cmakeconfig/EldbusConfigVersion.cmake

391 392 393 394
efreet_cmakeconfigdir =  $(libdir)/cmake/Efreet/
efreet_cmakeconfig_DATA = \
cmakeconfig/EfreetConfig.cmake \
cmakeconfig/EfreetConfigVersion.cmake
395

396 397 398 399 400 401 402 403 404 405
ethumb_cmakeconfigdir =  $(libdir)/cmake/Ethumb/
ethumb_cmakeconfig_DATA = \
cmakeconfig/EthumbConfig.cmake \
cmakeconfig/EthumbConfigVersion.cmake

ethumbclient_cmakeconfigdir =  $(libdir)/cmake/EthumbClient/
ethumbclient_cmakeconfig_DATA = \
cmakeconfig/EthumbClientConfig.cmake \
cmakeconfig/EthumbClientConfigVersion.cmake

406 407 408 409 410
cmakeconfigdir = $(libdir)/cmake/Elementary
cmakeconfig_DATA = \
cmakeconfig/ElementaryConfig.cmake \
cmakeconfig/ElementaryConfigVersion.cmake

411 412 413 414 415
emotion_cmakeconfigdir =  $(libdir)/cmake/Emotion/
emotion_cmakeconfig_DATA = \
cmakeconfig/EmotionConfig.cmake \
cmakeconfig/EmotionConfigVersion.cmake

416 417 418 419
elua_cmakeconfigdir = $(libdir)/cmake/Elua
elua_cmakeconfig_DATA = \
cmakeconfig/EluaConfig.cmake \
cmakeconfig/EluaConfigVersion.cmake
420

421 422 423 424 425
emile_cmakeconfigdir = $(libdir)/cmake/Emile
emile_cmakeconfig_DATA = \
cmakeconfig/EmileConfig.cmake \
cmakeconfig/EmileConfigVersion.cmake

426 427 428 429
# D-Bus services:

servicedir = @dbusservicedir@
service_DATA = \
Gustavo Sverzut Barbieri's avatar
Gustavo Sverzut Barbieri committed
430
dbus-services/org.enlightenment.Ethumb.service
431

432 433 434 435 436 437
if HAVE_SYSTEMD_USER_SESSION
systemdunitsdir = @USER_SESSION_DIR@
systemdunits_DATA = \
systemd-services/ethumb.service
endif
EXTRA_DIST += $(systemdunits_DATA)
438 439


440
.PHONY: doc benchmark examples install-examples
441 442 443 444 445

# Documentation

doc:
	@echo "entering doc/"
446
	$(MAKE) $(AM_MAKEFLAGS) -C doc doc
Vincent Torri's avatar
Vincent Torri committed
447

448 449
# Unit tests

Vincent Torri's avatar
Vincent Torri committed
450 451 452
if EFL_ENABLE_COVERAGE

lcov-reset:
453 454 455
	@rm -rf $(abs_top_builddir)/coverage
	@find $(abs_top_builddir) -name "*.gcda" -delete
	@lcov --zerocounters --directory $(abs_top_builddir)
Vincent Torri's avatar
Vincent Torri committed
456

457
lcov-baseline:
458 459
	$(MKDIR_P) $(abs_top_builddir)/coverage
	lcov --capture --initial --compat-libtool --no-external --output-file $(abs_top_builddir)/coverage/coverage-baseline.info --directory $(abs_top_builddir) --config-file .lcov-config
460

461
lcov-report: lcov-baseline
462 463 464 465 466 467 468 469 470
	lcov --capture --compat-libtool --no-external --output-file $(abs_top_builddir)/coverage/coverage-check.info --directory $(abs_top_builddir) --config-file .lcov-config
	lcov --no-external --compat-libtool --add-tracefile $(abs_top_builddir)/coverage/coverage-baseline.info --add-tracefile $(abs_top_builddir)/coverage/coverage-check.info --output-file $(abs_top_builddir)/coverage/coverage.info --config-file .lcov-config
	lcov --no-external --compat-libtool --remove $(abs_top_builddir)/coverage/coverage.info '*.h' --output-file $(abs_top_builddir)/coverage/coverage.cleaned.info --config-file .lcov-config
	lcov --no-external --compat-libtool --remove $(abs_top_builddir)/coverage/coverage.cleaned.info '*/tests/*' --output-file $(abs_top_builddir)/coverage/coverage.cleaned2.info --config-file .lcov-config
	lcov --no-external --compat-libtool --remove $(abs_top_builddir)/coverage/coverage.cleaned2.info '*NONE*' --output-file $(abs_top_builddir)/coverage/coverage.cleaned3.info --config-file .lcov-config
	lcov --no-external --compat-libtool --remove $(abs_top_builddir)/coverage/coverage.cleaned3.info '*/doc/*' --output-file $(abs_top_builddir)/coverage/coverage.cleaned4.info --config-file .lcov-config
	lcov --no-external --compat-libtool --remove $(abs_top_builddir)/coverage/coverage.cleaned4.info '*usr/include*' --output-file $(abs_top_builddir)/coverage/coverage.cleaned5.info --config-file .lcov-config
	genhtml --config-file .lcov-config --legend -t "$(PACKAGE_STRING)" -o $(abs_top_builddir)/coverage/html $(abs_top_builddir)/coverage/coverage.cleaned5.info
	@echo "Coverage Report at $(abs_top_builddir)/coverage/html"
Vincent Torri's avatar
Vincent Torri committed
471 472 473 474 475

endif

if EFL_ENABLE_TESTS

476
lcov-check:
Vincent Torri's avatar
Vincent Torri committed
477
if EFL_ENABLE_COVERAGE
478
	@$(MAKE) $(AM_MAKEFLAGS) lcov-reset
479
	@$(MAKE) $(AM_MAKEFLAGS) lcov-baseline
Vincent Torri's avatar
Vincent Torri committed
480
endif
481
	@$(MAKE) $(AM_MAKEFLAGS) check
Vincent Torri's avatar
Vincent Torri committed
482
if EFL_ENABLE_COVERAGE
483
	@$(MAKE) $(AM_MAKEFLAGS) lcov-report
Vincent Torri's avatar
Vincent Torri committed
484
endif
485 486 487

check-build:
	@$(MAKE) $(AM_MAKEFLAGS) -C src check-build
Vincent Torri's avatar
Vincent Torri committed
488
endif
489 490 491 492

# benchmark

benchmark:
493
	@$(MAKE) $(AM_MAKEFLAGS) -C src benchmark
494
	$(MKDIR_P) benchmark
Vincent Torri's avatar
Vincent Torri committed
495
	@cd benchmark && ../src/benchmarks/eo/eo_bench$(EXEEXT) `date +%F_%s`
496

497
# examples
498

499
examples:
500
	@$(MAKE) $(AM_MAKEFLAGS) -C src examples
501 502

install-examples:
503
	@$(MAKE) $(AM_MAKEFLAGS) -C src install-examples
504

505 506 507 508
pkgbuild::
	@echo "making arch packages"
	makepkg -f -p $(top_builddir)/pkgbuild/PKGBUILD

509 510 511 512
# cleaning

clean-local:
	rm -rf benchmark coverage
513 514 515 516 517 518 519 520 521 522 523 524 525 526

DISTCLEANFILES= \
./src/lib/emile/Makefile \
./src/lib/eo/Makefile \
./src/lib/eet/Makefile \
./src/lib/ecore/Makefile \
./src/lib/efl/Makefile \
./src/lib/eina/Makefile \
./src/lib/eio/Makefile \
./src/lib/elementary/Makefile \
./src/lib/ector/Makefile \
./src/lib/evil/Makefile \
./src/lib/edje/Makefile \
./src/lib/efl/Efl_Config.h \
527
./src/lib/eina/eina_config.h