cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7f4ea1a79c63615bb14051db16e6fe5d90c9bd10

commit 7f4ea1a79c63615bb14051db16e6fe5d90c9bd10
Author: Cedric Bail <ced...@osg.samsung.com>
Date:   Thu Mar 3 15:02:03 2016 -0800

    eina: split Makefile with files/headers in preparation for additional per 
sub directory compilation
---
 src/Makefile_Eina.am          | 190 ++----------------------------------------
 src/lib/eina/Makefile_File.am | 187 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 194 insertions(+), 183 deletions(-)

diff --git a/src/Makefile_Eina.am b/src/Makefile_Eina.am
index 71d0330..31162e5 100644
--- a/src/Makefile_Eina.am
+++ b/src/Makefile_Eina.am
@@ -1,6 +1,7 @@
-
 ### Library
 
+include lib/eina/Makefile_File.am
+
 lib_LTLIBRARIES += lib/eina/libeina.la
 
 installed_einamainheadersdir = $(includedir)/eina-@VMAJ@
@@ -8,179 +9,13 @@ dist_installed_einamainheaders_DATA = \
 lib/eina/Eina.h \
 lib/eina/eina_config.h
 
-installed_einaheadersdir = $(includedir)/eina-@VMAJ@/eina
-dist_installed_einaheaders_DATA = \
-lib/eina/eina_safety_checks.h \
-lib/eina/eina_error.h \
-lib/eina/eina_log.h \
-lib/eina/eina_inline_log.x \
-lib/eina/eina_fp.h \
-lib/eina/eina_inline_f32p32.x \
-lib/eina/eina_inline_f16p16.x \
-lib/eina/eina_inline_f8p24.x \
-lib/eina/eina_inline_fp.x \
-lib/eina/eina_hash.h \
-lib/eina/eina_inline_hash.x \
-lib/eina/eina_lalloc.h \
-lib/eina/eina_clist.h \
-lib/eina/eina_inline_clist.x \
-lib/eina/eina_inarray.h \
-lib/eina/eina_inlist.h \
-lib/eina/eina_inline_inlist.x \
-lib/eina/eina_list.h \
-lib/eina/eina_file.h \
-lib/eina/eina_inline_file.x \
-lib/eina/eina_mempool.h \
-lib/eina/eina_module.h \
-lib/eina/eina_rectangle.h \
-lib/eina/eina_types.h \
-lib/eina/eina_array.h \
-lib/eina/eina_counter.h \
-lib/eina/eina_inline_array.x \
-lib/eina/eina_magic.h \
-lib/eina/eina_stringshare.h \
-lib/eina/eina_binshare.h \
-lib/eina/eina_binbuf.h \
-lib/eina/eina_ustringshare.h \
-lib/eina/eina_inline_stringshare.x \
-lib/eina/eina_inline_ustringshare.x \
-lib/eina/eina_inline_list.x \
-lib/eina/eina_accessor.h \
-lib/eina/eina_convert.h \
-lib/eina/eina_rbtree.h \
-lib/eina/eina_benchmark.h \
-lib/eina/eina_inline_rbtree.x \
-lib/eina/eina_inline_mempool.x \
-lib/eina/eina_inline_rectangle.x \
-lib/eina/eina_inline_trash.x \
-lib/eina/eina_thread.h \
-lib/eina/eina_trash.h \
-lib/eina/eina_iterator.h \
-lib/eina/eina_main.h \
-lib/eina/eina_cpu.h \
-lib/eina/eina_inline_cpu.x \
-lib/eina/eina_sched.h \
-lib/eina/eina_tiler.h \
-lib/eina/eina_hamster.h \
-lib/eina/eina_matrixsparse.h \
-lib/eina/eina_inline_tiler.x \
-lib/eina/eina_str.h \
-lib/eina/eina_inline_str.x \
-lib/eina/eina_strbuf.h \
-lib/eina/eina_ustrbuf.h \
-lib/eina/eina_unicode.h \
-lib/eina/eina_quadtree.h \
-lib/eina/eina_simple_xml_parser.h \
-lib/eina/eina_lock.h \
-lib/eina/eina_prefix.h \
-lib/eina/eina_refcount.h \
-lib/eina/eina_mmap.h \
-lib/eina/eina_xattr.h \
-lib/eina/eina_value.h \
-lib/eina/eina_inline_value.x \
-lib/eina/eina_value_util.h \
-lib/eina/eina_inline_value_util.x \
-lib/eina/eina_inline_lock_barrier.x \
-lib/eina/eina_inline_lock_posix.x \
-lib/eina/eina_tmpstr.h \
-lib/eina/eina_alloca.h \
-lib/eina/eina_cow.h \
-lib/eina/eina_inline_unicode.x \
-lib/eina/eina_thread_queue.h \
-lib/eina/eina_matrix.h \
-lib/eina/eina_quad.h \
-lib/eina/eina_crc.h \
-lib/eina/eina_inline_crc.x \
-lib/eina/eina_evlog.h \
-lib/eina/eina_util.h \
-lib/eina/eina_quaternion.h \
-lib/eina/eina_vector.h \
-lib/eina/eina_inline_vector.x \
-lib/eina/eina_bezier.h
-
-lib_eina_libeina_la_SOURCES = \
-lib/eina/eina_abi.c \
-lib/eina/eina_accessor.c \
-lib/eina/eina_array.c \
-lib/eina/eina_benchmark.c \
-lib/eina/eina_binbuf.c \
-lib/eina/eina_binshare.c \
-lib/eina/eina_convert.c \
-lib/eina/eina_counter.c \
-lib/eina/eina_cow.c \
-lib/eina/eina_cpu.c \
-lib/eina/eina_crc.c \
-lib/eina/eina_debug.c \
-lib/eina/eina_debug_bt.c \
-lib/eina/eina_debug_bt_file.c \
-lib/eina/eina_debug_chunk.c \
-lib/eina/eina_debug_monitor.c \
-lib/eina/eina_debug_proto.c \
-lib/eina/eina_debug_thread.c \
-lib/eina/eina_error.c \
-lib/eina/eina_evlog.c \
-lib/eina/eina_file_common.h \
-lib/eina/eina_file_common.c \
-lib/eina/eina_fp.c \
-lib/eina/eina_hamster.c \
-lib/eina/eina_hash.c \
-lib/eina/eina_inarray.c \
-lib/eina/eina_inlist.c \
-lib/eina/eina_iterator.c \
-lib/eina/eina_lalloc.c \
-lib/eina/eina_list.c \
-lib/eina/eina_log.c \
-lib/eina/eina_magic.c \
-lib/eina/eina_main.c \
-lib/eina/eina_matrix.c \
-lib/eina/eina_matrixsparse.c \
-lib/eina/eina_mempool.c \
-lib/eina/eina_mmap.c \
-lib/eina/eina_module.c \
-lib/eina/eina_prefix.c \
-lib/eina/eina_quad.c \
-lib/eina/eina_quadtree.c \
-lib/eina/eina_rbtree.c \
-lib/eina/eina_rectangle.c \
-lib/eina/eina_safety_checks.c \
-lib/eina/eina_sched.c \
-lib/eina/eina_share_common.c \
-lib/eina/eina_simple_xml_parser.c \
-lib/eina/eina_str.c \
-lib/eina/eina_strbuf.c \
-lib/eina/eina_strbuf_common.c \
-lib/eina/eina_stringshare.c \
-lib/eina/eina_thread.c \
-lib/eina/eina_thread_queue.c \
-lib/eina/eina_tiler.c \
-lib/eina/eina_tmpstr.c \
-lib/eina/eina_unicode.c \
-lib/eina/eina_ustrbuf.c \
-lib/eina/eina_ustringshare.c \
-lib/eina/eina_util.c \
-lib/eina/eina_value.c \
-lib/eina/eina_value_util.c \
-lib/eina/eina_xattr.c \
-lib/eina/eina_debug.h \
-lib/eina/eina_private.h \
-lib/eina/eina_share_common.h \
-lib/eina/eina_strbuf_common.h \
-lib/eina/eina_quaternion.c \
-lib/eina/eina_bezier.c
-
-if HAVE_WIN32
-lib_eina_libeina_la_SOURCES += lib/eina/eina_file_win32.c
-else
-lib_eina_libeina_la_SOURCES += lib/eina/eina_file.c
-endif
+lib_eina_libeina_la_SOURCES = $(EINA_S)
 
 EINA_MODULE_COMMON_CFLAGS = \
 @EINA_CFLAGS@ \
 @VALGRIND_CFLAGS@
 
-if EINA_STATIC_BUILD_CHAINED_POOL
-lib_eina_libeina_la_SOURCES += 
modules/eina/mp/chained_pool/eina_chained_mempool.c
-else
+if !EINA_STATIC_BUILD_CHAINED_POOL
 einampchainedpooldir = $(libdir)/eina/modules/mp/chained_pool/$(MODULE_ARCH)
 einampchainedpool_LTLIBRARIES = 
modules/eina/mp/chained_pool/chained_pool_module.la
 
@@ -197,9 +32,7 @@ 
modules_eina_mp_chained_pool_chained_pool_module_la_LIBTOOLFLAGS = --tag=disable
 modules_eina_mp_chained_pool_chained_pool_module_la_SOURCES = 
modules/eina/mp/chained_pool/eina_chained_mempool.c
 endif
 
-if EINA_STATIC_BUILD_ONE_BIG
-lib_eina_libeina_la_SOURCES += modules/eina/mp/one_big/eina_one_big.c
-else
+if !EINA_STATIC_BUILD_ONE_BIG
 einamponebigdir = $(libdir)/eina/modules/mp/one_big/$(MODULE_ARCH)
 einamponebig_LTLIBRARIES = modules/eina/mp/one_big/one_big_module.la
 
@@ -216,9 +49,7 @@ modules_eina_mp_one_big_one_big_module_la_LIBTOOLFLAGS = 
--tag=disable-static
 modules_eina_mp_one_big_one_big_module_la_SOURCES = 
modules/eina/mp/one_big/eina_one_big.c
 endif
 
-if EINA_STATIC_BUILD_PASS_THROUGH
-lib_eina_libeina_la_SOURCES += modules/eina/mp/pass_through/eina_pass_through.c
-else
+if !EINA_STATIC_BUILD_PASS_THROUGH
 einamppassthroughdir = $(libdir)/eina/modules/mp/pass_through/$(MODULE_ARCH)
 einamppassthrough_LTLIBRARIES = 
modules/eina/mp/pass_through/pass_through_module.la
 
@@ -235,14 +66,7 @@ 
modules_eina_mp_pass_through_pass_through_module_la_LIBTOOLFLAGS = --tag=disable
 modules_eina_mp_pass_through_pass_through_module_la_SOURCES = 
modules/eina/mp/pass_through/eina_pass_through.c
 endif
 
-lib_eina_libeina_la_CPPFLAGS = -I$(top_builddir)/src/lib/efl \
-@EINA_CFLAGS@ \
-@UNWIND_CFLAGS@ \
--DPACKAGE_BIN_DIR=\"$(bindir)\" \
--DPACKAGE_LIB_DIR=\"$(libdir)\" \
--DPACKAGE_DATA_DIR=\"$(datadir)/eina\" \
-@VALGRIND_CFLAGS@
-
+lib_eina_libeina_la_CPPFLAGS = $(EINA_FLAGS)
 lib_eina_libeina_la_LIBADD = @EINA_LIBS@ @UNWIND_LIBS@
 lib_eina_libeina_la_DEPENDENCIES = @EINA_INTERNAL_LIBS@
 lib_eina_libeina_la_LDFLAGS = @EFL_LTLIBRARY_FLAGS@
diff --git a/src/lib/eina/Makefile_File.am b/src/lib/eina/Makefile_File.am
new file mode 100644
index 0000000..b47bcbd
--- /dev/null
+++ b/src/lib/eina/Makefile_File.am
@@ -0,0 +1,187 @@
+EINA_FLAGS = -I$(top_builddir)/src/lib/efl \
+@EINA_CFLAGS@ \
+@UNWIND_CFLAGS@ \
+-DPACKAGE_BIN_DIR=\"$(bindir)\" \
+-DPACKAGE_LIB_DIR=\"$(libdir)\" \
+-DPACKAGE_DATA_DIR=\"$(datadir)/eina\" \
+@VALGRIND_CFLAGS@
+
+EINA_H = \
+$(top_srcdir)/src/lib/eina/eina_safety_checks.h \
+$(top_srcdir)/src/lib/eina/eina_error.h \
+$(top_srcdir)/src/lib/eina/eina_log.h \
+$(top_srcdir)/src/lib/eina/eina_inline_log.x \
+$(top_srcdir)/src/lib/eina/eina_fp.h \
+$(top_srcdir)/src/lib/eina/eina_inline_f32p32.x \
+$(top_srcdir)/src/lib/eina/eina_inline_f16p16.x \
+$(top_srcdir)/src/lib/eina/eina_inline_f8p24.x \
+$(top_srcdir)/src/lib/eina/eina_inline_fp.x \
+$(top_srcdir)/src/lib/eina/eina_hash.h \
+$(top_srcdir)/src/lib/eina/eina_inline_hash.x \
+$(top_srcdir)/src/lib/eina/eina_lalloc.h \
+$(top_srcdir)/src/lib/eina/eina_clist.h \
+$(top_srcdir)/src/lib/eina/eina_inline_clist.x \
+$(top_srcdir)/src/lib/eina/eina_inarray.h \
+$(top_srcdir)/src/lib/eina/eina_inlist.h \
+$(top_srcdir)/src/lib/eina/eina_inline_inlist.x \
+$(top_srcdir)/src/lib/eina/eina_list.h \
+$(top_srcdir)/src/lib/eina/eina_file.h \
+$(top_srcdir)/src/lib/eina/eina_inline_file.x \
+$(top_srcdir)/src/lib/eina/eina_mempool.h \
+$(top_srcdir)/src/lib/eina/eina_module.h \
+$(top_srcdir)/src/lib/eina/eina_rectangle.h \
+$(top_srcdir)/src/lib/eina/eina_types.h \
+$(top_srcdir)/src/lib/eina/eina_array.h \
+$(top_srcdir)/src/lib/eina/eina_counter.h \
+$(top_srcdir)/src/lib/eina/eina_inline_array.x \
+$(top_srcdir)/src/lib/eina/eina_magic.h \
+$(top_srcdir)/src/lib/eina/eina_stringshare.h \
+$(top_srcdir)/src/lib/eina/eina_binshare.h \
+$(top_srcdir)/src/lib/eina/eina_binbuf.h \
+$(top_srcdir)/src/lib/eina/eina_ustringshare.h \
+$(top_srcdir)/src/lib/eina/eina_inline_stringshare.x \
+$(top_srcdir)/src/lib/eina/eina_inline_ustringshare.x \
+$(top_srcdir)/src/lib/eina/eina_inline_list.x \
+$(top_srcdir)/src/lib/eina/eina_accessor.h \
+$(top_srcdir)/src/lib/eina/eina_convert.h \
+$(top_srcdir)/src/lib/eina/eina_rbtree.h \
+$(top_srcdir)/src/lib/eina/eina_benchmark.h \
+$(top_srcdir)/src/lib/eina/eina_inline_rbtree.x \
+$(top_srcdir)/src/lib/eina/eina_inline_mempool.x \
+$(top_srcdir)/src/lib/eina/eina_inline_rectangle.x \
+$(top_srcdir)/src/lib/eina/eina_inline_trash.x \
+$(top_srcdir)/src/lib/eina/eina_thread.h \
+$(top_srcdir)/src/lib/eina/eina_trash.h \
+$(top_srcdir)/src/lib/eina/eina_iterator.h \
+$(top_srcdir)/src/lib/eina/eina_main.h \
+$(top_srcdir)/src/lib/eina/eina_cpu.h \
+$(top_srcdir)/src/lib/eina/eina_inline_cpu.x \
+$(top_srcdir)/src/lib/eina/eina_sched.h \
+$(top_srcdir)/src/lib/eina/eina_tiler.h \
+$(top_srcdir)/src/lib/eina/eina_hamster.h \
+$(top_srcdir)/src/lib/eina/eina_matrixsparse.h \
+$(top_srcdir)/src/lib/eina/eina_inline_tiler.x \
+$(top_srcdir)/src/lib/eina/eina_str.h \
+$(top_srcdir)/src/lib/eina/eina_inline_str.x \
+$(top_srcdir)/src/lib/eina/eina_strbuf.h \
+$(top_srcdir)/src/lib/eina/eina_ustrbuf.h \
+$(top_srcdir)/src/lib/eina/eina_unicode.h \
+$(top_srcdir)/src/lib/eina/eina_quadtree.h \
+$(top_srcdir)/src/lib/eina/eina_simple_xml_parser.h \
+$(top_srcdir)/src/lib/eina/eina_lock.h \
+$(top_srcdir)/src/lib/eina/eina_prefix.h \
+$(top_srcdir)/src/lib/eina/eina_refcount.h \
+$(top_srcdir)/src/lib/eina/eina_mmap.h \
+$(top_srcdir)/src/lib/eina/eina_xattr.h \
+$(top_srcdir)/src/lib/eina/eina_value.h \
+$(top_srcdir)/src/lib/eina/eina_inline_value.x \
+$(top_srcdir)/src/lib/eina/eina_value_util.h \
+$(top_srcdir)/src/lib/eina/eina_inline_value_util.x \
+$(top_srcdir)/src/lib/eina/eina_inline_lock_barrier.x \
+$(top_srcdir)/src/lib/eina/eina_inline_lock_posix.x \
+$(top_srcdir)/src/lib/eina/eina_tmpstr.h \
+$(top_srcdir)/src/lib/eina/eina_alloca.h \
+$(top_srcdir)/src/lib/eina/eina_cow.h \
+$(top_srcdir)/src/lib/eina/eina_inline_unicode.x \
+$(top_srcdir)/src/lib/eina/eina_thread_queue.h \
+$(top_srcdir)/src/lib/eina/eina_matrix.h \
+$(top_srcdir)/src/lib/eina/eina_quad.h \
+$(top_srcdir)/src/lib/eina/eina_crc.h \
+$(top_srcdir)/src/lib/eina/eina_inline_crc.x \
+$(top_srcdir)/src/lib/eina/eina_evlog.h \
+$(top_srcdir)/src/lib/eina/eina_util.h \
+$(top_srcdir)/src/lib/eina/eina_quaternion.h \
+$(top_srcdir)/src/lib/eina/eina_vector.h \
+$(top_srcdir)/src/lib/eina/eina_inline_vector.x \
+$(top_srcdir)/src/lib/eina/eina_bezier.h
+
+EINA_S = \
+$(top_srcdir)/src/lib/eina/eina_abi.c \
+$(top_srcdir)/src/lib/eina/eina_accessor.c \
+$(top_srcdir)/src/lib/eina/eina_array.c \
+$(top_srcdir)/src/lib/eina/eina_benchmark.c \
+$(top_srcdir)/src/lib/eina/eina_binbuf.c \
+$(top_srcdir)/src/lib/eina/eina_binshare.c \
+$(top_srcdir)/src/lib/eina/eina_convert.c \
+$(top_srcdir)/src/lib/eina/eina_counter.c \
+$(top_srcdir)/src/lib/eina/eina_cow.c \
+$(top_srcdir)/src/lib/eina/eina_cpu.c \
+$(top_srcdir)/src/lib/eina/eina_crc.c \
+$(top_srcdir)/src/lib/eina/eina_debug.c \
+$(top_srcdir)/src/lib/eina/eina_debug_bt.c \
+$(top_srcdir)/src/lib/eina/eina_debug_bt_file.c \
+$(top_srcdir)/src/lib/eina/eina_debug_chunk.c \
+$(top_srcdir)/src/lib/eina/eina_debug_monitor.c \
+$(top_srcdir)/src/lib/eina/eina_debug_proto.c \
+$(top_srcdir)/src/lib/eina/eina_debug_thread.c \
+$(top_srcdir)/src/lib/eina/eina_error.c \
+$(top_srcdir)/src/lib/eina/eina_evlog.c \
+$(top_srcdir)/src/lib/eina/eina_file_common.h \
+$(top_srcdir)/src/lib/eina/eina_file_common.c \
+$(top_srcdir)/src/lib/eina/eina_fp.c \
+$(top_srcdir)/src/lib/eina/eina_hamster.c \
+$(top_srcdir)/src/lib/eina/eina_hash.c \
+$(top_srcdir)/src/lib/eina/eina_inarray.c \
+$(top_srcdir)/src/lib/eina/eina_inlist.c \
+$(top_srcdir)/src/lib/eina/eina_iterator.c \
+$(top_srcdir)/src/lib/eina/eina_lalloc.c \
+$(top_srcdir)/src/lib/eina/eina_list.c \
+$(top_srcdir)/src/lib/eina/eina_log.c \
+$(top_srcdir)/src/lib/eina/eina_magic.c \
+$(top_srcdir)/src/lib/eina/eina_main.c \
+$(top_srcdir)/src/lib/eina/eina_matrix.c \
+$(top_srcdir)/src/lib/eina/eina_matrixsparse.c \
+$(top_srcdir)/src/lib/eina/eina_mempool.c \
+$(top_srcdir)/src/lib/eina/eina_mmap.c \
+$(top_srcdir)/src/lib/eina/eina_module.c \
+$(top_srcdir)/src/lib/eina/eina_prefix.c \
+$(top_srcdir)/src/lib/eina/eina_quad.c \
+$(top_srcdir)/src/lib/eina/eina_quadtree.c \
+$(top_srcdir)/src/lib/eina/eina_rbtree.c \
+$(top_srcdir)/src/lib/eina/eina_rectangle.c \
+$(top_srcdir)/src/lib/eina/eina_safety_checks.c \
+$(top_srcdir)/src/lib/eina/eina_sched.c \
+$(top_srcdir)/src/lib/eina/eina_share_common.c \
+$(top_srcdir)/src/lib/eina/eina_simple_xml_parser.c \
+$(top_srcdir)/src/lib/eina/eina_str.c \
+$(top_srcdir)/src/lib/eina/eina_strbuf.c \
+$(top_srcdir)/src/lib/eina/eina_strbuf_common.c \
+$(top_srcdir)/src/lib/eina/eina_stringshare.c \
+$(top_srcdir)/src/lib/eina/eina_thread.c \
+$(top_srcdir)/src/lib/eina/eina_thread_queue.c \
+$(top_srcdir)/src/lib/eina/eina_tiler.c \
+$(top_srcdir)/src/lib/eina/eina_tmpstr.c \
+$(top_srcdir)/src/lib/eina/eina_unicode.c \
+$(top_srcdir)/src/lib/eina/eina_ustrbuf.c \
+$(top_srcdir)/src/lib/eina/eina_ustringshare.c \
+$(top_srcdir)/src/lib/eina/eina_util.c \
+$(top_srcdir)/src/lib/eina/eina_value.c \
+$(top_srcdir)/src/lib/eina/eina_value_util.c \
+$(top_srcdir)/src/lib/eina/eina_xattr.c \
+$(top_srcdir)/src/lib/eina/eina_debug.h \
+$(top_srcdir)/src/lib/eina/eina_private.h \
+$(top_srcdir)/src/lib/eina/eina_share_common.h \
+$(top_srcdir)/src/lib/eina/eina_strbuf_common.h \
+$(top_srcdir)/src/lib/eina/eina_quaternion.c \
+$(top_srcdir)/src/lib/eina/eina_bezier.c
+
+if HAVE_WIN32
+EINA_S += $(top_srcdir)/src/lib/eina/eina_file_win32.c
+else
+EINA_S += $(top_srcdir)/src/lib/eina/eina_file.c
+endif
+
+if EINA_STATIC_BUILD_CHAINED_POOL
+EINA_S += $(top_srcdir)/src/modules/eina/mp/chained_pool/eina_chained_mempool.c
+endif
+
+if EINA_STATIC_BUILD_ONE_BIG
+EINA_S += $(top_srcdir)/src/modules/eina/mp/one_big/eina_one_big.c
+endif
+
+if EINA_STATIC_BUILD_PASS_THROUGH
+EINA_S += $(top_srcdir)/src/modules/eina/mp/pass_through/eina_pass_through.c
+endif
+
+installed_einaheadersdir = $(includedir)/eina-@VMAJ@/eina
+dist_installed_einaheaders_DATA = $(EINA_H)

-- 


Reply via email to