Makefile revision 444
346N/A#
346N/A# CDDL HEADER START
346N/A#
346N/A# The contents of this file are subject to the terms of the
346N/A# Common Development and Distribution License (the "License").
346N/A# You may not use this file except in compliance with the License.
346N/A#
346N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
346N/A# or http://www.opensolaris.org/os/licensing.
346N/A# See the License for the specific language governing permissions
346N/A# and limitations under the License.
346N/A#
346N/A# When distributing Covered Code, include this CDDL HEADER in each
346N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
346N/A# If applicable, add the following below this CDDL HEADER, with the
346N/A# fields enclosed by brackets "[]" replaced with your own identifying
346N/A# information: Portions Copyright [yyyy] [name of copyright owner]
346N/A#
346N/A# CDDL HEADER END
346N/A#
346N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
346N/A#
346N/Ainclude ../../make-rules/shared-macros.mk
346N/A
346N/ACOMPONENT_NAME= mysql
346N/ACOMPONENT_VERSION= 5.1.37
346N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
346N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
346N/ACOMPONENT_ARCHIVE_HASH= sha1:ac3d7ce106149fef20e8a990b6124f9e05524e49
346N/ACOMPONENT_ARCHIVE_URL= http://downloads.mysql.com/archives/mysql-5.1/$(COMPONENT_ARCHIVE)
346N/ACOMPONENT_PROJECT_URL= http://dev.mysql.com/
346N/A
346N/Ainclude ../../make-rules/prep.mk
346N/Ainclude ../../make-rules/configure.mk
346N/Ainclude ../../make-rules/ips.mk
346N/A
346N/APATCH_LEVEL=0
346N/A
346N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
346N/A ( cd $(COMPONENT_SRC) ; \
346N/A $(TOUCH) configure.in config/ac-macros/* ; sleep 5 ; \
346N/A $(TOUCH) aclocal.m4 config.h.in ; sleep 5 ; \
346N/A $(TOUCH) configure ; sleep 5 ; \
346N/A /usr/bin/find . -name Makefile.in | /usr/bin/xargs $(TOUCH) ; \
346N/A /usr/bin/find . -type d -exec $(CHMOD) 755 "{}" \; ; \
346N/A /usr/bin/find . -type f -exec $(CHMOD) ugo+r "{}" \; ; \
346N/A )
346N/A
346N/ACONFIGURE_PREFIX=/usr/mysql/5.1
346N/ACONFDIR=/etc/mysql/5.1
346N/ADATA_PREFIX=/var/mysql/5.1
346N/ACONFIGURE_MANDIR=$(CONFIGURE_PREFIX)/man
346N/A
346N/A# Although -norunpath is set in CXXFLAGS, we need to append
346N/A# the -norunpath option here, so it's picked up when building
346N/A# shared libraries (CC -G)
346N/ACXX += $(studio_NORUNPATH)
346N/A
346N/A# C common compiler flags
346N/ACFLAGS += -xstrconst -xprefetch=auto -xprefetch_level=3 -fns=no -fsimple=1 -xbuiltin=%none \
346N/A-xlibmil -xlibmopt -xnorunpath
346N/A
346N/A# C++ common compiler flags
346N/ACXXFLAGS += -DDBUG_OFF -DBIG_TABLES -DHAVE_RWLOCK_T $(CC_PIC) $($(COMPILER)_opt) \
346N/A$($(COMPILER)_MT) -xprefetch=auto -xprefetch_level=3 -fns=no -fsimple=1 -xbuiltin=%none \
346N/A-xlibmil -xlibmopt
346N/A
346N/A# Common linker flags
346N/ALDFLAGS += -lCrun -lrt
346N/A
346N/A#build environment common to both 32 & 64bit builds
346N/ACOMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
346N/ACOMPONENT_BUILD_ENV += LDFLAGS="$(LDFLAGS)"
346N/A
346N/A# build environment applicable to only 32bit
346N/ACOMPONENT_BUILD_ENV.32 += CXXFLAGS="$(CXXFLAGS)"
346N/A
346N/A#build environment applicable to only 64bit
346N/ACOMPONENT_BUILD_ENV.64 += CXXFLAGS="$(CXXFLAGS) -features=no%except"
346N/A
346N/A#common configure options for both 32 & 64bits
346N/ACONFIGURE_OPTIONS += ac_cv_func_stpcpy=no
346N/ACONFIGURE_OPTIONS += --localstatedir=$(DATA_PREFIX)/data
346N/ACONFIGURE_OPTIONS += --datadir=$(CONFIGURE_PREFIX)/share
346N/ACONFIGURE_OPTIONS += --sharedstatedir=$(CONFIGURE_PREFIX)/com
346N/ACONFIGURE_OPTIONS += --includedir=$(CONFIGURE_PREFIX)/include
346N/ACONFIGURE_OPTIONS += --oldincludedir=$(CONFIGURE_PREFIX)/include
346N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_PREFIX)/docs
346N/ACONFIGURE_OPTIONS += --sysconfdir=$(CONFDIR)
346N/ACONFIGURE_OPTIONS += --enable-thread-safe-client
346N/ACONFIGURE_OPTIONS += --with-mysqld-libs=-lmtmalloc
346N/ACONFIGURE_OPTIONS += --with-client-ldflags=-static
346N/ACONFIGURE_OPTIONS += --with-mysqld-ldflags=-static
346N/ACONFIGURE_OPTIONS += --with-pic
346N/ACONFIGURE_OPTIONS += --with-big-tables
346N/ACONFIGURE_OPTIONS += --with-ssl
346N/ACONFIGURE_OPTIONS += --with-readline
346N/ACONFIGURE_OPTIONS += --with-extra-charsets=complex
346N/ACONFIGURE_OPTIONS += --with-plugins=archive,blackhole,csv,myisam,example,federated,innobase,myisammrg
346N/ACONFIGURE_OPTIONS += --enable-local-infile
346N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
346N/ACONFIGURE_OPTIONS += CXXFLAGS="$(CXXFLAGS)"
346N/ACONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
346N/ACONFIGURE_OPTIONS += studio_NORUNPATH="$(studio_NORUNPATH)"
346N/A
346N/ACONFIGURE_OPTIONS.32 += --libexecdir=$(CONFIGURE_PREFIX)/bin
346N/ACONFIGURE_OPTIONS.32 += --enable-dtrace DTRACEFLAGS='-32'
346N/A
346N/ACONFIGURE_OPTIONS.64 += --libexecdir=$(CONFIGURE_PREFIX)/bin/$(MACH64)
346N/ACONFIGURE_OPTIONS.64 += --enable-dtrace DTRACEFLAGS='-64'
346N/A
346N/Abuild: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk