components/Makefile.component
changeset 0 a62e9e23639a
equal deleted inserted replaced
-1:000000000000 0:a62e9e23639a
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 #
       
    22 # Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
       
    23 # Use is subject to license terms.
       
    24 #
       
    25 
       
    26 # generic component build support... included
       
    27 # from individual component Makefiles.
       
    28 
       
    29 ARCH:sh = uname -p
       
    30 POUND_SIGN:sh = echo \\043
       
    31 
       
    32 RELEASE=5.11
       
    33 PKGVERS_COMPONENT= $(VERSION)
       
    34 PKGVERS_BUILTON= $(RELEASE)
       
    35 PKGVERS_BRANCH= 0.1
       
    36 PKGVERS= $(PKGVERS_COMPONENT),$(PKGVERS_BUILTON)-$(PKGVERS_BRANCH)
       
    37 
       
    38 C_COMPILER=developer/sunstudio12u1
       
    39 
       
    40 REPO:sh = echo $REPO
       
    41 
       
    42 i386_DEFINES=           \
       
    43         ARCH=i386       \
       
    44         ARCH32=i86      \
       
    45         ARCH64=amd64    \
       
    46         i386_ONLY=''    \
       
    47         sparc_ONLY=$(POUND_SIGN)
       
    48 
       
    49 sparc_DEFINES=          \
       
    50         ARCH=sparc      \
       
    51         ARCH32=sparcv7  \
       
    52         ARCH64=sparcv9  \
       
    53         i386_ONLY=$(POUND_SIGN) \
       
    54         sparc_ONLY=''
       
    55 
       
    56 ARCH_DEFINES=$($(ARCH)_DEFINES)
       
    57 
       
    58 PKGMOGRIFY_MACROS=\
       
    59 	$(ARCH_DEFINES) \
       
    60 	PKGVERS=$(PKGVERS)
       
    61 
       
    62 
       
    63 BUILD_FILE_DEPENDENCIES= 
       
    64 BUILD_PKG_DEPENDENCIES= 
       
    65 
       
    66 default: package
       
    67 
       
    68 proto:
       
    69 	mkdir -p proto
       
    70 
       
    71 echo_dependencies:
       
    72 	print "BUILD_FILE_DEPENDENCIES = [$(BUILD_FILE_DEPENDENCIES:%=\"%\",)]"
       
    73 	print "BUILD_PKG_DEPENDENCIES = [$(BUILD_PKG_DEPENDENCIES:%=\"%\",)]"
       
    74 
       
    75 check_dependencies:
       
    76 	ls $(BUILD_FILE_DEPENDENCIES) > /dev/null
       
    77 	pkg list $(BUILD_PKG_DEPENDENCIES) > /dev/null
       
    78 
       
    79 provision:
       
    80 	pfexec pkg install $(BUILD_PKG_DEPENDENCIES)