Makefile revision 1273
59602f2a7c4e4809941583bed3e94cd26e628f1aTinderbox User# CDDL HEADER START
5affecff6e148a8e124d03f5dbac0da11e30dcc5Tinderbox User# The contents of this file are subject to the terms of the
19558a04decde0e7261d489d92d04ad88104217bTinderbox User# Common Development and Distribution License (the "License").
827f8cccb5280f4da66c46186e792d1cb9d73503Mark Andrews# You may not use this file except in compliance with the License.
c57668a2fbbe558c1bd21652813616f2f517c469Tinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f4ee48be3994797a8332b86c101db4d7b54799ceTinderbox User# See the License for the specific language governing permissions
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# and limitations under the License.
e5a6871cd0635ecdb2bf792316a2d8c53206f4b2Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# If applicable, add the following below this CDDL HEADER, with the
03ebc228ee3725738b067b6bd7082a9a731822a1Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
3759f10fc543747668b1ca4b4671f35b0dea8445Francis Dupont# information: Portions Copyright [yyyy] [name of copyright owner]
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
d5637bdbb931ff79fced3d4858d83212ea58ed15Tinderbox User# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt sha256:562b5f7251f356a221641262e7ba7a4e1d966086df2fb46477ec9e2c748f9f28
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox UserCONFIGURE_OPTIONS += --enable-nonportable-atomics
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += LTFLAGS="--tag=CC --silent"
3759f10fc543747668b1ca4b4671f35b0dea8445Francis DupontCONFIGURE_OPTIONS.32 += --enable-layout=OpenSolaris
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS.64 += --enable-layout=OpenSolaris-$(MACH64)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS.32 += --with-installbuilddir=$(CONFIGURE_PREFIX)/build
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox UserCONFIGURE_OPTIONS.64 += --with-installbuilddir=$(CONFIGURE_PREFIX)/build/$(MACH64)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# We need this to keep doxygen happy (for include/ and docs/ contents).
3759f10fc543747668b1ca4b4671f35b0dea8445Francis DupontCOMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D));
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Some patches need configure script recreation.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCOMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D); autoconf);
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt# 32 and 64 bits apr.h headers need to be merged to the final one.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews$(BUILD_DIR_64)/.installed: COMPONENT_POST_INSTALL_ACTION = \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater /usr/bin/diff -D __$(MACH64) $(BUILD_DIR_32)/$(APRH) \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(BUILD_DIR_64)/$(APRH) > $(PROTO_DIR)/$(CONFIGURE_PREFIX)/$(APRH); true
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt# Documentation is generated in and directly packaged from 32 bit build
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# directory using doxygen.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterPKG_PROTO_DIRS += $(BUILD_DIR_32)/docs/dox/html