dnl so we should include this here:
PKG_PROG_PKG_CONFIG
+PKG_CHECK_MODULES([EINA], [eina-0])
+
dnl add windows requirements
WIN32_CFLAGS=""
WIN32_LIBS=""
MAINTAINERCLEANFILES = Makefile.in
-AM_CFLAGS = @WIN32_CFLAGS@
+AM_CFLAGS = @WIN32_CFLAGS@ @EINA_CFLAGS@
lib_LTLIBRARIES = libecore.la
include_HEADERS = \
ecore_poll.c \
ecore_private.h
-libecore_la_LIBADD = @dlopen_libs@ @EVIL_LIBS@ @WIN32_LIBS@ -lm
+libecore_la_LIBADD = @dlopen_libs@ @EVIL_LIBS@ @EINA_LIBS@ @WIN32_LIBS@ -lm
libecore_la_LDFLAGS = @lt_no_undefined@ @lt_enable_auto_import@ -version-info @version_info@
-I$(top_builddir)/src/lib/ecore_con \
-I$(top_srcdir)/src/lib/ecore \
-I$(top_srcdir)/src/lib/ecore_con \
-@SSL_CFLAGS@ @CURL_CFLAGS@
+@SSL_CFLAGS@ @CURL_CFLAGS@ @EINA_CFLAGS@
if BUILD_ECORE_CON
libecore_con_la_LIBADD = \
$(top_builddir)/src/lib/ecore/libecore.la \
-@SSL_LIBS@ @CURL_LIBS@
+@SSL_LIBS@ @CURL_LIBS@ @EINA_LIBS@
libecore_con_la_LDFLAGS = -version-info @version_info@
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
-@EVAS_CFLAGS@ @EET_CFLAGS@
+@EVAS_CFLAGS@ @EET_CFLAGS@ @EINA_CFLAGS@
CLEANFILES = $(DB)
libecore_config_la_LIBADD = \
$(top_builddir)/src/lib/ecore/libecore.la \
$(top_builddir)/src/lib/ecore_ipc/libecore_ipc.la \
+@EINA_LIBS@ \
@EET_LIBS@ \
@EVAS_LIBS@
libecore_config_la_LIBADD = \
$(top_builddir)/src/lib/ecore/libecore.la \
@EET_LIBS@ \
+@EINA_LIBS@ \
@EVAS_LIBS@
libecore_config_la_DEPENDENCIES = \
-I$(top_builddir)/src/lib/ecore_desktop \
-I$(top_builddir)/src/lib/ecore \
-I$(top_srcdir)/src/lib/ecore_file \
--I$(top_srcdir)/src/lib/ecore_desktop
+-I$(top_srcdir)/src/lib/ecore_desktop \
+@EINA_CFLAGS@
if BUILD_ECORE_DESKTOP
libecore_desktop_la_LIBADD = \
$(top_builddir)/src/lib/ecore/libecore.la \
-$(top_builddir)/src/lib/ecore_file/libecore_file.la
+$(top_builddir)/src/lib/ecore_file/libecore_file.la \
+@EINA_LIBS@
libecore_desktop_la_LDFLAGS = -version-info @version_info@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/ecore \
-I$(top_builddir)/src/lib/ecore \
-@DIRECTFB_CFLAGS@
+@DIRECTFB_CFLAGS@ @EINA_CFLAGS@
if BUILD_ECORE_DIRECTFB
libecore_directfb_la_LIBADD = \
$(top_builddir)/src/lib/ecore/libecore.la \
-@DIRECTFB_LIBS@
+@DIRECTFB_LIBS@ \
+@EINA_LIBS@
libecore_directfb_la_LDFLAGS = -version-info @version_info@
$(ECORE_QUARTZ_INC) \
$(ECORE_WINCE_INC) \
@EVAS_CFLAGS@ \
-@XCB_CFLAGS@
+@XCB_CFLAGS@ \
+@EINA_CFLAGS@
AM_CFLAGS = @WIN32_CFLAGS@
@XCB_LIBS@ \
@SDL_LIBS@ \
@QUARTZ_LIBS@ \
-@EVIL_LIBS@
+@EVIL_LIBS@ \
+@EINA_LIBS@
libecore_evas_la_LDFLAGS = @lt_no_undefined@ @lt_enable_auto_import@ -version-info @version_info@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/ecore \
--I$(top_builddir)/src/lib/ecore
+-I$(top_builddir)/src/lib/ecore \
+@EINA_CFLAGS@
if BUILD_ECORE_FB
libecore_fb_la_LIBADD = \
@tslib_libs@ \
-$(top_builddir)/src/lib/ecore/libecore.la
+$(top_builddir)/src/lib/ecore/libecore.la \
+@EINA_LIBS@
libecore_fb_la_LDFLAGS = -version-info @version_info@
-I$(top_srcdir)/src/lib/ecore_con \
-I$(top_builddir)/src/lib/ecore \
@CURL_CFLAGS@ \
-@EVIL_CFLAGS@
+@EVIL_CFLAGS@ \
+@EINA_CFLAGS@
AM_CFLAGS = @WIN32_CFLAGS@
libecore_file_la_LIBADD = \
$(top_builddir)/src/lib/ecore/libecore.la \
$(lib_ecore_con_la) \
-@EVIL_LIBS@
+@EVIL_LIBS@ \
+@EINA_LIBS@
libecore_file_la_LDFLAGS = @lt_no_undefined@ @lt_enable_auto_import@ -version-info @version_info@
if BUILD_ECORE_IMF
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/ecore \
--DPACKAGE_LIB_DIR=\"$(libdir)\"
+-DPACKAGE_LIB_DIR=\"$(libdir)\" \
+@EINA_CFLAGS@
AM_CFLAGS = @WIN32_CFLAGS@
ecore_imf_private.h
libecore_imf_la_LIBADD = \
-$(top_builddir)/src/lib/ecore/libecore.la
+$(top_builddir)/src/lib/ecore/libecore.la \
+@EINA_LIBS@
libecore_imf_la_LDFLAGS = @lt_no_undefined@ @lt_enable_auto_import@ -version-info @version_info@
endif
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/ecore \
-I$(top_srcdir)/src/lib/ecore_imf \
-@EVAS_CFLAGS@
+@EVAS_CFLAGS@ \
+@EINA_CFLAGS@
lib_LTLIBRARIES = libecore_imf_evas.la
include_HEADERS = \
libecore_imf_evas_la_LIBADD = \
$(top_builddir)/src/lib/ecore_imf/libecore_imf.la \
-@EVAS_LIBS@
+@EVAS_LIBS@ \
+@EINA_LIBS@
libecore_imf_evas_la_DEPENDENCIES = \
$(top_builddir)/src/lib/ecore_imf/libecore_imf.la
-I$(top_srcdir)/src/lib/ecore \
-I$(top_srcdir)/src/lib/ecore_con \
-I$(top_srcdir)/src/lib/ecore_ipc \
-@SSL_CFLAGS@
+@SSL_CFLAGS@ @EINA_CFLAGS@
if BUILD_ECORE_IPC
libecore_ipc_la_LIBADD = \
$(top_builddir)/src/lib/ecore/libecore.la \
$(top_builddir)/src/lib/ecore_con/libecore_con.la \
-@SSL_LIBS@
+@SSL_LIBS@ \
+@EINA_LIBS@
libecore_ipc_la_LDFLAGS = -version-info @version_info@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/ecore \
--I$(top_builddir)/src/lib/ecore
+-I$(top_builddir)/src/lib/ecore \
+@EINA_CFLAGS@
AM_CFLAGS = @WIN32_CFLAGS@
ecore_job_private.h
libecore_job_la_LIBADD = \
-$(top_builddir)/src/lib/ecore/libecore.la
+$(top_builddir)/src/lib/ecore/libecore.la \
+@EINA_LIBS@
libecore_job_la_LDFLAGS = @lt_no_undefined@ @lt_enable_auto_import@ -version-info @version_info@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/ecore \
-I$(top_builddir)/src/lib/ecore \
-@QUARTZ_CFLAGS@
+@QUARTZ_CFLAGS@ @EINA_CFLAGS@
if BUILD_ECORE_QUARTZ
libecore_quartz_la_LIBADD = \
$(top_builddir)/src/lib/ecore/libecore.la \
-@QUARTZ_LIBS@
+@QUARTZ_LIBS@ \
+@EINA_LIBS@
libecore_quartz_la_LDFLAGS = @lt_no_undefined@ @lt_enable_auto_import@ -version-info @version_info@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/ecore \
-I$(top_builddir)/src/lib/ecore \
-@SDL_CFLAGS@
+@SDL_CFLAGS@ \
+@EINA_CFLAGS@
if BUILD_ECORE_SDL
libecore_sdl_la_LIBADD = \
$(top_builddir)/src/lib/ecore/libecore.la \
-@SDL_LIBS@
+@SDL_LIBS@ \
+@EINA_LIBS@
libecore_sdl_la_LDFLAGS = @lt_no_undefined@ @lt_enable_auto_import@ -version-info @version_info@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/ecore \
-I$(top_builddir)/src/lib/ecore \
-@iconv_cflags@
+@iconv_cflags@ \
+@EINA_CFLAGS@
if BUILD_ECORE_TXT
ecore_txt.c \
ecore_txt_private.h
-libecore_txt_la_LIBADD = @iconv_libs@
+libecore_txt_la_LIBADD = @iconv_libs@ \
+@EINA_LIBS@
libecore_txt_la_LDFLAGS = @lt_no_undefined@ @lt_enable_auto_import@ -version-info @version_info@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/ecore \
--I$(top_builddir)/src/lib/ecore
+-I$(top_builddir)/src/lib/ecore \
+@EINA_CFLAGS@
if BUILD_ECORE_WIN32
libecore_win32_la_LIBADD = \
@ecore_win32_libs@ \
@WIN32_LIBS@ \
-$(top_builddir)/src/lib/ecore/libecore.la
+$(top_builddir)/src/lib/ecore/libecore.la \
+@EINA_LIBS@
libecore_win32_la_LDFLAGS = @lt_no_undefined@ @lt_enable_auto_import@ -version-info @version_info@
AM_CPPFLAGS = \
-I$(top_srcdir)/src/lib/ecore \
--I$(top_builddir)/src/lib/ecore
+-I$(top_builddir)/src/lib/ecore \
+@EINA_CFLAGS@
AM_CFLAGS = @WIN32_CFLAGS@
libecore_wince_la_LIBADD = \
@WIN32_LIBS@ \
-$(top_builddir)/src/lib/ecore/libecore.la
+$(top_builddir)/src/lib/ecore/libecore.la \
+@EINA_LIBS@
libecore_wince_la_LDFLAGS = @lt_no_undefined@ @lt_enable_auto_import@ -version-info @version_info@
-I$(top_srcdir)/src/lib/ecore \
-I$(top_srcdir)/src/lib/ecore_txt \
-I$(top_builddir)/src/lib/ecore \
--I$(top_builddir)/src/lib/ecore_txt
+-I$(top_builddir)/src/lib/ecore_txt \
+@EINA_CFLAGS@
lib_LTLIBRARIES = libecore_x.la
libecore_x_la_SOURCES =
-libecore_x_la_LIBADD = $(DEP)
+libecore_x_la_LIBADD = $(DEP) \
+@EINA_LIBS@
libecore_x_la_LDFLAGS = -version-info @version_info@
-I$(top_srcdir)/src/lib/ecore_x \
-I$(top_builddir)/src/lib/ecore \
-I$(top_builddir)/src/lib/ecore_txt \
--I$(top_builddir)/src/lib/ecore_x
+-I$(top_builddir)/src/lib/ecore_x \
+@EINA_CFLAGS@
noinst_LTLIBRARIES = libecore_x_xcb.la
@XCB_XTEST_LIBS@ \
@XCB_LIBS@ \
$(top_builddir)/src/lib/ecore/libecore.la \
-$(top_builddir)/src/lib/ecore_txt/libecore_txt.la
+$(top_builddir)/src/lib/ecore_txt/libecore_txt.la \
+@EINA_LIBS@
libecore_x_xcb_la_LDFLAGS = -version-info @version_info@
-I$(top_srcdir)/src/lib/ecore_x \
-I$(top_builddir)/src/lib/ecore \
-I$(top_builddir)/src/lib/ecore_txt \
--I$(top_builddir)/src/lib/ecore_x
+-I$(top_builddir)/src/lib/ecore_x \
+@EINA_CFLAGS@
noinst_LTLIBRARIES = libecore_x_xlib.la
@XTEST_LIBS@ \
@x_libs@ \
$(top_builddir)/src/lib/ecore/libecore.la \
-$(top_builddir)/src/lib/ecore_txt/libecore_txt.la
+$(top_builddir)/src/lib/ecore_txt/libecore_txt.la \
+@EINA_LIBS@
libecore_x_xlib_la_LDFLAGS = -version-info @version_info@