Makefile revision 618
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# CDDL HEADER START
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# The contents of this file are subject to the terms of the
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# Common Development and Distribution License (the "License").
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# You may not use this file except in compliance with the License.
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# or http://www.opensolaris.org/os/licensing.
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# See the License for the specific language governing permissions
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# and limitations under the License.
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# When distributing Covered Code, include this CDDL HEADER in each
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# If applicable, add the following below this CDDL HEADER, with the
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# fields enclosed by brackets "[]" replaced with your own identifying
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# information: Portions Copyright [yyyy] [name of copyright owner]
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# CDDL HEADER END
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens#
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrensinclude ../../make-rules/shared-macros.mk
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_NAME= bcc
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_VERSION= 0.16.17
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_PROJECT_URL= http://homepage.ntlworld.com/robert.debath/dev86/
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_SRC= dev86-$(COMPONENT_VERSION)
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_ARCHIVE= Dev86src-$(COMPONENT_VERSION).tar.gz
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_ARCHIVE_HASH= sha1:0bfe55c7a5e11d72f19f26cb0383178605951c72
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrensinclude ../../make-rules/prep.mk
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrensinclude ../../make-rules/justmake.mk
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrensinclude ../../make-rules/ips.mk
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPILER=gcc
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# Create the Makefile before we build
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_PRE_BUILD_ACTION = (cd $(@D) ; CC="$(CC)" $(GMAKE) make.fil)
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens# build with the created Makefile (make.fil)
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_BUILD_ARGS = -f make.fil
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_BUILD_ARGS += PATH="$(@D)/bin:$(PATH)"
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_BUILD_ARGS += MAKE="$(GMAKE)"
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_BUILD_ARGS += VERSION="$(COMPONENT_VERSION)"
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_BUILD_ARGS += TOPDIR="$(@D)"
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_BUILD_ARGS += CC="$(CC)"
148434217c040ea38dc844384f6ba68d9b325906Matthew AhrensCOMPONENT_BUILD_TARGETS = bcc86 as86 ld86 ar86
148434217c040ea38dc844384f6ba68d9b325906Matthew Ahrens
# common targets
install build: $(BUILD_32)
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk