Makefile revision 200
80833bb9a1bf25dcf19e814438a4b311d2e1f4cffuankg# CDDL HEADER START
98c1e91bd5f30ced26e436026d163399f340d6f4sf# The contents of this file are subject to the terms of the
98c1e91bd5f30ced26e436026d163399f340d6f4sf# Common Development and Distribution License (the "License").
98c1e91bd5f30ced26e436026d163399f340d6f4sf# You may not use this file except in compliance with the License.
c12917da693bae4028a1d5a5e8224bceed8c739dsf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
eeb7898b9c087040d44550f8a6b1a257783c9f0ahumbedooh# See the License for the specific language governing permissions
eeb7898b9c087040d44550f8a6b1a257783c9f0ahumbedooh# and limitations under the License.
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf# When distributing Covered Code, include this CDDL HEADER in each
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf# If applicable, add the following below this CDDL HEADER, with the
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf# fields enclosed by brackets "[]" replaced with your own identifying
eafcc0ebf263d0ba69855b6e10958c4c1a2361bdsf# information: Portions Copyright [yyyy] [name of copyright owner]
d7ffd2da16d58b1a0de212e4d56f7aebb72bef26sf# CDDL HEADER END
4576c1a9ef54cd1e5555ee07d016a7f559f80338sf# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
e02ff627c1e63137247e20493f6ef44b3bb1a095sfCOMPONENT_ARCHIVE_HASH= sha1:e957da04252d4d7e0fff72fdcf72c715bfbaa393
1366443dc565c33e7b449ae428bbfc4c86f33935drhCOMPONENT_ARCHIVE_URL= http://subversion.tigris.org/downloads/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
bd3f5647b96d378d9c75c954e3f13582af32c643sf# We need to remove these environment files when
2a7beea91d46beb41f043a84eaad060047ee04aafabien# apache2, apr and apr-util move to Userland
fc1459657a1fde206a847f9028930725d715f8b4trawickSVN_LDFLAGS = -R/usr/lib/svn:$(APR_USR_PREFIX)/lib:$(APR_UTIL_USR_PREFIX)/lib \
f4ca9f6f002fece336168a16355434ca966f96a9trawickCXXFLAGS += -features=except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic
109e2a09790de3fb315d36d6232a14ab66c8eb0ahumbedooh# Let's write some post-configure hacks
10961a2f60207cb873d889bb28b1f0ef707a4311humbedooh $(CONFIG_SHELL) ./build/transform_sql.sh ./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 )
10961a2f60207cb873d889bb28b1f0ef707a4311humbedoohCOMPONENT_BUILD_TARGETS = all swig-py swig-pl javahl
91814c869ca39ce45dfe147307d2a831cac6ecbehumbedoohCONFIGURE_ENV += CPP="$(CC) $(CPPFLAGS) $(CFLAGS) -E"
91654e263480f0fdc2a03d782ff23f8dad07cf79humbedoohCONFIGURE_ENV += CXXCPP="$(CCC) $(CPPFLAGS) $(CXXFLAGS) -E"
79c5787b92ac5f0e1cc82393816c77a006399316trawickCONFIGURE_ENV += CXXLD="$(CCC) $(CXXFLAGS) $(LDFLAGS)"
c967bf3bc89e8aa60dbd30d9da388e448ddc1cc4trawickCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH_$(BITS))"
79c5787b92ac5f0e1cc82393816c77a006399316trawickCONFIGURE_ENV += SWIG_LDFLAGS="$(LDFLAGS) $(SWIG_LDFLAGS)"
79c5787b92ac5f0e1cc82393816c77a006399316trawickCONFIGURE_ENV += NEON_LIBS="`pkg-config --libs neon`"
79c5787b92ac5f0e1cc82393816c77a006399316trawickCONFIGURE_ENV += PYTHONPATH="$(PYTHON_VENDOR_PACKAGES)"
3e4e54d4e3fc0123c63d57aa84ac7ad7a8c73ff8jorton# Let's make noise just because we have to override --libdir
53e9b27aba029b18be814df40bcf6f0428771d1efuankgCONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
53e9b27aba029b18be814df40bcf6f0428771d1efuankgCONFIGURE_OPTIONS += --sbindir=$(CONFIGURE_SBINDIR.$(BITS))
53e9b27aba029b18be814df40bcf6f0428771d1efuankgCONFIGURE_OPTIONS += --libdir=$(CONFIGURE_PREFIX)/lib/svn
e6dd71992459d05a676b98b7963423dc5dc1e24aminfrinCONFIGURE_OPTIONS += --with-apxs=$(APACHE_USR_PREFIX)/bin/apxs
23f1535d6a60817d2846bac0aea230ea475d7dccminfrinCONFIGURE_OPTIONS += --with-apr-util=$(APR_UTIL_USR_PREFIX)
ec7520b24cd80d34d82bbcaca153cbb23cc04bc0rjung# elfedit to remove the wrong RUNPATH/RPATH from the C++ library
0827cb14e550f6f65018431c22c2c913631c8f25kbrand $(ELFEDIT) -e 'dyn:runpath /usr/lib/svn:/usr/apr/1.3/lib:/usr/apr-util/1.3/lib' libsvnjavahl-1.so.0.0.0 ; \
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick $(ELFEDIT) -e 'dyn:rpath /usr/lib/svn:/usr/apr/1.3/lib:/usr/apr-util/1.3/lib' libsvnjavahl-1.so.0.0.0 )
6249dfa569d3b4f1f539665b979a80c6e335d93etrawick# Perl target
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajim $(BUILD_DIR_32)/subversion/bindings/swig/perl/native/blib/lib $(PROTO_DIR)/$(PLVENDORDIR) \
cfa64348224b66dd1c9979b809406c4d15b1c137fielding $(BUILD_DIR_32)/subversion/bindings/swig/perl/native/blib/arch $(PROTO_DIR)/$(PLVENDORDIR)/$(PLARCH) \
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajim $(BUILD_DIR_32)/subversion/bindings/swig/perl/native/blib/man3 $(PROTO_DIR)/$(PLDIR)/man/man3
74499a117b3b2cd9666715a14f90c0e5d1a4ee8ajim# common targets - we only build 32-bit subversion
test: $(TEST_32)