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