usr/src/Makefile.master
author Ethan Quach <Ethan.Quach@sun.com>
Tue, 31 May 2011 14:21:09 -0700
changeset 1160 6f7e708c38ec
parent 1121 670325895b19
child 1204 5c7590b24780
permissions -rw-r--r--
16257 Support for zones configuration and installation should be included in AI 7041915 TransferFiles ICT should support transferring a directory that is more than one level deep. 7049824 System installed via AI ends up with incorrect mountpoints for shared ZFS datasets
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
#
1026
91b57d590dfa 6998974 Deliver System Configuration Interactive Tool
Jan Damborsky <dambi@opensolaris.org>
parents: 961
diff changeset
    23
# Copyright (c) 2007, 2011, 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
1071
40064551d1eb 7035227 Install slim_source should be pkglint-clean and strive for pkgdepend cleanliness
Mary Ding <mary.ding@oracle.com>
parents: 1070
diff changeset
    74
GREP=			/usr/bin/grep
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    75
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    76
# 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
    77
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
    78
ONUSRLIBDIR=		$(ONREF_PROTO)/usr/lib
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    79
ONINCDIR=		$(ONREF_PROTO)/usr/include
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    80
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    81
# Common path definitions.
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    82
ADMINLIB=		/usr/snadm/lib
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    83
ROOTADMIN=		$(ROOT)/usr/snadm
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    84
ROOTADMINLIB=		$(ROOTADMIN)/lib
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    85
ROOTBIN=		$(ROOT)/bin
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    86
ROOTDC=			$(ROOT)/usr/share/distro_const
958
552c24933bed 7000990 The logging module needs a transfer_log method for the FileHandler class
Alok Aggarwal <alok.aggarwal@oracle.com>
parents: 940
diff changeset
    87
ROOTDC_PROFILE= $(ROOTDC)/profile
552c24933bed 7000990 The logging module needs a transfer_log method for the FileHandler class
Alok Aggarwal <alok.aggarwal@oracle.com>
parents: 940
diff changeset
    88
ROOTDC_SORT= $(ROOTDC)/sort
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    89
ROOTINC=		$(ROOT)/usr/include
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
    90
ROOTINCADMIN=		$(ROOTINC)/admin
1030
fba9ec006f29 7008130 Add support for converting sysidcfg
Evan Layton <evan.layton@oracle.com>
parents: 1026
diff changeset
    91
ROOTMAN1=		$(ROOTMAN)/man1
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    92
ROOTMAN1M=		$(ROOTMAN)/man1m
723
4c9eb65ee7b6 14371 Need to update the existing DC documentation
Glenn Lagasse <glenn.lagasse@sun.com>
parents: 663
diff changeset
    93
ROOTMAN4=		$(ROOTMAN)/man4
73
7cfbed527595 snap upgrade phase I
Ethan Quach <Ethan.Quach@Sun.COM>
parents: 57
diff changeset
    94
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
    95
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
    96
ROOTPYTHON=		$(ROOTUSRLIB)/python2.6
57
2f2f57bd9558 878 Python Based Transfer Module
moinakg
parents: 43
diff changeset
    97
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
    98
ROOTPYTHONVENDORINSTALL=	$(ROOTPYTHONVENDOR)/osol_install
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
    99
ROOTPYTHONVENDORINSTALLAI=	$(ROOTPYTHONVENDORINSTALL)/auto_install
1070
ef77609251f5 7021591 provide an implementation of TI/TD based on CUD
Drew Fisher <drew.fisher@oracle.com>
parents: 1065
diff changeset
   100
ROOTPYTHONVENDORINSTALLPROF=    $(ROOTPYTHONVENDORINSTALL)/profile
902
5b421d727e75 17161 - Implement Data Cache component for Installer
Darren Kenny <Darren.Kenny@Sun.COM>
parents: 901
diff changeset
   101
ROOTPYTHONVENDORSOLINSTALL=	$(ROOTPYTHONVENDOR)/solaris_install
1111
0c6c862af34f 7038421 Provide a boot checkpoint implementation based on pybootmgmt
Niall Power <niall@brawndo.local>
parents: 1090
diff changeset
   102
ROOTPYTHONVENDORSOLINSTALLBOOT =	$(ROOTPYTHONVENDORSOLINSTALL)/boot
1160
6f7e708c38ec 16257 Support for zones configuration and installation should be included in AI
Ethan Quach <Ethan.Quach@sun.com>
parents: 1121
diff changeset
   103
ROOTPYTHONVENDORSOLINSTALLCONFIGURATION =	$(ROOTPYTHONVENDORSOLINSTALL)/configuration
6f7e708c38ec 16257 Support for zones configuration and installation should be included in AI
Ethan Quach <Ethan.Quach@sun.com>
parents: 1121
diff changeset
   104
ROOTPYTHONVENDORSOLINSTALLDATACACHE=	$(ROOTPYTHONVENDORSOLINSTALL)/data_object
958
552c24933bed 7000990 The logging module needs a transfer_log method for the FileHandler class
Alok Aggarwal <alok.aggarwal@oracle.com>
parents: 940
diff changeset
   105
ROOTPYTHONVENDORINSTALLDC=	$(ROOTPYTHONVENDORSOLINSTALL)/distro_const
552c24933bed 7000990 The logging module needs a transfer_log method for the FileHandler class
Alok Aggarwal <alok.aggarwal@oracle.com>
parents: 940
diff changeset
   106
ROOTPYTHONVENDORINSTALLDCCHKPT= $(ROOTPYTHONVENDORINSTALLDC)/checkpoints
1087
96b6cc8130c5 6994260 Implement Auto-Installer Derived Manifests
Jack Schwartz <Jack.Schwartz@Oracle.COM>
parents: 1071
diff changeset
   107
ROOTPYTHONVENDORSOLINSTALLAI= \
96b6cc8130c5 6994260 Implement Auto-Installer Derived Manifests
Jack Schwartz <Jack.Schwartz@Oracle.COM>
parents: 1071
diff changeset
   108
		$(ROOTPYTHONVENDORSOLINSTALL)/auto_install
96b6cc8130c5 6994260 Implement Auto-Installer Derived Manifests
Jack Schwartz <Jack.Schwartz@Oracle.COM>
parents: 1071
diff changeset
   109
ROOTPYTHONVENDORSOLINSTALLAICHKPT= \
96b6cc8130c5 6994260 Implement Auto-Installer Derived Manifests
Jack Schwartz <Jack.Schwartz@Oracle.COM>
parents: 1071
diff changeset
   110
		$(ROOTPYTHONVENDORSOLINSTALLAI)/checkpoints
909
ab25dde8919d 16323 Implement Install Execution Engine
Karen Tung <karen.tung@oracle.com>
parents: 902
diff changeset
   111
ROOTPYTHONVENDORSOLINSTALLENGINE =	$(ROOTPYTHONVENDORSOLINSTALL)/engine
1041
7e44b50b28cb 6255:ICT - Use more flexible method, than install-finish to invoke ICT
Ginnie Wray<virginia.wray@oracle.com>
parents: 1030
diff changeset
   112
ROOTPYTHONVENDORSOLINSTALLENGINETEST =  $(ROOTPYTHONVENDORSOLINSTALLENGINE)/test
7e44b50b28cb 6255:ICT - Use more flexible method, than install-finish to invoke ICT
Ginnie Wray<virginia.wray@oracle.com>
parents: 1030
diff changeset
   113
ROOTPYTHONVENDORSOLINSTALLICT =         $(ROOTPYTHONVENDORSOLINSTALL)/ict
961
1db352e5e4c9 16260 We need a migration tool for going from Jumpstart profiles and rules files to AI manifest entries
Evan Layton <Evan.Layton@Sun.COM>
parents: 958
diff changeset
   114
ROOTPYTHONVENDORSOLINSTALLJS2AI=	$(ROOTPYTHONVENDORSOLINSTALL)/js2ai
1087
96b6cc8130c5 6994260 Implement Auto-Installer Derived Manifests
Jack Schwartz <Jack.Schwartz@Oracle.COM>
parents: 1071
diff changeset
   115
ROOTPYTHONVENDORSOLINSTALLMANIFEST=	$(ROOTPYTHONVENDORSOLINSTALL)/manifest
96b6cc8130c5 6994260 Implement Auto-Installer Derived Manifests
Jack Schwartz <Jack.Schwartz@Oracle.COM>
parents: 1071
diff changeset
   116
ROOTPYTHONVENDORSOLINSTALLMANINPUT= \
96b6cc8130c5 6994260 Implement Auto-Installer Derived Manifests
Jack Schwartz <Jack.Schwartz@Oracle.COM>
parents: 1071
diff changeset
   117
				$(ROOTPYTHONVENDORSOLINSTALL)/manifest_input
909
ab25dde8919d 16323 Implement Install Execution Engine
Karen Tung <karen.tung@oracle.com>
parents: 902
diff changeset
   118
ROOTPYTHONVENDORSOLINSTALLTARGET =	$(ROOTPYTHONVENDORSOLINSTALL)/target
1087
96b6cc8130c5 6994260 Implement Auto-Installer Derived Manifests
Jack Schwartz <Jack.Schwartz@Oracle.COM>
parents: 1071
diff changeset
   119
ROOTPYTHONVENDORSCI =	$(ROOTPYTHONVENDORSOLINSTALL)/sysconfig
96b6cc8130c5 6994260 Implement Auto-Installer Derived Manifests
Jack Schwartz <Jack.Schwartz@Oracle.COM>
parents: 1071
diff changeset
   120
ROOTPYTHONVENDORSCIPROF =	$(ROOTPYTHONVENDORSCI)/profile
96b6cc8130c5 6994260 Implement Auto-Installer Derived Manifests
Jack Schwartz <Jack.Schwartz@Oracle.COM>
parents: 1071
diff changeset
   121
ROOTPYTHONTERMUI=	$(ROOTPYTHONVENDOR)/terminalui
1070
ef77609251f5 7021591 provide an implementation of TI/TD based on CUD
Drew Fisher <drew.fisher@oracle.com>
parents: 1065
diff changeset
   122
ROOTPYTHONVENDORSOLINSTALLTARGETLIBADM=$(ROOTPYTHONVENDORSOLINSTALLTARGET)/libadm
ef77609251f5 7021591 provide an implementation of TI/TD based on CUD
Drew Fisher <drew.fisher@oracle.com>
parents: 1065
diff changeset
   123
ROOTPYTHONVENDORSOLINSTALLTARGETLIBBE = $(ROOTPYTHONVENDORSOLINSTALLTARGET)/libbe
ef77609251f5 7021591 provide an implementation of TI/TD based on CUD
Drew Fisher <drew.fisher@oracle.com>
parents: 1065
diff changeset
   124
ROOTPYTHONVENDORSOLINSTALLTARGETLIBDEVINFO = $(ROOTPYTHONVENDORSOLINSTALLTARGET)/libdevinfo
ef77609251f5 7021591 provide an implementation of TI/TD based on CUD
Drew Fisher <drew.fisher@oracle.com>
parents: 1065
diff changeset
   125
ROOTPYTHONVENDORSOLINSTALLTARGETLIBDISKMGT = $(ROOTPYTHONVENDORSOLINSTALLTARGET)/libdiskmgt
ef77609251f5 7021591 provide an implementation of TI/TD based on CUD
Drew Fisher <drew.fisher@oracle.com>
parents: 1065
diff changeset
   126
ROOTPYTHONVENDORSOLINSTALLTARGETLIBNVPAIR = $(ROOTPYTHONVENDORSOLINSTALLTARGET)/libnvpair
ef77609251f5 7021591 provide an implementation of TI/TD based on CUD
Drew Fisher <drew.fisher@oracle.com>
parents: 1065
diff changeset
   127
ROOTPYTHONVENDORSOLINSTALLTARGETSHADOW = $(ROOTPYTHONVENDORSOLINSTALLTARGET)/shadow
1121
670325895b19 7004610 Update Text Installer to use CUD
Karen Tung <karen.tung@oracle.com>
parents: 1111
diff changeset
   128
ROOTPYTHONVENDORSOLINSTALLTI=	$(ROOTPYTHONVENDORSOLINSTALL)/text_install
1070
ef77609251f5 7021591 provide an implementation of TI/TD based on CUD
Drew Fisher <drew.fisher@oracle.com>
parents: 1065
diff changeset
   129
ROOTPYTHONVENDORINSTALLTRANSFER =       $(ROOTPYTHONVENDORSOLINSTALL)/transfer
1090
6ac92c9d29e0 7038706 incorporate pybootmgmt
Sanjay Nadkarni <nadkarni@sun.com>
parents: 1087
diff changeset
   130
ROOTPYTHONVENDORBOOTMGMT=	$(ROOTPYTHONVENDOR)/bootmgmt
6ac92c9d29e0 7038706 incorporate pybootmgmt
Sanjay Nadkarni <nadkarni@sun.com>
parents: 1087
diff changeset
   131
ROOTPYTHONVENDORBOOTMGMTBKND=	$(ROOTPYTHONVENDORBOOTMGMT)/backend
6ac92c9d29e0 7038706 incorporate pybootmgmt
Sanjay Nadkarni <nadkarni@sun.com>
parents: 1087
diff changeset
   132
ROOTPYTHONVENDORBOOTMGMTBKNDAUTOGEN=	$(ROOTPYTHONVENDORBOOTMGMTBKND)/autogen
6ac92c9d29e0 7038706 incorporate pybootmgmt
Sanjay Nadkarni <nadkarni@sun.com>
parents: 1087
diff changeset
   133
ROOTPYTHONVENDORBOOTMGMTBKNDBOOTVARS=	$(ROOTPYTHONVENDORBOOTMGMTBKND)/bootvars
6ac92c9d29e0 7038706 incorporate pybootmgmt
Sanjay Nadkarni <nadkarni@sun.com>
parents: 1087
diff changeset
   134
ROOTPYTHONVENDORBOOTMGMTBKNDBOOTVARSSPARC=	$(ROOTPYTHONVENDORBOOTMGMTBKNDBOOTVARS)/sparc
6ac92c9d29e0 7038706 incorporate pybootmgmt
Sanjay Nadkarni <nadkarni@sun.com>
parents: 1087
diff changeset
   135
ROOTPYTHONVENDORBOOTMGMTBKNDBOOTVARSX86=	  $(ROOTPYTHONVENDORBOOTMGMTBKNDBOOTVARS)/x86
6ac92c9d29e0 7038706 incorporate pybootmgmt
Sanjay Nadkarni <nadkarni@sun.com>
parents: 1087
diff changeset
   136
ROOTPYTHONVENDORBOOTMGMTBKNDFW=	$(ROOTPYTHONVENDORBOOTMGMTBKND)/fw
6ac92c9d29e0 7038706 incorporate pybootmgmt
Sanjay Nadkarni <nadkarni@sun.com>
parents: 1087
diff changeset
   137
ROOTPYTHONVENDORBOOTMGMTBKNDLOADER=	$(ROOTPYTHONVENDORBOOTMGMTBKND)/loader
272
6ffbbcf6242a 3611 liborchestrator needs to be enhanced to support IPS based installs
Alok Aggarwal <Alok.Aggarwal@Sun.COM>
parents: 266
diff changeset
   138
ROOTAUTOINST=		$(ROOT)/usr/share/auto_install
1160
6f7e708c38ec 16257 Support for zones configuration and installation should be included in AI
Ethan Quach <Ethan.Quach@sun.com>
parents: 1121
diff changeset
   139
ROOTAUTOINSTMANIFEST=	$(ROOTAUTOINST)/manifest
855
f51b1eaaef28 7850 RFE would like support for static network instead of nwam config
Jan Damborsky <jan.damborsky@sun.com>
parents: 852
diff changeset
   140
ROOTAUTOINSTSCPROFILES=	$(ROOTAUTOINST)/sc_profiles
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   141
ROOTSBIN=		$(ROOT)/sbin
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   142
ROOTUSRBIN=		$(ROOT)/usr/bin
773
cc0753f47d02 6367 Provide a text-installer for opensolaris
Keith Mitchell <keith.mitchell@sun.com>
parents: 723
diff changeset
   143
ROOTUSRSHARE=		$(ROOT)/usr/share
852
d4a0239a3745 15678 /etc/default/kbd is to be obsoleted by 6944480, installers need to be accommodated
Jan Damborsky <jan.damborsky@sun.com>
parents: 827
diff changeset
   144
ROOTUSRSHAREINSTALL=	$(ROOTUSRSHARE)/install
1026
91b57d590dfa 6998974 Deliver System Configuration Interactive Tool
Jan Damborsky <dambi@opensolaris.org>
parents: 961
diff changeset
   145
ROOTUSRSHARESC=		$(ROOTUSRSHARE)/sysconfig
91b57d590dfa 6998974 Deliver System Configuration Interactive Tool
Jan Damborsky <dambi@opensolaris.org>
parents: 961
diff changeset
   146
ROOTUSRSHARESCHELP=	$(ROOTUSRSHARESC)/help
91b57d590dfa 6998974 Deliver System Configuration Interactive Tool
Jan Damborsky <dambi@opensolaris.org>
parents: 961
diff changeset
   147
ROOTUSRSHARESCHELPC=	$(ROOTUSRSHARESCHELP)/C
91b57d590dfa 6998974 Deliver System Configuration Interactive Tool
Jan Damborsky <dambi@opensolaris.org>
parents: 961
diff changeset
   148
ROOTUSRSHARESCXSLT=	$(ROOTUSRSHARESC)/xslt
773
cc0753f47d02 6367 Provide a text-installer for opensolaris
Keith Mitchell <keith.mitchell@sun.com>
parents: 723
diff changeset
   149
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
   150
ROOTUSRSHARETIHELP=	$(ROOTUSRSHARETI)/help
1026
91b57d590dfa 6998974 Deliver System Configuration Interactive Tool
Jan Damborsky <dambi@opensolaris.org>
parents: 961
diff changeset
   151
ROOTUSRSHARETIHELPC=	$(ROOTUSRSHARETIHELP)/C
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   152
ROOTUSRLIB=		$(ROOT)/usr/lib
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   153
ROOTUSRLIBMSGS=		$(ROOTUSRLIB)/locale/C/LC_MESSAGES
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   154
ROOTUSRSBIN=		$(ROOT)/usr/sbin
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   155
ROOTVAR=		$(ROOT)/var
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   156
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   157
INSTMSGS=		$(MSG_DOMAIN:%=$(ROOTUSRLIBMSGS)/%.po)
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   158
ROOTSBINPROG=		$(PROG:%=$(ROOTSBIN)/%)
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   159
ROOTUSRINCLEXP=		$(EXPHDRS:%=$(ROOTINCADMIN)/%)
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   160
ROOTUSRSBINPROG=	$(PROG:%=$(ROOTUSRSBIN)/%)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   161
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   162
FILEMODE=		644
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   163
EXECMODE=		755
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   164
DIRMODE=		755
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   165
OWNER=			bin
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   166
GROUP=			bin
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   167
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   168
# Borrowed from Makefile.master in NSE env SunOSint.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   169
# 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
   170
# 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
   171
# 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
   172
# 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
   173
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   174
CH:sh=					/usr/bin/echo \\043
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   175
NOT_RELEASE_BUILD=
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   176
RELEASE_BUILD:sh=			/usr/bin/echo \\043
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   177
$(RELEASE_BUILD)NOT_RELEASE_BUILD:sh=	/usr/bin/echo \\043
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   178
$(RELEASE_BUILD)ROOT=			/proto
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   179
$(NOT_RELEASE_BUILD)ROOT:sh=		/usr/bin/echo ${ROOT}
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   180
73
7cfbed527595 snap upgrade phase I
Ethan Quach <Ethan.Quach@Sun.COM>
parents: 57
diff changeset
   181
CP_P.file=	$(RM) $@; $(CP) -p $< $@; $(CHMOD) $(FILEMODE) $@
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   182
INS.file=	$(RM) $@; $(INS) -s -m $(FILEMODE) -f $(@D) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   183
$(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
   184
INS.exec=	$(RM) $@; $(INS) -s -m $(EXECMODE) -f $(@D) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   185
$(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
   186
INS.dir=	$(INS) -d -m $(DIRMODE) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   187
$(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
   188
INS.rename=	$(INS.file); $(MV) $(@D)/$(<F) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   189
INSTALL=	$(INS.file)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   190
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   191
MACH=	$(TARGET_MACH:-%=%)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   192
ARCH=	$(TARGET_ARCH:-%=%)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   193
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   194
# Message catalog build rule for packaging commands.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   195
BUILD.po= $(XGETTEXT) -d msg.$$$$ $(XGETFLAGS) $<.i ;\
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   196
	$(CAT) msg.$$$$.po | sed "/^domain/d" > $@ ;\
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   197
	$(RM) msg.$$$$.po $<.i
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   198
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   199
POFILE=         $(PROG).po
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   200
MSGROOT=        $(ROOT)/catalog
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   201
MSGDOMAIN=      $(MSGROOT)/$(TEXT_DOMAIN)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   202
CLOBBERFILES += $(POFILE) $(POFILES)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   203
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   204
# 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
   205
# 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
   206
# conditional on CFLAGS, but that would require significant Makefile
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   207
# effort.)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   208
COMPILE.po=	$(CC) $(CFLAGS) \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   209
		    $(CPPFLAGS:\"$(TEXT_DOMAIN)\"=$(TEXT_DOMAIN)) -E -C
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   210
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   211
COMPILE.c=	$(CC) $(CFLAGS) $(CPPFLAGS) -c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   212
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   213
# Set CFLAGS and CCFLAGS and reset below if release build.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   214
# Only optimize for release builds
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   215
# 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
   216
# that is built with "CC". This suppresses the automatic generation
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   217
# 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
   218
# included in libraries and executables which would be inappropriate
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   219
# for use outside of SWAN (that is, customer sites)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   220
CFLAGS:sh =if [ "`uname -p`" = "sparc" ]; then \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   221
		echo "-xc99=%none -Wa,-xcg92" ; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   222
          else  echo "-xc99=%none"; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   223
          fi
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   224
CCFLAGS:sh =if [ "`uname -p`" = "sparc" ]; then \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   225
		echo "-Qoption fbe -xcg92" ; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   226
          else  echo ""; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   227
          fi
266
ef9d9f2ade3f 2082 Removal of unused spmi libraries
Dave Miner <dminer@opensolaris.org>
parents: 263
diff changeset
   228
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   229
$(RELEASE_BUILD)CFLAGS:sh =if [ "`uname -p`" = "sparc" ]; then \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   230
		echo "-xc99=%none -O -Wa,-xcg92" ; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   231
          else  echo "-xc99=%none -O"; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   232
          fi
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   233
 
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   234
$(RELEASE_BUILD)CCFLAGS:sh =if [ "`uname -p`" = "sparc" ]; then \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   235
		echo "-O -Qoption fbe -xcg92" ; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   236
          else  echo "-O"; \
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   237
          fi
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   238
CCFLAGS += -norunpath -compat=4
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   239
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   240
# CPPFLAGS.master allows values to be prepended to CPPFLAGS.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   241
CPPFLAGS.master= -I$(ROOT)/usr/include -I$(ONINCDIR)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   242
CPPFLAGS= $(CPPFLAGS.master)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   243
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   244
# 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
   245
# processing files. Normally, these do stripping of the comment section
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   246
# automatically.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   247
#    RELEASE_CM:	Should be edited if std format changes.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   248
#    POST_PROCESS_O:	Post-processing for `.o' files.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   249
#    POST_PROCESS_A:	Post-processing for `.a' files (currently null).
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   250
#    POST_PROCESS_SO:	Post-processing for `.so' files.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   251
#    POST_PROCESS:	Post-processing for executable files (no suffix).
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   252
# 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
   253
# used with the file name to be processed following.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   254
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   255
# 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
   256
# of the release comment string.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   257
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   258
#	If this is a development build:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   259
#		delete the comment section (mcs -d)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   260
#		add the standard comment (mcs -a $(RELEASE_CM))
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   261
#		add the development specific comment (mcs -a $(DEV_CM))
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   262
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   263
#	If this is a release build:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   264
#		delete the comment section (mcs -d)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   265
#		add the standard comment (mcs -a $(RELEASE_CM))
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
#	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
   268
#	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
   269
#	even when escaped of quoted.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   270
#
827
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   271
POUND_SIGN:sh=	/usr/bin/echo \\043
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   272
827
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   273
# 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
   274
# 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
   275
#
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   276
#       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
   277
#       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
   278
#       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
   279
#       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
   280
#       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
   281
#                       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
   282
#                       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
   283
#       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
   284
#       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
   285
#                       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
   286
#
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   287
RELEASE_MAJOR=  5
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   288
RELEASE_MINOR=  11
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   289
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
   290
VERSION=        SunOS Installation Development
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   291
PATCHID=        $(VERSION)
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   292
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
   293
PATCH_DATE=     $(RELEASE_DATE)
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   294
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
   295
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
   296
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   297
PROCESS_COMMENT=	@?mcs -d -a $(RELEASE_CM) -a $(DEV_CM)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   298
$(RELEASE_BUILD)PROCESS_COMMENT=	@?mcs -d -a $(RELEASE_CM)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   299
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   300
POST_PROCESS_O=		$(PROCESS_COMMENT) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   301
POST_PROCESS_A=
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   302
POST_PROCESS_SO=	$(PROCESS_COMMENT) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   303
POST_PROCESS=           $(PROCESS_COMMENT) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   304
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   305
$(RELEASE_BUILD)POST_PROCESS= $(PROCESS_COMMENT) $@ ;\
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   306
				strip $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   307
827
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   308
#
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   309
# 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
   310
# 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
   311
# 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
   312
#
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   313
PKGPUBLISHER_REDIST=    install-nightly
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   314
PKGPUBLISHER_NONREDIST= install-extra
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   315
a522c6d6cba1 15784 slim_source gate should build IPS packages by default
David Miner <dminer@opensolaris.org>
parents: 773
diff changeset
   316
0
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   317
#	Default build rules which perform comment section post-processing.
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   318
#
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   319
.c:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   320
	$(PURIFY) $(LINK.c) -o $@ $< $(LDLIBS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   321
	$(POST_PROCESS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   322
.c.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   323
	$(PURIFY) $(COMPILE.c) $(OUTPUT_OPTION) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   324
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   325
.c.a:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   326
	$(PURIFY) $(COMPILE.c) -o $% $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   327
	$(PROCESS_COMMENT) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   328
	$(AR) $(ARFLAGS) $@ $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   329
	$(RM) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   330
.cc:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   331
	$(PURIFY) $(LINK.cc) -o $@ $< $(LDLIBS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   332
	$(POST_PROCESS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   333
.cc.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   334
	$(PURIFY) $(COMPILE.cc) $(OUTPUT_OPTION) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   335
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   336
.cc.a:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   337
	$(PURIFY) $(COMPILE.cc) -o $% $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   338
	$(PROCESS_COMMENT) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   339
	$(AR) $(ARFLAGS) $@ $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   340
	$(RM) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   341
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   342
.C:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   343
	$(PURIFY) $(LINK.cc) -o $@ $< $(LDLIBS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   344
	$(POST_PROCESS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   345
.C.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   346
	$(PURIFY) $(COMPILE.cc) $(OUTPUT_OPTION) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   347
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   348
.C.a:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   349
	$(PURIFY) $(COMPILE.cc) -o $% $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   350
	$(PROCESS_COMMENT) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   351
	$(AR) $(ARFLAGS) $@ $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   352
	$(RM) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   353
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   354
.s.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   355
	$(COMPILE.s) -o $@ $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   356
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   357
.s.a:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   358
	$(COMPILE.s) -o $% $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   359
	$(PROCESS_COMMENT) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   360
	$(AR) $(ARFLAGS) $@ $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   361
	$(RM) $%
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   362
.y:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   363
	$(YACC.y) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   364
	$(LINK.c) -o $@ y.tab.c $(LDLIBS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   365
	$(POST_PROCESS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   366
	$(RM) y.tab.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   367
.y.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   368
	$(YACC.y) $<
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   369
	$(COMPILE.c) -o $@ y.tab.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   370
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   371
	$(RM) y.tab.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   372
.l:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   373
	$(RM) $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   374
	$(LEX.l) $< > $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   375
	$(LINK.c) -o $@ $*.c -ll $(LDLIBS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   376
	$(POST_PROCESS)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   377
	$(RM) $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   378
.l.o:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   379
	$(RM) $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   380
	$(LEX.l) $< > $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   381
	$(COMPILE.c) -o $@ $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   382
	$(POST_PROCESS_O)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   383
	$(RM) $*.c
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   384
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   385
.po:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   386
	$(COMPILE.po) $<  > $<.i
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   387
	$(BUILD.po)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   388
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   389
.c.po:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   390
	$(COMPILE.po) $<  > $<.i
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   391
	$(BUILD.po)
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   392
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   393
.ksh:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   394
	$(RM) $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   395
	cat $< > $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   396
	chmod +x $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   397
.ksh~:
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   398
	$(GET) $(GFLAGS) -p $< > $*.ksh
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   399
	cp $*.ksh $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   400
	chmod a+x $@
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   401
87f703f8362e OpenSolaris files for Slim Install
"mw145384 <moriah.waterland@sun.com>"
parents:
diff changeset
   402
287
13cbbc65259c 3440 Need webserver for A/I support
Clay Baenziger <ClayB@OpenSolaris.ORG>
parents: 272
diff changeset
   403
.SUFFIXES:    $(SUFFIXES) .po .ksh .ksh~