Makefile revision 99
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# CDDL HEADER START
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# The contents of this file are subject to the terms of the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Common Development and Distribution License (the "License").
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# You may not use this file except in compliance with the License.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# or http://www.opensolaris.org/os/licensing.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# See the License for the specific language governing permissions
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# and limitations under the License.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# When distributing Covered Code, include this CDDL HEADER in each
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# If applicable, add the following below this CDDL HEADER, with the
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# fields enclosed by brackets "[]" replaced with your own identifying
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# information: Portions Copyright [yyyy] [name of copyright owner]
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# CDDL HEADER END
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica#
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainclude ../../make-rules/shared-macros.mk
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_NAME= lua
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_VERSION= 5.1.4
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_ARCHIVE_HASH= sha1:2b11c8e60306efb7f0734b747588f57995493db7
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_ARCHIVE_URL= http://www.lua.org/ftp/$(COMPONENT_ARCHIVE)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainclude ../../make-rules/prep.mk
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainclude ../../make-rules/justmake.mk
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainclude ../../make-rules/ips.mk
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica# This is because lua uses $(CC) to build it's shared libraries.
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCC += $(CC_BITS)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCFLAGS += $(CC_PIC) $(CPP_LARGEFILES)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_BUILD_TARGETS += CC="$(CC)"
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_BUILD_TARGETS += CFLAGS="$(CFLAGS)"
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_INSTALL_TARGETS += INSTALL=$(INSTALL)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricaCOMPONENT_INSTALL_TARGETS += INSTALL_TOP=$(PROTOUSRDIR)
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01rica
f875b4ebb1dd9fdbeb043557cab38ab3bf7f6e01ricainclude ../../make-rules/shared-targets.mk
# common targets
build: $(BUILD_32_and_64)
install: build $(INSTALL_32)
$(MKDIR) $(PROTOUSRDIR)/lib/pkgconfig
$(CP) $(SOURCE_DIR)/etc/lua.pc $(PROTOUSRDIR)/lib/pkgconfig
$(MKDIR) $(PROTOUSRLIBDIR64)
$(INSTALL) $(BUILD_DIR_64)/src/liblua.so $(PROTOUSRLIBDIR64)
test: build
@cd $(BUILD_DIR_32); $(MAKE) check
@cd $(BUILD_DIR_64); $(MAKE) check
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk