136 lines
4.1 KiB
Makefile
136 lines
4.1 KiB
Makefile
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir)/src/include \
|
|
-I$(top_builddir)/src/include \
|
|
-DPACKAGE_BIN_DIR=\"$(bindir)\" \
|
|
-DPACKAGE_LIB_DIR=\"$(libdir)\" \
|
|
-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
|
|
@EINA_CPPFLAGS@ \
|
|
@EFL_EINA_BUILD@
|
|
|
|
base_sources = \
|
|
eina_error.c \
|
|
eina_log.c \
|
|
eina_hash.c \
|
|
eina_lalloc.c \
|
|
eina_inlist.c \
|
|
eina_file.c \
|
|
eina_mempool.c \
|
|
eina_list.c \
|
|
eina_matrixsparse.c \
|
|
eina_module.c \
|
|
eina_value.c \
|
|
eina_array.c \
|
|
eina_magic.c \
|
|
eina_main.c \
|
|
eina_counter.c \
|
|
eina_iterator.c \
|
|
eina_accessor.c \
|
|
eina_convert.c \
|
|
eina_fp.c \
|
|
eina_rbtree.c \
|
|
eina_benchmark.c \
|
|
eina_rectangle.c \
|
|
eina_stringshare.c \
|
|
eina_cpu.c \
|
|
eina_tiler.c \
|
|
eina_hamster.c \
|
|
eina_safety_checks.c \
|
|
eina_str.c \
|
|
eina_strbuf.c
|
|
|
|
if EINA_STATIC_BUILD_CHAINED_POOL
|
|
base_sources += $(top_srcdir)/src/modules/mp/chained_pool/eina_chained_mempool.c
|
|
endif
|
|
|
|
if EINA_STATIC_BUILD_EMEMOA_FIXED
|
|
base_sources += $(top_srcdir)/src/modules/mp/ememoa_fixed/eina_ememoa_fixed.c
|
|
endif
|
|
|
|
if EINA_STATIC_BUILD_EMEMOA_UNKNOWN
|
|
base_sources += $(top_srcdir)/src/modules/mp/ememoa_unknown/eina_ememoa_unknown.c
|
|
endif
|
|
|
|
if EINA_STATIC_BUILD_FIXED_BITMAP
|
|
base_sources += $(top_srcdir)/src/modules/mp/fixed_bitmap/eina_fixed_bitmap.c
|
|
endif
|
|
|
|
if EINA_STATIC_BUILD_PASS_THROUGH
|
|
base_sources += $(top_srcdir)/src/modules/mp/pass_through/eina_pass_through.c
|
|
endif
|
|
|
|
lib_LTLIBRARIES = libeina.la
|
|
|
|
if EINA_AMALGAMATION
|
|
nodist_libeina_la_SOURCES = eina_amalgamation.c
|
|
|
|
eina_amalgamation.c: $(base_sources) Makefile
|
|
-rm -f eina_amalgamation.c
|
|
|
|
@echo "#ifdef HAVE_CONFIG_H" >> eina_amalgamation.c
|
|
@echo "#include \"config.h\"" >> eina_amalgamation.c
|
|
@echo "#endif" >> eina_amalgamation.c
|
|
|
|
@echo "#ifndef _WIN32" >> eina_amalgamation.c
|
|
@echo "#define _GNU_SOURCE" >> eina_amalgamation.c
|
|
@echo "#endif" >> eina_amalgamation.c
|
|
|
|
@echo "#ifdef HAVE_ALLOCA_H" >> eina_amalgamation.c
|
|
@echo "# include <alloca.h>" >> eina_amalgamation.c
|
|
@echo "#elif defined __GNUC__" >> eina_amalgamation.c
|
|
@echo "# define alloca __builtin_alloca" >> eina_amalgamation.c
|
|
@echo "#elif defined _AIX" >> eina_amalgamation.c
|
|
@echo "# define alloca __alloca" >> eina_amalgamation.c
|
|
@echo "#elif defined _MSC_VER" >> eina_amalgamation.c
|
|
@echo "# include <malloc.h>" >> eina_amalgamation.c
|
|
@echo "# define alloca _alloca" >> eina_amalgamation.c
|
|
@echo "#else" >> eina_amalgamation.c
|
|
@echo "# include <stddef.h>" >> eina_amalgamation.c
|
|
@echo "# ifdef __cplusplus" >> eina_amalgamation.c
|
|
@echo "#extern \"C\"" >> eina_amalgamation.c
|
|
@echo "# endif" >> eina_amalgamation.c
|
|
@echo "#void *alloca (size_t);" >> eina_amalgamation.c
|
|
@echo "#endif" >> eina_amalgamation.c
|
|
|
|
@echo "#include <stdio.h>" >> eina_amalgamation.c
|
|
@echo "#include <stdlib.h>" >> eina_amalgamation.c
|
|
@echo "#include <string.h>" >> eina_amalgamation.c
|
|
@echo "#include <dlfcn.h>" >> eina_amalgamation.c
|
|
@echo "#include <sys/types.h>" >> eina_amalgamation.c
|
|
@echo "#include <dirent.h>" >> eina_amalgamation.c
|
|
@echo "#include <assert.h>" >> eina_amalgamation.c
|
|
@echo "#include <errno.h>" >> eina_amalgamation.c
|
|
@echo "#include <fnmatch.h>" >> eina_amalgamation.c
|
|
|
|
@echo "#ifdef HAVE_EVIL" >> eina_amalgamation.c
|
|
@echo "# include <Evil.h>" >> eina_amalgamation.c
|
|
@echo "#endif" >> eina_amalgamation.c
|
|
|
|
@echo "#include \"eina_config.h\"" >> eina_amalgamation.c
|
|
@echo "#include \"eina_private.h\"" >> eina_amalgamation.c
|
|
@echo "#include \"eina_safety_checks.h\"" >> eina_amalgamation.c
|
|
@echo "#include \"Eina.h\"" >> eina_amalgamation.c
|
|
|
|
@for f in $(base_sources); do \
|
|
if [ `expr substr $$f 1 1` != '/' ]; then \
|
|
file="$(srcdir)/$$f" ; \
|
|
else \
|
|
file="$$f" ; \
|
|
fi ; \
|
|
echo "/* file: $$file */" >> eina_amalgamation.c; \
|
|
grep -v -e '^# *include \+.\(config\|eina_[a-z_]\+\|Evil\|stdio\|stdlib\|string\|dlfcn\|dirent\|assert\|errno\|fnmatch\)[.]h.*' $$file >> eina_amalgamation.c; \
|
|
done
|
|
@echo "eina_amalgamation.c generated"
|
|
|
|
else
|
|
libeina_la_SOURCES = $(base_sources)
|
|
endif
|
|
|
|
libeina_la_LIBADD = @EINA_LIBS@ @dlopen_libs@
|
|
libeina_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@ @EFL_PTHREAD_LIBS@
|
|
libeina_la_CFLAGS = @EINA_CFLAGS@ @EFL_PTHREAD_CFLAGS@
|
|
|
|
clean-local:
|
|
rm -rf *.gcno eina_amalgamation.c
|