1 MAINTAINERCLEANFILES = Makefile.in
4 -I$(top_srcdir)/src/include \
5 -I$(top_builddir)/src/include \
6 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
7 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
8 -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
39 eina_safety_checks.c \
43 if EINA_STATIC_BUILD_CHAINED_POOL
44 base_sources += $(top_srcdir)/src/modules/mp/chained_pool/eina_chained_mempool.c
47 if EINA_STATIC_BUILD_EMEMOA_FIXED
48 base_sources += $(top_srcdir)/src/modules/mp/ememoa_fixed/eina_ememoa_fixed.c
51 if EINA_STATIC_BUILD_EMEMOA_UNKNOWN
52 base_sources += $(top_srcdir)/src/modules/mp/ememoa_unknown/eina_ememoa_unknown.c
55 if EINA_STATIC_BUILD_FIXED_BITMAP
56 base_sources += $(top_srcdir)/src/modules/mp/fixed_bitmap/eina_fixed_bitmap.c
59 if EINA_STATIC_BUILD_PASS_THROUGH
60 base_sources += $(top_srcdir)/src/modules/mp/pass_through/eina_pass_through.c
63 lib_LTLIBRARIES = libeina.la
66 nodist_libeina_la_SOURCES = eina_amalgamation.c
68 eina_amalgamation.c: $(base_sources) Makefile
69 -rm -f eina_amalgamation.c
71 @echo "#ifdef HAVE_CONFIG_H" >> eina_amalgamation.c
72 @echo "#include \"config.h\"" >> eina_amalgamation.c
73 @echo "#endif" >> eina_amalgamation.c
75 @echo "#ifndef _WIN32" >> eina_amalgamation.c
76 @echo "#define _GNU_SOURCE" >> eina_amalgamation.c
77 @echo "#endif" >> eina_amalgamation.c
79 @echo "#ifdef HAVE_ALLOCA_H" >> eina_amalgamation.c
80 @echo "# include <alloca.h>" >> eina_amalgamation.c
81 @echo "#elif defined __GNUC__" >> eina_amalgamation.c
82 @echo "# define alloca __builtin_alloca" >> eina_amalgamation.c
83 @echo "#elif defined _AIX" >> eina_amalgamation.c
84 @echo "# define alloca __alloca" >> eina_amalgamation.c
85 @echo "#elif defined _MSC_VER" >> eina_amalgamation.c
86 @echo "# include <malloc.h>" >> eina_amalgamation.c
87 @echo "# define alloca _alloca" >> eina_amalgamation.c
88 @echo "#else" >> eina_amalgamation.c
89 @echo "# include <stddef.h>" >> eina_amalgamation.c
90 @echo "# ifdef __cplusplus" >> eina_amalgamation.c
91 @echo "#extern \"C\"" >> eina_amalgamation.c
92 @echo "# endif" >> eina_amalgamation.c
93 @echo "#void *alloca (size_t);" >> eina_amalgamation.c
94 @echo "#endif" >> eina_amalgamation.c
96 @echo "#include <stdio.h>" >> eina_amalgamation.c
97 @echo "#include <stdlib.h>" >> eina_amalgamation.c
98 @echo "#include <string.h>" >> eina_amalgamation.c
99 @echo "#include <dlfcn.h>" >> eina_amalgamation.c
100 @echo "#include <sys/types.h>" >> eina_amalgamation.c
101 @echo "#include <dirent.h>" >> eina_amalgamation.c
102 @echo "#include <assert.h>" >> eina_amalgamation.c
103 @echo "#include <errno.h>" >> eina_amalgamation.c
104 @echo "#include <fnmatch.h>" >> eina_amalgamation.c
106 @echo "#ifdef HAVE_EVIL" >> eina_amalgamation.c
107 @echo "# include <Evil.h>" >> eina_amalgamation.c
108 @echo "#endif" >> eina_amalgamation.c
110 @echo "#include \"eina_config.h\"" >> eina_amalgamation.c
111 @echo "#include \"eina_private.h\"" >> eina_amalgamation.c
112 @echo "#include \"eina_safety_checks.h\"" >> eina_amalgamation.c
113 @echo "#include \"Eina.h\"" >> eina_amalgamation.c
115 @for f in $(base_sources); do \
116 if [ `expr substr $$f 1 1` != '/' ]; then \
117 file="$(srcdir)/$$f" ; \
121 echo "/* file: $$file */" >> eina_amalgamation.c; \
122 grep -v -e '^# *include \+.\(config\|eina_[a-z_]\+\|Evil\|stdio\|stdlib\|string\|dlfcn\|dirent\|assert\|errno\|fnmatch\)[.]h.*' $$file >> eina_amalgamation.c; \
124 @echo "eina_amalgamation.c generated"
127 libeina_la_SOURCES = $(base_sources)
130 libeina_la_LIBADD = @EINA_LIBS@ @dlopen_libs@ @iconv_libs@
131 libeina_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@ @EFL_PTHREAD_LIBS@
132 libeina_la_CFLAGS = @EINA_CFLAGS@ @EFL_PTHREAD_CFLAGS@
135 rm -rf *.gcno eina_amalgamation.c