components/bcc/Makefile
author Stefan Teleman <stefan.teleman@oracle.com>
Wed, 02 Mar 2016 07:32:20 -0800
changeset 5538 4e57ec0a9840
parent 4339 6501cf9c29f9
child 5682 94c0ca64c022
permissions -rw-r--r--
22834827 bcc should be 64-bit
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
354
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     1
#
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     3
#
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     7
#
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    12
#
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    18
#
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    20
#
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    21
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    22
#
5538
4e57ec0a9840 22834827 bcc should be 64-bit
Stefan Teleman <stefan.teleman@oracle.com>
parents: 4339
diff changeset
    23
# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
354
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    24
#
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    25
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    26
COMPILER =	gcc
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    27
354
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    28
include ../../make-rules/shared-macros.mk
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    29
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    30
COMPONENT_NAME=		bcc
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_VERSION=	0.16.17
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 485
diff changeset
    32
COMPONENT_PROJECT_URL=	http://homepage.ntlworld.com/robert.debath/dev86/
354
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    33
COMPONENT_SRC=		dev86-$(COMPONENT_VERSION)
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    34
COMPONENT_ARCHIVE=	Dev86src-$(COMPONENT_VERSION).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    35
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 609
diff changeset
    36
    sha256:52ed4980c0e4b68d2624aadb0ceb0339cb3fd8dd7c2175419d4f77a451846cbe
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 485
diff changeset
    37
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)$(COMPONENT_ARCHIVE)
1071
cc3ecf7b3dec 15959394 Several Userland components are using the wrong BugDB cat/subcat.
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    38
COMPONENT_BUGDB=	utility/bcc
354
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    39
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1645
diff changeset
    40
TPNO=			8334
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1645
diff changeset
    41
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    42
include $(WS_MAKE_RULES)/prep.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    43
include $(WS_MAKE_RULES)/justmake.mk
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    44
include $(WS_MAKE_RULES)/ips.mk
354
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    45
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    46
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
5538
4e57ec0a9840 22834827 bcc should be 64-bit
Stefan Teleman <stefan.teleman@oracle.com>
parents: 4339
diff changeset
    47
CC += $(CC_BITS)
354
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    48
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    49
# Create the Makefile before we build
485
9b12cda204fe 7080213 gcc-3 should not deliver /usr/gnu/bin/cc and its man page.
Rich Burridge <rich.burridge@oracle.com>
parents: 354
diff changeset
    50
COMPONENT_PRE_BUILD_ACTION = (cd $(@D) ; CC="$(CC)" $(GMAKE) make.fil)
354
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    51
# build with the created Makefile (make.fil)
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    52
COMPONENT_BUILD_ARGS = -f make.fil
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    53
COMPONENT_BUILD_ARGS += PATH="$(@D)/bin:$(PATH)"
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    54
COMPONENT_BUILD_ARGS += MAKE="$(GMAKE)"
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    55
COMPONENT_BUILD_ARGS += VERSION="$(COMPONENT_VERSION)"
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    56
COMPONENT_BUILD_ARGS += TOPDIR="$(@D)"
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    57
COMPONENT_BUILD_ARGS += CC="$(CC)"
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    58
COMPONENT_BUILD_TARGETS = bcc86 as86 ld86 ar86
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    59
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    60
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    61
# common targets
5538
4e57ec0a9840 22834827 bcc should be 64-bit
Stefan Teleman <stefan.teleman@oracle.com>
parents: 4339
diff changeset
    62
install build:		$(BUILD_64)
354
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    63
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    64
test:		$(NO_TESTS)
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    65
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    66
system-test:    $(NO_TESTS)
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 3817
diff changeset
    67
354
f1502403b34c 7061042 bcc should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    68
3817
30b42c38bbc4 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Sun.COM>
parents: 1948
diff changeset
    69
REQUIRED_PACKAGES += system/library