usr/src/Makefile.master
author David Miner <dminer@opensolaris.org>
Mon, 24 May 2010 17:31:06 -0400
changeset 827 a522c6d6cba1
parent 773 cc0753f47d02
child 852 d4a0239a3745
permissions -rw-r--r--
15784 slim_source gate should build IPS packages by default
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
     1
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
     2
# CDDL HEADER START
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
     3
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
     7
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    10
# See the License for the specific language governing permissions
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    11
# and limitations under the License.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    12
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    18
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    19
# CDDL HEADER END
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    20
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    21
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    22
#
827
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
    23
# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    24
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    25
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    26
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    27
# Makefile.master, global definitions for system source
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    28
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    29
# Special reference pointers: these allow install to be built on
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    30
# machines that don't necessarily have the very latest ON or SFW packages,
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    31
# or when testing features that depend on changed ON/SFW interfaces.  (The
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    32
# only use of the *REF_GATE variables is here, so you can override just the
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    33
# *REF_PROTO variables if you need to point directly to a root directory.)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    34
ONREF_GATE=
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    35
SFWREF_GATE=
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    36
ONREF_PROTO=$(ONREF_GATE:%=%/proto/root_$(MACH))
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    37
SFWREF_PROTO=$(SFWREF_GATE:%=%/proto/root_$(MACH))
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    38
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    39
# Locations of the main build tools.  Can be overridden in the environment.
148
bff97dbaccdc 1268: Location of Sun Studio Tools has moved
Virginia Wray <Virginia.Wray@Sun.COM>
parents: 73
diff changeset
    40
BUILD_TOOLS=		/opt
bff97dbaccdc 1268: Location of Sun Studio Tools has moved
Virginia Wray <Virginia.Wray@Sun.COM>
parents: 73
diff changeset
    41
ONBLD_TOOLS=            $(BUILD_TOOLS)/onbld
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    42
SPRO_ROOT=		$(BUILD_TOOLS)/SUNWspro
148
bff97dbaccdc 1268: Location of Sun Studio Tools has moved
Virginia Wray <Virginia.Wray@Sun.COM>
parents: 73
diff changeset
    43
SPRO_VROOT=            	$(SPRO_ROOT)
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    44
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    45
LINT=			$(SPRO_VROOT)/bin/lint
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    46
CC=			$(SPRO_VROOT)/bin/cc
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    47
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    48
# Other commands
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    49
LD=			$(CC)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    50
RM=			/usr/bin/rm -f
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    51
INS=			/usr/sbin/install
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    52
SYMLINK=		/usr/bin/ln -s
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    53
LN=			/usr/bin/ln
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    54
CP=			/usr/bin/cp
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    55
MV=			/usr/bin/mv -f
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    56
SH=			/usr/bin/sh
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    57
CHMOD=			/usr/bin/chmod
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    58
CHOWN=			/usr/bin/chown
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    59
CHGRP=			/usr/bin/chgrp
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    60
MKDIR=			/usr/bin/mkdir
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    61
TOUCH=			/usr/bin/touch
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    62
SED=			/usr/bin/sed
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    63
TAR=			/usr/bin/tar
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    64
ECHO=			/usr/bin/echo
649
ba353c37b287 12670 Change nested try/except in distro_const.py missed during 2.6 python porting
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 609
diff changeset
    65
PYTHON=			/usr/bin/python2.6
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    66
CAT=			/usr/bin/cat
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    67
GENCAT=			/usr/bin/gencat
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    68
XGETTEXT=		xgettext
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    69
XGETFLAGS=		-c TRANSLATION_NOTE
773
cc0753f47d02 6367 Provide a text-installer for opensolaris
Keith Mitchell <keith.mitchell@sun.com>
parents: 723
diff changeset
    70
GNUXGETTEXT=		/usr/gnu/bin/xgettext
cc0753f47d02 6367 Provide a text-installer for opensolaris
Keith Mitchell <keith.mitchell@sun.com>
parents: 723
diff changeset
    71
GNUXGETFLAGS=		--keyword=_ --strict --no-location --omit-header
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    72
CSTYLE=			cstyle -pP
827
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
    73
NAWK=			/usr/bin/nawk
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    74
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    75
# Reference paths for ON
263
4dd264931cdf 3396 Slim Install should support > 1 TB disks
Harold N Shaw- Sun Microsystem <Harold.Shaw@Sun.COM>
parents: 261
diff changeset
    76
ONLIBDIR=		$(ONREF_PROTO)/lib
4dd264931cdf 3396 Slim Install should support > 1 TB disks
Harold N Shaw- Sun Microsystem <Harold.Shaw@Sun.COM>
parents: 261
diff changeset
    77
ONUSRLIBDIR=		$(ONREF_PROTO)/usr/lib
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    78
ONINCDIR=		$(ONREF_PROTO)/usr/include
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    79
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    80
# Common path definitions.
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    81
ADMINLIB=		/usr/snadm/lib
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    82
ROOTADMIN=		$(ROOT)/usr/snadm
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    83
ROOTADMINLIB=		$(ROOTADMIN)/lib
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    84
ROOTBIN=		$(ROOT)/bin
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    85
ROOTDC=			$(ROOT)/usr/share/distro_const
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    86
ROOTDC_AI=		$(ROOTDC)/auto_install
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    87
ROOTDC_DOC=		$(ROOTDOC)/distro_const
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    88
ROOTDC_SLIM=		$(ROOTDC)/slim_cd
773
cc0753f47d02 6367 Provide a text-installer for opensolaris
Keith Mitchell <keith.mitchell@sun.com>
parents: 723
diff changeset
    89
ROOTDC_TM=		$(ROOTDC)/text_install
663
68e739d50740 13043 Need to provide tooling to create pre-installed VM images
Glenn Lagasse <glenn.lagasse@sun.com>
parents: 649
diff changeset
    90
ROOTDC_VMC=		$(ROOTDC)/vmc
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    91
ROOTDOC=		$(ROOT)/usr/share/doc
356
45f678bcb529 4552 Add AI documentation to SUNWinstalladm-tools
sundar.yamunachari@sun.com
parents: 287
diff changeset
    92
ROOTAI_DOC=		$(ROOTDOC)/auto_install
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    93
ROOTINC=		$(ROOT)/usr/include
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    94
ROOTINCADMIN=		$(ROOTINC)/admin
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    95
ROOTMAN1M=		$(ROOTMAN)/man1m
723
4c9eb65ee7b6 14371 Need to update the existing DC documentation
Glenn Lagasse <glenn.lagasse@sun.com>
parents: 663
diff changeset
    96
ROOTMAN4=		$(ROOTMAN)/man4
73
7cfbed527595 snap upgrade phase I
Ethan Quach <Ethan.Quach@Sun.COM>
parents: 57
diff changeset
    97
ROOTMAN=		$(ROOT)/usr/share/man
420
818239049932 5284 TI doesn't utilize last cylinder when creating VTOC with default layout
Jan Damborsky <jan.damborsky@sun.com>
parents: 356
diff changeset
    98
ROOTOPTINSTALLTESTBIN=	$(ROOT)/opt/install-test/bin
649
ba353c37b287 12670 Change nested try/except in distro_const.py missed during 2.6 python porting
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 609
diff changeset
    99
ROOTPYTHON=		$(ROOTUSRLIB)/python2.6
57
2f2f57bd9558 878 Python Based Transfer Module
moinakg
parents: 43
diff changeset
   100
ROOTPYTHONVENDOR=	$(ROOTPYTHON)/vendor-packages
197
ac1383e6038c 2618 Move install related modules in slim_source to a common place
Karen Tung <Karen.Tung@Sun.COM>
parents: 148
diff changeset
   101
ROOTPYTHONVENDORINSTALL=	$(ROOTPYTHONVENDOR)/osol_install
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   102
ROOTPYTHONVENDORINSTALLAI=	$(ROOTPYTHONVENDORINSTALL)/auto_install
197
ac1383e6038c 2618 Move install related modules in slim_source to a common place
Karen Tung <Karen.Tung@Sun.COM>
parents: 148
diff changeset
   103
ROOTPYTHONVENDORINSTALLBEADM=	$(ROOTPYTHONVENDORINSTALL)/beadm
ac1383e6038c 2618 Move install related modules in slim_source to a common place
Karen Tung <Karen.Tung@Sun.COM>
parents: 148
diff changeset
   104
ROOTPYTHONVENDORINSTALLDC=	$(ROOTPYTHONVENDORINSTALL)/distro_const
773
cc0753f47d02 6367 Provide a text-installer for opensolaris
Keith Mitchell <keith.mitchell@sun.com>
parents: 723
diff changeset
   105
ROOTPYTHONVENDORINSTALLTI=	$(ROOTPYTHONVENDORINSTALL)/text_install
cc0753f47d02 6367 Provide a text-installer for opensolaris
Keith Mitchell <keith.mitchell@sun.com>
parents: 723
diff changeset
   106
ROOTPYTHONVENDORINSTALLPROF=	$(ROOTPYTHONVENDORINSTALL)/profile
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents: 266
diff changeset
   107
ROOTAUTOINST=		$(ROOT)/usr/share/auto_install
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   108
ROOTSBIN=		$(ROOT)/sbin
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   109
ROOTUSRBIN=		$(ROOT)/usr/bin
773
cc0753f47d02 6367 Provide a text-installer for opensolaris
Keith Mitchell <keith.mitchell@sun.com>
parents: 723
diff changeset
   110
ROOTUSRSHARE=		$(ROOT)/usr/share
cc0753f47d02 6367 Provide a text-installer for opensolaris
Keith Mitchell <keith.mitchell@sun.com>
parents: 723
diff changeset
   111
ROOTUSRSHARETI=		$(ROOTUSRSHARE)/text-install
827
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   112
ROOTUSRSHARETIHELP=	$(ROOTUSRSHARETI)/help
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   113
ROOTUSRSHARETIHELPC=	$(ROOTUSRSHARETI)/help/C
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   114
ROOTUSRLIB=		$(ROOT)/usr/lib
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   115
ROOTUSRLIBMSGS=		$(ROOTUSRLIB)/locale/C/LC_MESSAGES
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   116
ROOTUSRSBIN=		$(ROOT)/usr/sbin
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   117
ROOTVAR=		$(ROOT)/var
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   118
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   119
INSTMSGS=		$(MSG_DOMAIN:%=$(ROOTUSRLIBMSGS)/%.po)
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   120
ROOTSBINPROG=		$(PROG:%=$(ROOTSBIN)/%)
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   121
ROOTUSRINCLEXP=		$(EXPHDRS:%=$(ROOTINCADMIN)/%)
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   122
ROOTUSRSBINPROG=	$(PROG:%=$(ROOTUSRSBIN)/%)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   123
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   124
FILEMODE=		644
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   125
EXECMODE=		755
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   126
DIRMODE=		755
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   127
OWNER=			bin
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   128
GROUP=			bin
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   129
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   130
# Borrowed from Makefile.master in NSE env SunOSint.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   131
# CH toggles operations restricted to root.  It is normally set to `#'.  When
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   132
# running as root, it should be set to `' (null) in your environment.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   133
# RELEASE_BUILD should be cleared for RE builds.  This is completely
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   134
# independent of CH.  NOT_RELEASE_BUILD is exactly what the name implies.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   135
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   136
CH:sh=					/usr/bin/echo \\043
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   137
NOT_RELEASE_BUILD=
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   138
RELEASE_BUILD:sh=			/usr/bin/echo \\043
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   139
$(RELEASE_BUILD)NOT_RELEASE_BUILD:sh=	/usr/bin/echo \\043
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   140
$(RELEASE_BUILD)ROOT=			/proto
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   141
$(NOT_RELEASE_BUILD)ROOT:sh=		/usr/bin/echo ${ROOT}
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   142
73
7cfbed527595 snap upgrade phase I
Ethan Quach <Ethan.Quach@Sun.COM>
parents: 57
diff changeset
   143
CP_P.file=	$(RM) $@; $(CP) -p $< $@; $(CHMOD) $(FILEMODE) $@
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   144
INS.file=	$(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   145
$(CH)INS.file=	$(INS) -m $(FILEMODE) -u $(OWNER) -g $(GROUP) -f $(@D) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   146
INS.exec=	$(RM) $@; $(INS) -s -m $(EXECMODE) -f $(@D) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   147
$(CH)INS.exec=	$(INS) -m $(EXECMODE) -u $(OWNER) -g $(GROUP) -f $(@D) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   148
INS.dir=	$(INS) -d -m $(DIRMODE) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   149
$(CH)INS.dir=	$(INS) -d -m $(DIRMODE) -u $(OWNER) -g $(GROUP) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   150
INS.rename=	$(INS.file); $(MV) $(@D)/$(<F) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   151
INSTALL=	$(INS.file)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   152
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   153
MACH=	$(TARGET_MACH:-%=%)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   154
ARCH=	$(TARGET_ARCH:-%=%)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   155
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   156
# Message catalog build rule for packaging commands.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   157
BUILD.po= $(XGETTEXT) -d msg.$$$$ $(XGETFLAGS) $<.i ;\
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   158
	$(CAT) msg.$$$$.po | sed "/^domain/d" > $@ ;\
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   159
	$(RM) msg.$$$$.po $<.i
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   160
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   161
POFILE=         $(PROG).po
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   162
MSGROOT=        $(ROOT)/catalog
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   163
MSGDOMAIN=      $(MSGROOT)/$(TEXT_DOMAIN)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   164
CLOBBERFILES += $(POFILE) $(POFILES)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   165
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   166
# The use of TEXT_DOMAIN here is strange, but required for the normal
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   167
# message catalog build rules.  (This would be better done with a
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   168
# conditional on CFLAGS, but that would require significant Makefile
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   169
# effort.)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   170
COMPILE.po=	$(CC) $(CFLAGS) \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   171
		    $(CPPFLAGS:\"$(TEXT_DOMAIN)\"=$(TEXT_DOMAIN)) -E -C
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   172
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   173
COMPILE.c=	$(CC) $(CFLAGS) $(CPPFLAGS) -c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   174
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   175
# Set CFLAGS and CCFLAGS and reset below if release build.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   176
# Only optimize for release builds
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   177
# The -norunpath flag must be passed to any library or executables
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   178
# that is built with "CC". This suppresses the automatic generation
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   179
# of runtime search paths that can cause local and SWAN paths to be
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   180
# included in libraries and executables which would be inappropriate
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   181
# for use outside of SWAN (that is, customer sites)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   182
CFLAGS:sh =if [ "`uname -p`" = "sparc" ]; then \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   183
		echo "-xc99=%none -Wa,-xcg92" ; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   184
          else  echo "-xc99=%none"; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   185
          fi
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   186
CCFLAGS:sh =if [ "`uname -p`" = "sparc" ]; then \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   187
		echo "-Qoption fbe -xcg92" ; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   188
          else  echo ""; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   189
          fi
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   190
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   191
$(RELEASE_BUILD)CFLAGS:sh =if [ "`uname -p`" = "sparc" ]; then \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   192
		echo "-xc99=%none -O -Wa,-xcg92" ; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   193
          else  echo "-xc99=%none -O"; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   194
          fi
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   195
 
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   196
$(RELEASE_BUILD)CCFLAGS:sh =if [ "`uname -p`" = "sparc" ]; then \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   197
		echo "-O -Qoption fbe -xcg92" ; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   198
          else  echo "-O"; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   199
          fi
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   200
CCFLAGS += -norunpath -compat=4
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   201
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   202
# CPPFLAGS.master allows values to be prepended to CPPFLAGS.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   203
CPPFLAGS.master= -I$(ROOT)/usr/include -I$(ONINCDIR)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   204
CPPFLAGS= $(CPPFLAGS.master)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   205
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   206
# Rules (normally from default.mk) and macros which are used for post
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   207
# processing files. Normally, these do stripping of the comment section
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   208
# automatically.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   209
#    RELEASE_CM:	Should be edited if std format changes.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   210
#    POST_PROCESS_O:	Post-processing for `.o' files.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   211
#    POST_PROCESS_A:	Post-processing for `.a' files (currently null).
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   212
#    POST_PROCESS_SO:	Post-processing for `.so' files.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   213
#    POST_PROCESS:	Post-processing for executable files (no suffix).
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   214
# Note that these macros are not completely generalized as they are to be
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   215
# used with the file name to be processed following.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   216
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   217
# It is left as an exercise to Release Engineering to embellish the generation
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   218
# of the release comment string.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   219
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   220
#	If this is a development build:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   221
#		delete the comment section (mcs -d)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   222
#		add the standard comment (mcs -a $(RELEASE_CM))
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   223
#		add the development specific comment (mcs -a $(DEV_CM))
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   224
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   225
#	If this is a release build:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   226
#		delete the comment section (mcs -d)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   227
#		add the standard comment (mcs -a $(RELEASE_CM))
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   228
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   229
#	Sigh,... The declaration POUND_SIGN is always '#'. This is just needed
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   230
#	to get around the make **bug** that '#' is always a comment delimiter,
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   231
#	even when escaped of quoted.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   232
#
827
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   233
POUND_SIGN:sh=	/usr/bin/echo \\043
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   234
827
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   235
# The following list of macros are used in the definition of RELEASE_CM
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   236
# which is used to label all binaries in the build:
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   237
#
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   238
#       RELEASE         Specific release of the build, eg: 5.2
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   239
#       RELEASE_MAJOR   Major version number part of $(RELEASE)
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   240
#       RELEASE_MINOR   Minor version number part of $(RELEASE)
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   241
#       VERSION         Version of the build (alpha, beta, Generic)
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   242
#       PATCHID         If this is a patch this value should contain
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   243
#                       the patchid value (eg: "Generic 100832-01"), otherwise
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   244
#                       it will be set to $(VERSION)
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   245
#       RELEASE_DATE    Date of the Release Build
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   246
#       PATCH_DATE      Date the patch was created, if this is blank it
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   247
#                       will default to the RELEASE_DATE
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   248
#
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   249
RELEASE_MAJOR=  5
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   250
RELEASE_MINOR=  11
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   251
RELEASE=        $(RELEASE_MAJOR).$(RELEASE_MINOR)
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   252
VERSION=        SunOS Installation Development
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   253
PATCHID=        $(VERSION)
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   254
RELEASE_DATE=   release date not set
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   255
PATCH_DATE=     $(RELEASE_DATE)
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   256
RELEASE_CM=     "@($(POUND_SIGN))SunOS $(RELEASE) $(PATCHID) $(PATCH_DATE)"
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   257
DEV_CM=         "@($(POUND_SIGN))SunOS Internal Development: non-nightly build"
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   258
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   259
PROCESS_COMMENT=	@?mcs -d -a $(RELEASE_CM) -a $(DEV_CM)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   260
$(RELEASE_BUILD)PROCESS_COMMENT=	@?mcs -d -a $(RELEASE_CM)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   261
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   262
POST_PROCESS_O=		$(PROCESS_COMMENT) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   263
POST_PROCESS_A=
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   264
POST_PROCESS_SO=	$(PROCESS_COMMENT) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   265
POST_PROCESS=           $(PROCESS_COMMENT) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   266
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   267
$(RELEASE_BUILD)POST_PROCESS= $(PROCESS_COMMENT) $@ ;\
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   268
				strip $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   269
827
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   270
#
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   271
# The repositories will be created with these publisher settings.  To
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   272
# update an image to the resulting repositories, this must match the
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   273
# publisher name provided to "pkg set-publisher."
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   274
#
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   275
PKGPUBLISHER_REDIST=    install-nightly
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   276
PKGPUBLISHER_NONREDIST= install-extra
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   277
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   278
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   279
#	Default build rules which perform comment section post-processing.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   280
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   281
.c:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   282
	$(PURIFY) $(LINK.c) -o $@ $< $(LDLIBS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   283
	$(POST_PROCESS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   284
.c.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   285
	$(PURIFY) $(COMPILE.c) $(OUTPUT_OPTION) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   286
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   287
.c.a:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   288
	$(PURIFY) $(COMPILE.c) -o $% $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   289
	$(PROCESS_COMMENT) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   290
	$(AR) $(ARFLAGS) $@ $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   291
	$(RM) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   292
.cc:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   293
	$(PURIFY) $(LINK.cc) -o $@ $< $(LDLIBS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   294
	$(POST_PROCESS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   295
.cc.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   296
	$(PURIFY) $(COMPILE.cc) $(OUTPUT_OPTION) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   297
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   298
.cc.a:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   299
	$(PURIFY) $(COMPILE.cc) -o $% $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   300
	$(PROCESS_COMMENT) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   301
	$(AR) $(ARFLAGS) $@ $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   302
	$(RM) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   303
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   304
.C:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   305
	$(PURIFY) $(LINK.cc) -o $@ $< $(LDLIBS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   306
	$(POST_PROCESS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   307
.C.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   308
	$(PURIFY) $(COMPILE.cc) $(OUTPUT_OPTION) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   309
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   310
.C.a:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   311
	$(PURIFY) $(COMPILE.cc) -o $% $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   312
	$(PROCESS_COMMENT) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   313
	$(AR) $(ARFLAGS) $@ $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   314
	$(RM) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   315
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   316
.s.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   317
	$(COMPILE.s) -o $@ $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   318
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   319
.s.a:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   320
	$(COMPILE.s) -o $% $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   321
	$(PROCESS_COMMENT) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   322
	$(AR) $(ARFLAGS) $@ $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   323
	$(RM) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   324
.y:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   325
	$(YACC.y) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   326
	$(LINK.c) -o $@ y.tab.c $(LDLIBS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   327
	$(POST_PROCESS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   328
	$(RM) y.tab.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   329
.y.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   330
	$(YACC.y) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   331
	$(COMPILE.c) -o $@ y.tab.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   332
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   333
	$(RM) y.tab.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   334
.l:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   335
	$(RM) $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   336
	$(LEX.l) $< > $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   337
	$(LINK.c) -o $@ $*.c -ll $(LDLIBS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   338
	$(POST_PROCESS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   339
	$(RM) $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   340
.l.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   341
	$(RM) $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   342
	$(LEX.l) $< > $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   343
	$(COMPILE.c) -o $@ $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   344
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   345
	$(RM) $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   346
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   347
.po:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   348
	$(COMPILE.po) $<  > $<.i
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   349
	$(BUILD.po)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   350
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   351
.c.po:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   352
	$(COMPILE.po) $<  > $<.i
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   353
	$(BUILD.po)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   354
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   355
.ksh:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   356
	$(RM) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   357
	cat $< > $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   358
	chmod +x $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   359
.ksh~:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   360
	$(GET) $(GFLAGS) -p $< > $*.ksh
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   361
	cp $*.ksh $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   362
	chmod a+x $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   363
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   364
287
13cbbc65259c 3440 Need webserver for A/I support
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 272
diff changeset
   365
.SUFFIXES:    $(SUFFIXES) .po .ksh .ksh~