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)\" \
37 eina_safety_checks.c \
42 eina_strbuf_common.c \
49 eina_simple_xml_parser.c \
54 base_sources += eina_file_win32.c
56 base_sources += eina_file.c
62 eina_strbuf_common.h \
63 eina_strbuf_template_c.x
67 if EINA_STATIC_BUILD_CHAINED_POOL
68 base_sources += $(top_srcdir)/src/modules/mp/chained_pool/eina_chained_mempool.c
71 if EINA_STATIC_BUILD_ONE_BIG
72 base_sources += $(top_srcdir)/src/modules/mp/one_big/eina_one_big.c
75 if EINA_STATIC_BUILD_EMEMOA_FIXED
76 base_sources += $(top_srcdir)/src/modules/mp/ememoa_fixed/eina_ememoa_fixed.c
79 if EINA_STATIC_BUILD_EMEMOA_UNKNOWN
80 base_sources += $(top_srcdir)/src/modules/mp/ememoa_unknown/eina_ememoa_unknown.c
83 if EINA_STATIC_BUILD_FIXED_BITMAP
84 base_sources += $(top_srcdir)/src/modules/mp/fixed_bitmap/eina_fixed_bitmap.c
87 if EINA_STATIC_BUILD_PASS_THROUGH
88 base_sources += $(top_srcdir)/src/modules/mp/pass_through/eina_pass_through.c
91 lib_LTLIBRARIES = libeina.la
94 nodist_libeina_la_SOURCES = eina_amalgamation.c
96 eina_amalgamation.c: $(base_sources) Makefile
97 -rm -f eina_amalgamation.c
99 @echo "#ifdef HAVE_CONFIG_H" >> eina_amalgamation.c
100 @echo "#include \"config.h\"" >> eina_amalgamation.c
101 @echo "#endif" >> eina_amalgamation.c
103 @echo "#ifdef HAVE_ALLOCA_H" >> eina_amalgamation.c
104 @echo "# include <alloca.h>" >> eina_amalgamation.c
105 @echo "#elif defined __GNUC__" >> eina_amalgamation.c
106 @echo "# define alloca __builtin_alloca" >> eina_amalgamation.c
107 @echo "#elif defined _AIX" >> eina_amalgamation.c
108 @echo "# define alloca __alloca" >> eina_amalgamation.c
109 @echo "#elif defined _MSC_VER" >> eina_amalgamation.c
110 @echo "# include <malloc.h>" >> eina_amalgamation.c
111 @echo "# define alloca _alloca" >> eina_amalgamation.c
112 @echo "#else" >> eina_amalgamation.c
113 @echo "# include <stddef.h>" >> eina_amalgamation.c
114 @echo "# ifdef __cplusplus" >> eina_amalgamation.c
115 @echo "#extern \"C\"" >> eina_amalgamation.c
116 @echo "# endif" >> eina_amalgamation.c
117 @echo "#void *alloca (size_t);" >> eina_amalgamation.c
118 @echo "#endif" >> eina_amalgamation.c
120 @echo "#include <stdio.h>" >> eina_amalgamation.c
121 @echo "#include <stdlib.h>" >> eina_amalgamation.c
122 @echo "#include <string.h>" >> eina_amalgamation.c
123 @echo "#include <dlfcn.h>" >> eina_amalgamation.c
124 @echo "#include <sys/types.h>" >> eina_amalgamation.c
125 @echo "#include <dirent.h>" >> eina_amalgamation.c
126 @echo "#include <assert.h>" >> eina_amalgamation.c
127 @echo "#include <errno.h>" >> eina_amalgamation.c
128 @echo "#include <fnmatch.h>" >> eina_amalgamation.c
130 @echo "#ifdef HAVE_EVIL" >> eina_amalgamation.c
131 @echo "# include <Evil.h>" >> eina_amalgamation.c
132 @echo "#endif" >> eina_amalgamation.c
134 @echo "#include \"eina_config.h\"" >> eina_amalgamation.c
135 @echo "#include \"eina_private.h\"" >> eina_amalgamation.c
136 @echo "#include \"eina_safety_checks.h\"" >> eina_amalgamation.c
137 @echo "#include \"Eina.h\"" >> eina_amalgamation.c
138 @echo "#include \"eina_strbuf_common.h\"" >> eina_amalgamation.c
139 @echo "#include \"eina_share_common.h\"" >> eina_amalgamation.c
141 @for f in $(base_sources); do \
142 if [ `echo $$f | sed -e 's/^...\(.\).*/\1/'` != '/' ]; then \
143 file="$(srcdir)/$$f" ; \
147 echo "/* file: $$file */" >> eina_amalgamation.c; \
148 grep -v -e '^# *include \+.\(config\|eina_[a-z_]\+\|Evil\|stdio\|stdlib\|string\|dlfcn\|dirent\|assert\|errno\|fnmatch\)[.]h.*' $$file >> eina_amalgamation.c; \
150 @echo "eina_amalgamation.c generated"
153 libeina_la_SOURCES = $(base_sources)
156 libeina_la_LIBADD = @EINA_LIBS@ @dlopen_libs@
157 libeina_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@ @EFL_PTHREAD_LIBS@
158 libeina_la_CFLAGS = @EINA_CFLAGS@ @EFL_PTHREAD_CFLAGS@
161 rm -rf *.gcno eina_amalgamation.c