Makefile revision 3817
5cd4555ad444fd391002ae32450572054369fd42Rob Austein# CDDL HEADER START
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# The contents of this file are subject to the terms of the
b129f72d951663755496670606e5f7303e8f2dc2Tinderbox User# Common Development and Distribution License (the "License").
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# You may not use this file except in compliance with the License.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# or http://www.opensolaris.org/os/licensing.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# See the License for the specific language governing permissions
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# and limitations under the License.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# CDDL HEADER END
b5ad6dfea4cc3e7d1d322ac99f1e5a31096837c4Mark Andrews# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCOMPONENT_SRC = $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley sha256:9cdd650b47e3ea864ab40d4ab23fa4a9fdfabc7fd018bf5c9cce30722c0abcea
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCOMPONENT_ARCHIVE_URL = http://downloads.mysql.com/archives/mysql-5.5/$(COMPONENT_ARCHIVE)
cfa2326b5c96a3a4c720262e077b2baf9fc27970Tinderbox User# Enable ASLR for this component
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# This component uses cmake to generate Makefiles and thus does not
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein# run any configure script
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob Halley# Providing component specific build options to cmake
9b6a170d22d61026d31bde87523f3320628b6ebcBrian WellingtonCMAKE_OPTIONS += -DBUILD_CONFIG=mysql_release
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCMAKE_OPTIONS += -DCMAKE_INSTALL_PREFIX=$(CMAKE_PREFIX)
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCMAKE_OPTIONS += -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCMAKE_OPTIONS += -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
4610465ed9408cbe434dbfb8be8ea53f48969c91Bob HalleyCMAKE_OPTIONS += -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
122c58bd11790c7576cdb1c6fd8e4439d0d7f7a5Mark AndrewsCMAKE_OPTIONS += -DWITH_INNOBASE_STORAGE_ENGINE=1
4eb998928b9aef0ceda42d7529980d658138698aEvan HuntCMAKE_OPTIONS += -DCMAKE_EXE_LINKER_FLAGS="-norunpath"
4eb998928b9aef0ceda42d7529980d658138698aEvan HuntCMAKE_OPTIONS += -DCMAKE_C_FLAGS=$(CMAKE_CFLAGS.$(BITS))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += -DCMAKE_CXX_FLAGS=$(CMAKE_CXXFLAGS.$(BITS))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCMAKE_OPTIONS += '-DCOMPILATION_COMMENT=MySQL Community Server (GPL)'
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PRE_BUILD_ACTION += export LDFLAGS=$(CMAKE_CXXFLAGS.$(BITS));
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PRE_BUILD_ACTION += echo Running cmake with $(CMAKE_OPTIONS);