2 MAINTAINERCLEANFILES = Makefile.in
7 -I$(top_srcdir)/src/bin \
8 -I$(top_srcdir)/src/lib \
9 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
10 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
11 -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
20 lib_LTLIBRARIES = libedje.la
22 includes_HEADERS = Edje.h Edje_Edit.h
23 includesdir = $(includedir)/edje-@VMAJ@
39 edje_lua_script_only.c \
42 edje_message_queue.c \
50 edje_textblock_styles.c \
55 nodist_libedje_la_SOURCES = edje_amalgamation.c
57 edje_amalgamation.c: $(base_sources) Makefile
58 -rm -f edje_amalgamation.c
60 @echo "#ifdef HAVE_CONFIG_H" >> edje_amalgamation.c
61 @echo "# include \"config.h\"" >> edje_amalgamation.c
62 @echo "#endif" >> edje_amalgamation.c
64 @echo "#ifndef _WIN32" >> edje_amalgamation.c
65 @echo "#define _GNU_SOURCE" >> edje_amalgamation.c
66 @echo "#endif" >> edje_amalgamation.c
68 @echo "#ifdef HAVE_ALLOCA_H" >> edje_amalgamation.c
69 @echo "# include <alloca.h>" >> edje_amalgamation.c
70 @echo "#elif defined __GNUC__" >> edje_amalgamation.c
71 @echo "# define alloca __builtin_alloca" >> edje_amalgamation.c
72 @echo "#elif defined _AIX" >> edje_amalgamation.c
73 @echo "# define alloca __alloca" >> edje_amalgamation.c
74 @echo "#elif defined _MSC_VER" >> edje_amalgamation.c
75 @echo "# include <malloc.h>" >> edje_amalgamation.c
76 @echo "# define alloca _alloca" >> edje_amalgamation.c
77 @echo "#else" >> edje_amalgamation.c
78 @echo "# include <stddef.h>" >> edje_amalgamation.c
79 @echo "# ifdef __cplusplus" >> edje_amalgamation.c
80 @echo "#extern \"C\"" >> edje_amalgamation.c
81 @echo "# endif" >> edje_amalgamation.c
82 @echo "#void *alloca (size_t);" >> edje_amalgamation.c
83 @echo "#endif" >> edje_amalgamation.c
85 @echo "#include <string.h>" >> edje_amalgamation.c
86 @echo "#include <math.h>" >> edje_amalgamation.c
87 @echo "#include <time.h>" >> edje_amalgamation.c
88 @echo "#include <limits.h>" >> edje_amalgamation.c
89 @echo "#include <errno.h>" >> edje_amalgamation.c
90 @echo "#include <sys/stat.h>" >> edje_amalgamation.c
91 @echo "#include <fcntl.h>" >> edje_amalgamation.c
93 @echo "#ifndef _MSC_VER" >> edje_amalgamation.c
94 @echo "# include <unistd.h>" >> edje_amalgamation.c
95 @echo "#endif" >> edje_amalgamation.c
97 @echo "#ifdef HAVE_LOCALE_H" >> edje_amalgamation.c
98 @echo "# include <locale.h>" >> edje_amalgamation.c
99 @echo "#endif" >> edje_amalgamation.c
101 @echo "#include <lua.h>" >> edje_amalgamation.c
102 @echo "#include <lauxlib.h>" >> edje_amalgamation.c
104 @echo "#ifdef HAVE_EVIL" >> edje_amalgamation.c
105 @echo "# include <Evil.h>" >> edje_amalgamation.c
106 @echo "#endif" >> edje_amalgamation.c
108 @echo "#include <Eina.h>" >> edje_amalgamation.c
109 @echo "#include <Edje.h>" >> edje_amalgamation.c
110 @echo "#include <Evas.h>" >> edje_amalgamation.c
111 @echo "#include <Ecore.h>" >> edje_amalgamation.c
112 @echo "#include <Embryo.h>" >> edje_amalgamation.c
114 @echo "#ifdef HAVE_ECORE_IMF" >> edje_amalgamation.c
115 @echo "# include <Ecore_IMF.h>" >> edje_amalgamation.c
116 @echo "#endif" >> edje_amalgamation.c
118 @echo "#ifdef HAVE_EIO" >> edje_amalgamation.c
119 @echo "# include <Eio.h>" >> edje_amalgamation.c
120 @echo "#endif" >> edje_amalgamation.c
122 @echo "#include <edje_private.h>" >> edje_amalgamation.c
124 @for f in $(base_sources); do \
125 if [ `echo $$f | sed -e 's/^...\(.\).*/\1/'` != '/' ]; then \
126 file="$(srcdir)/$$f" ; \
130 echo "/* file: $$file */" >> edje_amalgamation.c; \
131 grep -v -e '^# *include \+.\(config\|\|Evil\|Eina\|Eet\|Evas\|Ecore\|Embryo\|Ecore_IMF\|Eio\|string\|math\|limits\|sys/stat\|errno\|time\|unistd\|locale\|lua\|lauxlib\|edje_private\)[.]h.*' $$file >> edje_amalgamation.c; \
133 @echo "edje_amalgamation.c generated"
136 libedje_la_SOURCES = $(base_sources)
139 libedje_la_LIBADD = @EDJE_LIBS@ @ECORE_IMF_LIBS@ @EIO_LIBS@ @EVIL_LIBS@ @REMIX_LIBS@ @SNDFILE_LIBS@ -lm
140 libedje_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -version-info @version_info@ @release_info@
142 EXTRA_DIST = edje_private.h edje_container.h edje_convert.h
145 @rm -rf *.gcno edje_amalgamation.c