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