Makefile revision 903
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User#
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# CDDL HEADER START
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User#
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox User# The contents of this file are subject to the terms of the
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# Common Development and Distribution License (the "License").
e9e4257668ff6c4e583b0c0db2508650b0b677b8Tinderbox User# You may not use this file except in compliance with the License.
c57668a2fbbe558c1bd21652813616f2f517c469Tinderbox User#
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1f4c645185bd8fc70048e0a69eee46193a284e5cTinderbox User# or http://www.opensolaris.org/os/licensing.
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# See the License for the specific language governing permissions
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# and limitations under the License.
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User#
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# If applicable, add the following below this CDDL HEADER, with the
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews#
a7c412f37cc73d0332887a746e81220cbf09dd00Mark Andrews# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews#
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinclude ../../make-rules/shared-macros.mk
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsPATH=$(dir $(CC)):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_NAME= subversion
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_VERSION= 1.7.5
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCOMPONENT_PROJECT_URL= http://subversion.apache.org/
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_HASH= \
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User sha256:cb102a437335a8921f00cef9bf730d84527713f1a5091e3e1eb2f16402f85dc1
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/subversion/$(COMPONENT_ARCHIVE)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinclude ../../make-rules/prep.mk
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox Userinclude ../../make-rules/configure.mk
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinclude ../../make-rules/ips.mk
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark AndrewsPATCH_LEVEL = 0
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox UserPYMODS = client core delta fs ra repos wc
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox User
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntPLMODS= Fs Core Wc Client Repos Ra Delta
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox UserJAVA_ROOT = $(JAVA_HOME)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# because we can't seem to get -norunpath to the java bindings build any
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox User# other way.
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox UserCXX += $(studio_NORUNPATH)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox UserCFLAGS += -features=extensions
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCFLAGS += -xustr=ascii_utf16_ushort -xcsi
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCXXFLAGS += -features=nestedaccess,tmplife,tmplrefstatic
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCXXFLAGS += -template=geninlinefuncs
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCXXFLAGS += -verbose=template
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCXXFLAGS += -xustr=ascii_utf16_ushort
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCXXFLAGS += $(CC_PIC)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCXXFLAGS += -mt -D_REENTRANT -DNDEBUG -DSOLARIS
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCFLAGS += `pkg-config --cflags neon`
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCFLAGS += $(CPP_LARGEFILES)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Let's write some post-configure hacks
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_POST_CONFIGURE_ACTION = \
16f6050f29b6b0422cee858e609f65e474e70ef2Tinderbox User ( $(CLONEY) $(SOURCE_DIR) $(@D) ; \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews cd $(SOURCE_DIR) ; \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater $(PYTHON) ./build/transform_sql.py ./subversion/libsvn_fs_fs/rep-cache-db.sql < ./subversion/libsvn_fs_fs/rep-cache-db.sql > $(BUILD_DIR_32)/subversion/libsvn_fs_fs/rep-cache-db.h 2>&1 )
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark AndrewsCOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_INSTALL_TARGETS = install install-lib \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews install-swig-pl install-swig-py \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews install-javahl install-javahl-lib \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews install-mods-shared \
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User install-bin install-docs
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_ENV += CC="$(CC)"
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_ENV += CXX="$(CXX)"
95637507c3d47481fbf0a8a8c750a57f944f677fMark AndrewsCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_ENV += CXXFLAGS="$(CXXFLAGS)"
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_ENV += PYTHON="$(PYTHON)"
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_ENV += PYMODS="$(PYMODS)"
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES)"
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_ENV += JAVA_ROOT="$(JAVA_ROOT)"
2ae159b376dac23870d8005563c585acf85a4b5aEvan HuntCONFIGURE_ENV += PERL="$(PERL)"
7cc0a5d21ef046bfd630c4769943d896a7d7472cTinderbox UserCONFIGURE_ENV += PLMODS="$(PLMODS)"
dedefc0bdbb4e6e39eeb98aa2fc6883efec2ddb0Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Let's make noise just because we have to override --libdir
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox UserCONFIGURE_OPTIONS = --prefix=$(CONFIGURE_PREFIX)
27739dd25026283c24645c8a1044b95ef9eb5ac6Tinderbox UserCONFIGURE_OPTIONS += --mandir=$(CONFIGURE_MANDIR)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox UserCONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS))
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --libdir=$(CONFIGURE_PREFIX)/lib/svn
7a6494cfb6cc7d3f67af07359561e05e6bb8c0edTinderbox UserCONFIGURE_OPTIONS += --localstatedir=/var
0e573cdd111e060e5f6c18249b5ccacbe8abe278Tinderbox UserCONFIGURE_OPTIONS += --enable-shared
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --disable-static
18920d790825d96ca3943aa2dcb6eb80dc611c5fTinderbox UserCONFIGURE_OPTIONS += --disable-libtool-lock
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --disable-neon-version-check
7a6494cfb6cc7d3f67af07359561e05e6bb8c0edTinderbox UserCONFIGURE_OPTIONS += --disable-experimental-libtool
77932ac533c711eca5cd86de4e7eca8d91102b43Tinderbox UserCONFIGURE_OPTIONS += --with-apxs=/usr/apache2/2.2/bin/apxs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCONFIGURE_OPTIONS += --with-ssl
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCONFIGURE_OPTIONS += --with-zlib=$(CONFIGURE_PREFIX)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas GustafssonCONFIGURE_OPTIONS += --with-jdk=$(JAVA_ROOT)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCONFIGURE_OPTIONS += --with-apr=/usr/apr/1.3
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --with-apr-util=/usr/apr-util/1.3
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCONFIGURE_OPTIONS += --enable-nls
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --disable-mod-activation
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCONFIGURE_OPTIONS += --enable-javahl
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark AndrewsCONFIGURE_OPTIONS += --with-swig
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --with-neon=$(CONFIGURE_PREFIX)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# common targets - we only build 32-bit subversion
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox Userbuild: $(BUILD_32)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox Userinstall: $(INSTALL_32)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox Usertest: $(TEST_32)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox Userinclude ../../make-rules/depend.mk
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User