Makefile revision 151
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#
97N/A# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
97N/A#
97N/Ainclude ../../make-rules/shared-macros.mk
97N/A
97N/ACOMPONENT_NAME= lua
97N/ACOMPONENT_VERSION= 5.1.4
97N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
97N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
97N/ACOMPONENT_ARCHIVE_HASH= sha1:2b11c8e60306efb7f0734b747588f57995493db7
97N/ACOMPONENT_ARCHIVE_URL= http://www.lua.org/ftp/$(COMPONENT_ARCHIVE)
97N/A
97N/Ainclude ../../make-rules/prep.mk
97N/Ainclude ../../make-rules/justmake.mk
97N/Ainclude ../../make-rules/ips.mk
97N/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)"
151N/ACOMPONENT_BUILD_ARGS += CFLAGS="$(CFLAGS)"
151N/ACOMPONENT_INSTALL_ARGS += INSTALL=$(INSTALL)
151N/ACOMPONENT_INSTALL_ARGS += INSTALL_TOP=$(PROTOUSRDIR)
97N/A
97N/Ainclude ../../make-rules/shared-targets.mk
97N/A
97N/A# common targets
97N/Abuild: $(BUILD_32_and_64)
97N/A
97N/A
97N/Ainstall: build $(INSTALL_32)
97N/A $(MKDIR) $(PROTOUSRDIR)/lib/pkgconfig
97N/A $(CP) $(SOURCE_DIR)/etc/lua.pc $(PROTOUSRDIR)/lib/pkgconfig
97N/A $(MKDIR) $(PROTOUSRLIBDIR64)
97N/A $(INSTALL) $(BUILD_DIR_64)/src/liblua.so $(PROTOUSRLIBDIR64)
97N/A
97N/Atest: build
97N/A @cd $(BUILD_DIR_32); $(MAKE) check
97N/A @cd $(BUILD_DIR_64); $(MAKE) check
97N/A
97N/A
97N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
97N/A
97N/Ainclude ../../make-rules/depend.mk
97N/A