Makefile revision 2036
1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/Ainclude ../../make-rules/shared-macros.mk
1N/A
1N/ACOMPONENT_NAME= lua
1N/ACOMPONENT_VERSION= 5.2.1
1N/ACOMPONENT_PROJECT_URL= http://www.lua.org/
1N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
1N/ACOMPONENT_ARCHIVE_HASH= \
1N/A sha256:64304da87976133196f9e4c15250b70f444467b6ed80d7cfd7b3b982b5177be5
1N/ACOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)ftp/$(COMPONENT_ARCHIVE)
1N/ACOMPONENT_BUGDB= utility/lua
1N/A
1N/ALUA_TESTS= lua-5.2.1-tests
1N/ACOMPONENT_ARCHIVE_1= $(LUA_TESTS).tar.gz
1N/ACOMPONENT_ARCHIVE_HASH_1= \
1N/A sha256:2346d635ee392c8d8024b07beaa10b7b66a3f861c41d575753d03155751cf114
1N/ACOMPONENT_ARCHIVE_URL_1= $(COMPONENT_PROJECT_URL)/tests/5.2/$(COMPONENT_ARCHIVE_1)
1N/A
1N/A
1N/Ainclude ../../make-rules/prep.mk
1N/Ainclude ../../make-rules/justmake.mk
1N/Ainclude ../../make-rules/ips.mk
1N/A
1N/APATCH_LEVEL= 0
1N/A
1N/A# This is because lua uses $(CC) to build it's shared libraries.
1N/ACC += $(CC_BITS)
1N/A
1N/ACFLAGS += $(CC_PIC) $(CPP_LARGEFILES)
1N/A
1N/ACOMPONENT_BUILD_ARGS += CC="$(CC)"
1N/ACOMPONENT_BUILD_ARGS += USRCFLAGS="$(CFLAGS)"
1N/ACOMPONENT_INSTALL_ARGS += INSTALL=$(INSTALL)
1N/ACOMPONENT_INSTALL_ARGS += INSTALL_TOP=$(PROTOUSRDIR)
1N/A$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_LIB=$(PROTOUSRLIBDIR64)
1N/A$(INSTALL_64): COMPONENT_INSTALL_ARGS += INSTALL_BIN=$(PROTOUSRBINDIR64)
1N/A
1N/A$(BUILD_DIR)/lua-64.pc: files/lua-64.pc
1N/A /bin/sed -e "s#MACH64#$(MACH64)#g" < $< > $@
1N/A
1N/AASLR_MODE = $(ASLR_ENABLE)
1N/A
1N/A# common targets
1N/Abuild: $(BUILD_32_and_64)
1N/A
1N/Ainstall: $(INSTALL_32_and_64) $(BUILD_DIR)/lua-64.pc
1N/A
1N/Atest: install
1N/A (gzip -dc $(LUA_TESTS).tar.gz | tar xopf -; \
1N/A cd $(LUA_TESTS); $(ENV) LD_LIBRARY_PATH=$(PROTOUSRLIBDIR) \
1N/A $(PROTOUSRBINDIR)/$(COMPONENT_NAME) -e"_U=true" all.lua; \
1N/A $(ENV) LD_LIBRARY_PATH=$(PROTOUSRLIBDIR64) \
1N/A $(PROTOUSRBINDIR64)/$(COMPONENT_NAME) -e"_U=true" all.lua)
1N/A
1N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
1N/A
1N/Ainclude ../../make-rules/depend.mk
1N/A
1N/A