summaryrefslogtreecommitdiff
path: root/m4/efl.m4
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-31 00:46:14 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2012-12-31 00:46:14 +0000
commitdf1b3d30c4ca130fcecce67b2c0fcbbbcfa5a29c (patch)
treee26086071ac285910d3e162c39819f3a2c3affea /m4/efl.m4
parent51f8fe26fc4774e69be3547d49ae902c287c8b61 (diff)
efl: refactor CFLAGS, LIBS, LIBADD and LDADD usage.
- remove EFL_LIBS and EFL_CFLAGS, use per-lib values that inherit from EFL (general) - add NAME_LDFLAGS and EFL_LDFLAGS for linker flags. - LDADD (binaries) now use NAME_LDFLAGS instead of NAME_LIBS, as they link to libname.la and that will pull in the libtool dependencies SVN revision: 81915
Diffstat (limited to 'm4/efl.m4')
-rw-r--r--m4/efl.m49
1 files changed, 7 insertions, 2 deletions
diff --git a/m4/efl.m4 b/m4/efl.m4
index 426e3fcf36..64a5ec7602 100644
--- a/m4/efl.m4
+++ b/m4/efl.m4
@@ -138,12 +138,14 @@ requirements_pc_[]m4_defn([DOWN])=""
138requirements_pc_deps_[]m4_defn([DOWN])="" 138requirements_pc_deps_[]m4_defn([DOWN])=""
139 139
140m4_defn([UP])_LIBS="${m4_defn([UP])_LIBS}" 140m4_defn([UP])_LIBS="${m4_defn([UP])_LIBS}"
141m4_defn([UP])_LDFLAGS="${m4_defn([UP])_LDFLAGS}"
141m4_defn([UP])_CFLAGS="${m4_defn([UP])_CFLAGS}" 142m4_defn([UP])_CFLAGS="${m4_defn([UP])_CFLAGS}"
142 143
143AC_SUBST([requirements_libs_]m4_defn([DOWN])) 144AC_SUBST([requirements_libs_]m4_defn([DOWN]))
144AC_SUBST([requirements_cflags_]m4_defn([DOWN])) 145AC_SUBST([requirements_cflags_]m4_defn([DOWN]))
145AC_SUBST([requirements_pc_]m4_defn([DOWN])) 146AC_SUBST([requirements_pc_]m4_defn([DOWN]))
146AC_SUBST(m4_defn([UP])[_LIBS]) 147AC_SUBST(m4_defn([UP])[_LIBS])
148AC_SUBST(m4_defn([UP])[_LDFLAGS])
147AC_SUBST(m4_defn([UP])[_CFLAGS]) 149AC_SUBST(m4_defn([UP])[_CFLAGS])
148 150
149AC_MSG_NOTICE([Start $1 checks]) 151AC_MSG_NOTICE([Start $1 checks])
@@ -159,8 +161,11 @@ AC_DEFUN([EFL_LIB_END],
159m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl 161m4_pushdef([DOWN], m4_translit([$1], [-A-Z], [_a-z]))dnl
160m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl 162m4_pushdef([UP], m4_translit([$1], [-a-z], [_A-Z]))dnl
161 163
162m4_defn([UP])_LIBS="${m4_defn([UP])_LIBS} ${requirements_libs_[]m4_defn([DOWN])}" 164m4_defn([UP])_LDFLAGS="${m4_defn([UP])_LDFLAGS} ${EFL_LDFLAGS}"
163m4_defn([UP])_CFLAGS="${m4_defn([UP])_CFLAGS} ${requirements_cflags_[]m4_defn([DOWN])}" 165m4_defn([UP])_LIBS="${m4_defn([UP])_LIBS} ${m4_defn([UP])_LDFLAGS} ${EFL_LIBS} ${requirements_libs_[]m4_defn([DOWN])} ${requirements_libs_efl} "
166m4_defn([UP])_CFLAGS="${m4_defn([UP])_CFLAGS} ${EFL_CFLAGS} ${requirements_cflags_[]m4_defn([DOWN])} ${requirements_cflags_efl}"
167requirements_pc_[]m4_defn([DOWN])="${requirements_pc_[]m4_defn([DOWN])} ${requirements_pc_efl}"
168requirements_pc_deps_[]m4_defn([DOWN])="${requirements_pc_deps_[]m4_defn([DOWN])} ${requirements_pc_deps_efl}"
164 169
165AC_MSG_NOTICE([Finished $1 checks]) 170AC_MSG_NOTICE([Finished $1 checks])
166m4_popdef([UP]) 171m4_popdef([UP])