Makefile revision 4881
f743002678eb67b99bbc29fee116b65d9530fec0wrowe#
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
6736c640e65e06990ef33af71ee81fac4df4ff5fjim#
74e7a30182af5e68f14ccb8d57918b22b982db8bhumbedooh# The contents of this file are subject to the terms of the
74e7a30182af5e68f14ccb8d57918b22b982db8bhumbedooh# Common Development and Distribution License (the "License").
74e7a30182af5e68f14ccb8d57918b22b982db8bhumbedooh# You may not use this file except in compliance with the License.
10961a2f60207cb873d889bb28b1f0ef707a4311humbedooh#
10961a2f60207cb873d889bb28b1f0ef707a4311humbedooh# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10961a2f60207cb873d889bb28b1f0ef707a4311humbedooh# or http://www.opensolaris.org/os/licensing.
0d6de5fa49b60dc0bf81ea06afd079fa6c81df36sf# See the License for the specific language governing permissions
0d6de5fa49b60dc0bf81ea06afd079fa6c81df36sf# and limitations under the License.
0d6de5fa49b60dc0bf81ea06afd079fa6c81df36sf#
0448378b899e8df0c060360f17c0af692adf17bchumbedooh# When distributing Covered Code, include this CDDL HEADER in each
0448378b899e8df0c060360f17c0af692adf17bchumbedooh# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0448378b899e8df0c060360f17c0af692adf17bchumbedooh# If applicable, add the following below this CDDL HEADER, with the
55f964790f912f689867b385bd4ba164ab48c5cbsf# fields enclosed by brackets "[]" replaced with your own identifying
55f964790f912f689867b385bd4ba164ab48c5cbsf# information: Portions Copyright [yyyy] [name of copyright owner]
55f964790f912f689867b385bd4ba164ab48c5cbsf#
60a765cccbd3f3b5997b65b0034220c79f78369etrawick# CDDL HEADER END
60a765cccbd3f3b5997b65b0034220c79f78369etrawick#
60a765cccbd3f3b5997b65b0034220c79f78369etrawick# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedooh#
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedoohinclude ../../make-rules/shared-macros.mk
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedooh
e7ca863b04ee2a7aea7738cadbf51ce5e6c5245dhumbedoohCOMPONENT_NAME= apache2
91654e263480f0fdc2a03d782ff23f8dad07cf79humbedoohCOMPONENT_VERSION= 2.2.31
91814c869ca39ce45dfe147307d2a831cac6ecbehumbedoohCOMPONENT_PROJECT_URL= http://httpd.apache.org/
91654e263480f0fdc2a03d782ff23f8dad07cf79humbedoohCOMPONENT_SRC_NAME= httpd
1ec73fc12d4912ea9f4841c301458454589b32d9trawickCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
1ec73fc12d4912ea9f4841c301458454589b32d9trawickCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0fdcfd7a51bf3028b0be879c43c009c16c6d3f58trawickCOMPONENT_ARCHIVE_HASH= \
0fdcfd7a51bf3028b0be879c43c009c16c6d3f58trawick sha256:77afdd50ca2624f7d78832b1e92f34e4df293328ec59fd0e3f6cdedf67ac0c7f
1ec73fc12d4912ea9f4841c301458454589b32d9trawickCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/httpd/$(COMPONENT_ARCHIVE)
92332196b20253794e26ad9c51359d922eaf77d3trawickCOMPONENT_BUGDB= utility/apache
1ec73fc12d4912ea9f4841c301458454589b32d9trawick
9b778cf6122bc2ecd5704aaec99ee22f95764e62trawickTPNO_APACHE= 23672
12b987b969f03ef98d9175a53d849ab62f5684fecovenerTPNO_MOD_SED= 8897
12b987b969f03ef98d9175a53d849ab62f5684fecovener
e20c6ecbd465cd7dabb44acea6afafc7925f3a03sfCONFIGURE_DEFAULT_DIRS=no
e20c6ecbd465cd7dabb44acea6afafc7925f3a03sf
7025945569c7fbb49f2e64e0d26f861d22a54675jortoninclude $(WS_MAKE_RULES)/prep.mk
099c357f282d4aebf2b32264f7dce6ffc0497c37sfinclude $(WS_MAKE_RULES)/configure.mk
099c357f282d4aebf2b32264f7dce6ffc0497c37sfinclude $(WS_MAKE_RULES)/ips.mk
099c357f282d4aebf2b32264f7dce6ffc0497c37sf
099c357f282d4aebf2b32264f7dce6ffc0497c37sfASLR_MODE = $(ASLR_ENABLE)
50f8c80eb4d3989ebf3f1341aeef4d2d302af162sf
50f8c80eb4d3989ebf3f1341aeef4d2d302af162sfPATCH_LEVEL=0
4bb0a88a01fb7b494bb02a8b881b5eab0308bda6sf
50f8c80eb4d3989ebf3f1341aeef4d2d302af162sf# Some patches need configure script re-creation.
7b395e4e878c28a4784919cfd2e704ddd14a3390jortonCOMPONENT_PREP_ACTION +=($(CP) mod_sed/* $(@D)/modules/filters);
7b395e4e878c28a4784919cfd2e704ddd14a3390jortonCOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.c $(@D)/modules/aaa);
7b395e4e878c28a4784919cfd2e704ddd14a3390jortonCOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.html $(@D)/docs/manual/mod);
7b395e4e878c28a4784919cfd2e704ddd14a3390jortonCOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
536e48c08d674acac5d44929318f2ad928edc361jorton
536e48c08d674acac5d44929318f2ad928edc361jortonVARIANT_PREFORK = $(BUILD_DIR)/prefork
e81785da447b469da66f218b3f0244aab507958djortonVARIANT_WORKER = $(BUILD_DIR)/worker
e81785da447b469da66f218b3f0244aab507958djorton
3e4e54d4e3fc0123c63d57aa84ac7ad7a8c73ff8jortonVARIANTS = $(VARIANT_WORKER) $(VARIANT_PREFORK)
3e4e54d4e3fc0123c63d57aa84ac7ad7a8c73ff8jorton
3e4e54d4e3fc0123c63d57aa84ac7ad7a8c73ff8jortonBUILD_32 = $(VARIANTS:%=%/$(MACH32)/.built)
459eaf0826f995b73a0dc066f59ea10d2824e72dsfBUILD_64 = $(VARIANTS:%=%/$(MACH64)/.built)
459eaf0826f995b73a0dc066f59ea10d2824e72dsf
459eaf0826f995b73a0dc066f59ea10d2824e72dsfINSTALL_32 = $(VARIANTS:%=%/$(MACH32)/.installed)
459eaf0826f995b73a0dc066f59ea10d2824e72dsfINSTALL_64 = $(VARIANTS:%=%/$(MACH64)/.installed)
53e9b27aba029b18be814df40bcf6f0428771d1efuankg
53e9b27aba029b18be814df40bcf6f0428771d1efuankg$(VARIANT_PREFORK)/$(MACH64)/.configured: BITS=64
53e9b27aba029b18be814df40bcf6f0428771d1efuankg$(VARIANT_WORKER)/$(MACH64)/.configured: BITS=64
53e9b27aba029b18be814df40bcf6f0428771d1efuankg
53e9b27aba029b18be814df40bcf6f0428771d1efuankg$(VARIANT_PREFORK)/%/.configured: CONFIGURE_OPTIONS += --with-mpm=prefork
6bb524f1895f30265a1431afc460977d391cb36bsf$(VARIANT_WORKER)/%/.configured: CONFIGURE_OPTIONS += --with-mpm=worker
6bb524f1895f30265a1431afc460977d391cb36bsf
ca61ccd0c306c2c72df153688ba1b49f3eceed80sf# pipefail wouldn't allow APR-util version check
6bb524f1895f30265a1431afc460977d391cb36bsfCONFIGURE_ENV += SHELLOPTS=
b40bfdb714672f972887f9f1f1e154e00125bb68covener
b40bfdb714672f972887f9f1f1e154e00125bb68covenerCONFIGURE_PREFIX = /usr/apache2/2.2
b40bfdb714672f972887f9f1f1e154e00125bb68covener
b40bfdb714672f972887f9f1f1e154e00125bb68covenerCONFIGURE_OPTIONS += --enable-mods-shared=all
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCONFIGURE_OPTIONS += --enable-so
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCONFIGURE_OPTIONS += --enable-suexec
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCONFIGURE_OPTIONS += --with-suexec-caller=webservd
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCONFIGURE_OPTIONS += --enable-proxy
23f1535d6a60817d2846bac0aea230ea475d7dccminfrinCONFIGURE_OPTIONS += --enable-proxy-connect
23f1535d6a60817d2846bac0aea230ea475d7dccminfrinCONFIGURE_OPTIONS += --enable-proxy-ftp
23f1535d6a60817d2846bac0aea230ea475d7dccminfrinCONFIGURE_OPTIONS += --enable-proxy-http
23f1535d6a60817d2846bac0aea230ea475d7dccminfrinCONFIGURE_OPTIONS += --enable-proxy-ajp
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjungCONFIGURE_OPTIONS += --enable-proxy-balancer
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjungCONFIGURE_OPTIONS += --enable-cache
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjungCONFIGURE_OPTIONS += --enable-file-cache
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjungCONFIGURE_OPTIONS += --enable-disk-cache
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjungCONFIGURE_OPTIONS += --enable-mem-cache
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjungCONFIGURE_OPTIONS += --enable-deflate
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjungCONFIGURE_OPTIONS += --enable-cgid
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjungCONFIGURE_OPTIONS += --enable-cgi
6249dfa569d3b4f1f539665b979a80c6e335d93etrawickCONFIGURE_OPTIONS += --enable-authnz-ldap
6249dfa569d3b4f1f539665b979a80c6e335d93etrawickCONFIGURE_OPTIONS += --enable-ldap
0827cb14e550f6f65018431c22c2c913631c8f25kbrandCONFIGURE_OPTIONS += --enable-ssl
6249dfa569d3b4f1f539665b979a80c6e335d93etrawickCONFIGURE_OPTIONS += --enable-exception-hook
ae600ca541efc686b34f8b1f21bd3d0741d37674covenerCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
6249dfa569d3b4f1f539665b979a80c6e335d93etrawickCONFIGURE_OPTIONS += LTFLAGS="--silent --tag=CC"
cfa64348224b66dd1c9979b809406c4d15b1c137fieldingCONFIGURE_OPTIONS.32 += --enable-layout=Solaris-Apache2
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajimCONFIGURE_OPTIONS.64 += --enable-layout=Solaris-Apache2-$(MACH64)
cfa64348224b66dd1c9979b809406c4d15b1c137fieldingCONFIGURE_OPTIONS.32 += --with-apr=/usr/apr/1.5/bin/apr-1-config
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajimCONFIGURE_OPTIONS.64 += --with-apr=/usr/apr/1.5/bin/$(MACH64)/apr-1-config
cfa64348224b66dd1c9979b809406c4d15b1c137fieldingCONFIGURE_OPTIONS.32 += --with-apr-util=/usr/apr-util/1.5/bin/apu-1-config
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajimCONFIGURE_OPTIONS.64 += --with-apr-util=/usr/apr-util/1.5/bin/$(MACH64)/apu-1-config
cfa64348224b66dd1c9979b809406c4d15b1c137fieldingCONFIGURE_OPTIONS.32 += --with-pcre=/usr/bin/pcre-config
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajimCONFIGURE_OPTIONS.64 += --with-pcre=/usr/bin/$(MACH64)/pcre-config
cfa64348224b66dd1c9979b809406c4d15b1c137fielding
PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
ifeq ($(strip $(PARFAIT_BUILD)),yes)
PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
endif
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
AP_CONFIG_LAYOUT_H=include/ap_config_layout.h
install: $(INSTALL_32_and_64)
# Some files installed in proto area need to be fixed.
$(KSH93) Solaris/customization.sh $(PROTO_DIR) $(MACH64)
# Common header files for 32 and 64 bit variants are needed.
/usr/bin/diff -D __$(MACH64) \
$(VARIANT_PREFORK)/$(MACH32)/$(AP_CONFIG_LAYOUT_H) \
$(VARIANT_PREFORK)/$(MACH64)/$(AP_CONFIG_LAYOUT_H) \
> $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(AP_CONFIG_LAYOUT_H) ; true
test: $(NO_TESTS)
REQUIRED_PACKAGES += library/apr-15
REQUIRED_PACKAGES += library/apr-util-15
REQUIRED_PACKAGES += library/apr-util-15/apr-ldap
REQUIRED_PACKAGES += library/apr-util-15/dbd-mysql
REQUIRED_PACKAGES += library/apr-util-15/dbd-sqlite
REQUIRED_PACKAGES += library/openldap
REQUIRED_PACKAGES += library/pcre
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += library/zlib
REQUIRED_PACKAGES += runtime/perl-512
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/math
REQUIRED_PACKAGES += system/library/security/gss
REQUIRED_PACKAGES += system/network