components/apache2-modules/modules.mk
author Petr Sumbera <petr.sumbera@oracle.com>
Tue, 21 Oct 2014 02:05:30 -0700
changeset 2163 a23eea6de4af
child 3817 30b42c38bbc4
permissions -rw-r--r--
19780770 Apache 2.4 needs some third party modules too 19780705 mod_jk upgrade to version 1.2.40 15812307 SUNBT7194162 upgrade mod_wsgi to version 4.3.0 19617430 mod_wsgi doesn't build if apache 2.4 is installed

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
#

APACHE_22_USR_PREFIX=/usr/apache2/2.2
APACHE_24_USR_PREFIX=/usr/apache2/2.4

VARIANT_APACHE_22 =	$(BUILD_DIR)/apache22
VARIANT_APACHE_24 =	$(BUILD_DIR)/apache24

VARIANTS_32 = $(VARIANT_APACHE_22)
VARIANTS_64 = $(VARIANT_APACHE_22) $(VARIANT_APACHE_24)

BUILD_32 = $(VARIANTS_32:%=%/$(MACH32)/.built)
BUILD_64 = $(VARIANTS_64:%=%/$(MACH64)/.built)

INSTALL_32 = $(VARIANTS_32:%=%/$(MACH32)/.installed)
INSTALL_64 = $(VARIANTS_64:%=%/$(MACH64)/.installed)

TEST_32 = $(VARIANTS_32:%=%/$(MACH32)/.tested)
TEST_64 = $(VARIANTS_64:%=%/$(MACH64)/.tested)

$(VARIANT_APACHE_22)/$(MACH64)/.configured: BITS=64
$(VARIANT_APACHE_24)/$(MACH64)/.configured: BITS=64

$(VARIANT_APACHE_22)/$(MACH64)/.built: BITS=64
$(VARIANT_APACHE_24)/$(MACH64)/.built: BITS=64

$(VARIANT_APACHE_22)/$(MACH64)/.tested: BITS=64
$(VARIANT_APACHE_24)/$(MACH64)/.tested: BITS=64

$(VARIANT_APACHE_22)/%/.configured: APACHE_USR_PREFIX=$(APACHE_22_USR_PREFIX)
$(VARIANT_APACHE_24)/%/.configured: APACHE_USR_PREFIX=$(APACHE_24_USR_PREFIX)

$(VARIANT_APACHE_22)/%/.built: APACHE_USR_PREFIX=$(APACHE_22_USR_PREFIX)
$(VARIANT_APACHE_24)/%/.built: APACHE_USR_PREFIX=$(APACHE_24_USR_PREFIX)

$(VARIANT_APACHE_22)/%/.installed: APACHE_USR_PREFIX=$(APACHE_22_USR_PREFIX)
$(VARIANT_APACHE_24)/%/.installed: APACHE_USR_PREFIX=$(APACHE_24_USR_PREFIX)

$(BUILD_DIR)/apache22/$(MACH32)/.configured: APXS=$(APACHE_USR_PREFIX)/bin/apxs
$(BUILD_DIR)/apache22/$(MACH64)/.configured: APXS=$(APACHE_USR_PREFIX)/bin/$(MACH64)/apxs
$(BUILD_DIR)/apache24/$(MACH64)/.configured: APXS=$(APACHE_USR_PREFIX)/bin/apxs

$(BUILD_DIR)/apache22/$(MACH32)/.built: APXS=$(APACHE_USR_PREFIX)/bin/apxs
$(BUILD_DIR)/apache22/$(MACH64)/.built: APXS=$(APACHE_USR_PREFIX)/bin/$(MACH64)/apxs
$(BUILD_DIR)/apache24/$(MACH64)/.built: APXS=$(APACHE_USR_PREFIX)/bin/apxs

DEFAULT_COMPILER?=yes

ifeq   ($(strip $(DEFAULT_COMPILER)),no)
CC=
CXX=
endif

PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
ifeq   ($(strip $(PARFAIT_BUILD)),yes)
PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin
endif