Makefile revision 1273
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# CDDL HEADER START
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# The contents of this file are subject to the terms of the
080575042aba2197b425ebfd52061dea061a9aa1xy# Common Development and Distribution License (the "License").
080575042aba2197b425ebfd52061dea061a9aa1xy# You may not use this file except in compliance with the License.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing.
080575042aba2197b425ebfd52061dea061a9aa1xy# See the License for the specific language governing permissions
080575042aba2197b425ebfd52061dea061a9aa1xy# and limitations under the License.
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# When distributing Covered Code, include this CDDL HEADER in each
080575042aba2197b425ebfd52061dea061a9aa1xy# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
080575042aba2197b425ebfd52061dea061a9aa1xy# If applicable, add the following below this CDDL HEADER, with the
080575042aba2197b425ebfd52061dea061a9aa1xy# fields enclosed by brackets "[]" replaced with your own identifying
080575042aba2197b425ebfd52061dea061a9aa1xy# information: Portions Copyright [yyyy] [name of copyright owner]
080575042aba2197b425ebfd52061dea061a9aa1xy#
080575042aba2197b425ebfd52061dea061a9aa1xy# CDDL HEADER END
080575042aba2197b425ebfd52061dea061a9aa1xy#
d5c3073dbbd835e1e9b7dca0c6c770cf3cc20afachenlu chen - Sun Microsystems - Beijing China# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
f0f2c3a5cf65a61de34af42edac38b2a7bda3416Girish Moodalbail#
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/shared-macros.mk
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_NAME= apache2
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_VERSION= 2.2.23
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_PROJECT_URL= http://httpd.apache.org/
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_SRC_NAME= httpd
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_ARCHIVE_HASH= \
080575042aba2197b425ebfd52061dea061a9aa1xy sha256:227c85a5c57f2edae0c5c54c68ccc127f06f6e7cff5340efa00de04f463fa3a4
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/httpd/$(COMPONENT_ARCHIVE)
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_BUGDB= utility/apache
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_DEFAULT_DIRS=no
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/prep.mk
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/configure.mk
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/ips.mk
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyPATCH_LEVEL=0
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy# Some patches need configure script re-creation.
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_PREP_ACTION +=($(CP) mod_sed/* $(@D)/modules/filters);
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.c $(@D)/modules/aaa);
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.html $(@D)/docs/manual/mod);
080575042aba2197b425ebfd52061dea061a9aa1xyCOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyVARIANT_PREFORK = $(BUILD_DIR)/prefork
080575042aba2197b425ebfd52061dea061a9aa1xyVARIANT_WORKER = $(BUILD_DIR)/worker
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyVARIANTS = $(VARIANT_WORKER) $(VARIANT_PREFORK)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyBUILD_32 = $(VARIANTS:%=%/$(MACH32)/.built)
080575042aba2197b425ebfd52061dea061a9aa1xyBUILD_64 = $(VARIANTS:%=%/$(MACH64)/.built)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyINSTALL_32 = $(VARIANTS:%=%/$(MACH32)/.installed)
080575042aba2197b425ebfd52061dea061a9aa1xyINSTALL_64 = $(VARIANTS:%=%/$(MACH64)/.installed)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy$(VARIANT_PREFORK)/$(MACH64)/.configured: BITS=64
080575042aba2197b425ebfd52061dea061a9aa1xy$(VARIANT_WORKER)/$(MACH64)/.configured: BITS=64
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy$(VARIANT_PREFORK)/%/.configured: CONFIGURE_OPTIONS += --with-mpm=prefork
080575042aba2197b425ebfd52061dea061a9aa1xy$(VARIANT_WORKER)/%/.configured: CONFIGURE_OPTIONS += --with-mpm=worker
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xy# pipefail wouldn't allow APR-util version check
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_ENV += SHELLOPTS=
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_PREFIX = /usr/apache2/2.2
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-mods-shared=all
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-so
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-suexec
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --with-suexec-caller=webservd
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-proxy
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-proxy-connect
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-proxy-ftp
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-proxy-http
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-proxy-ajp
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-proxy-balancer
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-cache
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-file-cache
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-disk-cache
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-mem-cache
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-deflate
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-cgid
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-cgi
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-authnz-ldap
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-ldap
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-ssl
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += --enable-exception-hook
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS += LTFLAGS="--silent --tag=CC"
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS.32 += --enable-layout=Solaris-Apache2
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS.64 += --enable-layout=Solaris-Apache2-$(MACH64)
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS.32 += --with-apr=/usr/apr/1.3/bin/apr-1-config
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS.64 += --with-apr=/usr/apr/1.3/bin/$(MACH64)/apr-1-config
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS.32 += --with-apr-util=/usr/apr-util/1.3/bin/apu-1-config
080575042aba2197b425ebfd52061dea061a9aa1xyCONFIGURE_OPTIONS.64 += --with-apr-util=/usr/apr-util/1.3/bin/$(MACH64)/apu-1-config
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xybuild: $(BUILD_32_and_64)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyAP_CONFIG_LAYOUT_H=include/ap_config_layout.h
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinstall: $(INSTALL_32_and_64)
080575042aba2197b425ebfd52061dea061a9aa1xy # Some files installed in proto area need to be fixed.
080575042aba2197b425ebfd52061dea061a9aa1xy $(KSH93) Solaris/customization.sh $(PROTO_DIR) $(MACH64)
080575042aba2197b425ebfd52061dea061a9aa1xy # Common header files for 32 and 64 bit variants are needed.
080575042aba2197b425ebfd52061dea061a9aa1xy /usr/bin/diff -D __$(MACH64) \
080575042aba2197b425ebfd52061dea061a9aa1xy $(VARIANT_PREFORK)/$(MACH32)/$(AP_CONFIG_LAYOUT_H) \
080575042aba2197b425ebfd52061dea061a9aa1xy $(VARIANT_PREFORK)/$(MACH64)/$(AP_CONFIG_LAYOUT_H) \
080575042aba2197b425ebfd52061dea061a9aa1xy > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(AP_CONFIG_LAYOUT_H) ; true
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xytest: $(NO_TESTS)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
080575042aba2197b425ebfd52061dea061a9aa1xy
080575042aba2197b425ebfd52061dea061a9aa1xyinclude ../../make-rules/depend.mk
080575042aba2197b425ebfd52061dea061a9aa1xy