summaryrefslogtreecommitdiff
path: root/support/Makefile.in
diff options
context:
space:
mode:
authorKaspar Brand <kbrand@apache.org>2012-09-16 06:19:13 +0000
committerKaspar Brand <kbrand@apache.org>2012-09-16 06:19:13 +0000
commit089f0eb0ac7b1ef567ef5e3c0e2b953624dc0569 (patch)
tree009d5a6f579fb91810b5338d5bb6c215a9fc4902 /support/Makefile.in
parent5eb4537e2afdfdfb308efc7efd5de351bba45cba (diff)
downloadhttpd-089f0eb0ac7b1ef567ef5e3c0e2b953624dc0569.tar.gz
Spin off module-specific build options into separate build vars.
[second try, supersedes r1385214] Add MOD_CFLAGS, MOD_LDFLAGS variables etc. to the build commands, which are available to modules for customization on a per-subdir basis (by adding definitions to modules.mk). Reduces the risk of side-effects when a module needs to add CFLAGS, LDFLAGS etc. and these would be added to the global settings (ALL_CFLAGS etc.). Adapt build settings for mod_ssl, mod_socache_dc, mod_deflate, mod_xml2enc, mod_proxy_html, and mod_lua to use the new MOD_xxx build variables. Change PICFLAGS, SHLTCFLAGS and LTCFLAGS into config vars, instead of AC_SUBSTing them in build/rules.mk.in. For support/ab, introduce ab_CFLAGS and ab_LDFLAGS, and define explicit make targets where they appear at the proper position in the build commands. Consistently use "--with-xxx=PATH" in configure help strings which are used to specify a path to the installation directory of an auxiliary package. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1385216 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/Makefile.in')
-rw-r--r--support/Makefile.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/support/Makefile.in b/support/Makefile.in
index 043fd147fa..cef8f00368 100644
--- a/support/Makefile.in
+++ b/support/Makefile.in
@@ -57,9 +57,13 @@ htdbm: $(htdbm_OBJECTS)
$(LINK) $(htdbm_LTFLAGS) $(htdbm_OBJECTS) $(PROGRAM_LDADD) $(CRYPT_LIBS)
ab_OBJECTS = ab.lo
-ab_LDADD = $(PROGRAM_LDADD) $(SSL_LIBS) $(MATH_LIBS)
+ab_LDADD = $(PROGRAM_LDADD) $(MATH_LIBS)
+ab.lo: ab.c
+ $(LIBTOOL) --mode=compile $(CC) $(ab_CFLAGS) $(ALL_CFLAGS) $(ALL_CPPFLAGS) \
+ $(ALL_INCLUDES) $(PICFLAGS) $(LTCFLAGS) -c $< && touch $@
ab: $(ab_OBJECTS)
- $(LINK) $(ab_LTFLAGS) $(ab_OBJECTS) $(ab_LDADD)
+ $(LIBTOOL) --mode=link $(CC) $(ALL_CFLAGS) $(ab_LDFLAGS) $(PILDFLAGS) \
+ $(LT_LDFLAGS) $(ALL_LDFLAGS) -o $@ $(ab_LTFLAGS) $(ab_OBJECTS) $(ab_LDADD)
checkgid_OBJECTS = checkgid.lo
checkgid: $(checkgid_OBJECTS)