xref: /titanic_44/usr/src/cmd/Makefile.cmd (revision e3320f40ba20e6851e73a3237eedf089700bf001)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
51ae08745Sheppo# Common Development and Distribution License (the "License").
61ae08745Sheppo# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22ae115bc7Smrj# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate# Definitions common to command source.
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate# include global definitions; SRC should be defined in the shell.
307c478bd9Sstevel@tonic-gate# SRC is needed until RFE 1026993 is implemented.
317c478bd9Sstevel@tonic-gate
327c478bd9Sstevel@tonic-gateinclude $(SRC)/Makefile.master
337c478bd9Sstevel@tonic-gate
347c478bd9Sstevel@tonic-gateLN=		ln
357c478bd9Sstevel@tonic-gateCP=		cp
367c478bd9Sstevel@tonic-gateSH=		sh
377c478bd9Sstevel@tonic-gateECHO=		echo
387c478bd9Sstevel@tonic-gateMKDIR=		mkdir
397c478bd9Sstevel@tonic-gateTOUCH=		touch
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gateFILEMODE=	0555
427c478bd9Sstevel@tonic-gateLIBFILEMODE=	0444
437c478bd9Sstevel@tonic-gateXPG4=		$(XPG4PROG:%=%.xpg4)
447c478bd9Sstevel@tonic-gateXPG6=		$(XPG6PROG:%=%.xpg6)
457c478bd9Sstevel@tonic-gate
467c478bd9Sstevel@tonic-gateKRB5DIR=	$(ROOT)/usr
477c478bd9Sstevel@tonic-gateKRB5BIN=	$(KRB5DIR)/bin
487c478bd9Sstevel@tonic-gateKRB5SBIN=	$(KRB5DIR)/sbin
497c478bd9Sstevel@tonic-gateKRB5LIB=	$(KRB5DIR)/lib/krb5
507c478bd9Sstevel@tonic-gateKRB5RUNPATH=	/usr/lib/krb5
517c478bd9Sstevel@tonic-gateGSSRUNPATH=	/usr/lib/gss
527c478bd9Sstevel@tonic-gate
537c478bd9Sstevel@tonic-gate
547c478bd9Sstevel@tonic-gateROOTBIN=		$(ROOT)/usr/bin
557c478bd9Sstevel@tonic-gateROOTLIB=		$(ROOT)/usr/lib
567c478bd9Sstevel@tonic-gateROOTLIBSVCBIN=		$(ROOT)/lib/svc/bin
577c478bd9Sstevel@tonic-gateROOTLIBSVCMETHOD=	$(ROOT)/lib/svc/method
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gateROOTSHLIB=	$(ROOT)/usr/share/lib
607c478bd9Sstevel@tonic-gateROOTSBIN=	$(ROOT)/sbin
617c478bd9Sstevel@tonic-gateROOTUSRSBIN=	$(ROOT)/usr/sbin
627c478bd9Sstevel@tonic-gateROOTETC=	$(ROOT)/etc
637c478bd9Sstevel@tonic-gateROOTCCSBIN=	$(ROOT)/usr/ccs/bin
647c478bd9Sstevel@tonic-gateROOTUSRKVM=	$(ROOT)/usr/kvm
657c478bd9Sstevel@tonic-gateROOTXPG4=	$(ROOT)/usr/xpg4
667c478bd9Sstevel@tonic-gateROOTXPG4BIN=	$(ROOT)/usr/xpg4/bin
677c478bd9Sstevel@tonic-gateROOTXPG4BIN32=	$(ROOTXPG4BIN)/$(MACH32)
687c478bd9Sstevel@tonic-gateROOTXPG4BIN64=	$(ROOTXPG4BIN)/$(MACH64)
697c478bd9Sstevel@tonic-gateROOTXPG6=	$(ROOT)/usr/xpg6
707c478bd9Sstevel@tonic-gateROOTXPG6BIN=	$(ROOT)/usr/xpg6/bin
717c478bd9Sstevel@tonic-gateROOTLOCALEDEF=	$(ROOT)/usr/lib/localedef
727c478bd9Sstevel@tonic-gateROOTCHARMAP=	$(ROOTLOCALEDEF)/charmap
737c478bd9Sstevel@tonic-gateROOTI18NEXT=	$(ROOTLOCALEDEF)/extensions
747c478bd9Sstevel@tonic-gateROOTI18NEXT64=	$(ROOTLOCALEDEF)/extensions/$(MACH64)
757c478bd9Sstevel@tonic-gateROOTBIN32=	$(ROOTBIN)/$(MACH32)
767c478bd9Sstevel@tonic-gateROOTBIN64=	$(ROOTBIN)/$(MACH64)
777c478bd9Sstevel@tonic-gateROOTCMDDIR64=	$(ROOTCMDDIR)/$(MACH64)
787c478bd9Sstevel@tonic-gateROOTLIB64=	$(ROOTLIB)/$(MACH64)
797c478bd9Sstevel@tonic-gateROOTUSRSBIN32=	$(ROOTUSRSBIN)/$(MACH32)
807c478bd9Sstevel@tonic-gateROOTUSRSBIN64=	$(ROOTUSRSBIN)/$(MACH64)
817c478bd9Sstevel@tonic-gateROOTMAN1=	$(ROOT)/usr/share/man/man1
827c478bd9Sstevel@tonic-gateROOTMAN1M=	$(ROOT)/usr/share/man/man1m
837c478bd9Sstevel@tonic-gateROOTMAN3=	$(ROOT)/usr/share/man/man3
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate#
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gate# Like ROOTLIBDIR in $(SRC)/Makefile.lib, any lower-level Makefiles that
887c478bd9Sstevel@tonic-gate# put their binaries in a non-standard location should reset this and use
897c478bd9Sstevel@tonic-gate# $(ROOTCMD) in their `install' target. By default we set this to a bogus
907c478bd9Sstevel@tonic-gate# value so that it will not conflict with any of the other values already
917c478bd9Sstevel@tonic-gate# defined in this Makefile.
927c478bd9Sstevel@tonic-gate#
937c478bd9Sstevel@tonic-gateROOTCMDDIR=	$(ROOT)/__nonexistent_directory__
947c478bd9Sstevel@tonic-gate
957c478bd9Sstevel@tonic-gateROOTSHAUDIO=	$(ROOT)/usr/share/audio
967c478bd9Sstevel@tonic-gateROOTAUDIOSAMP=	$(ROOTSHAUDIO)/samples
977c478bd9Sstevel@tonic-gateROOTAUDIOSAMPAU=$(ROOTAUDIOSAMP)/au
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gate#
1007c478bd9Sstevel@tonic-gate# Begin /usr/sfw freeware rules for freeware that has "External"
1017c478bd9Sstevel@tonic-gate# taxonomy stability level.
1027c478bd9Sstevel@tonic-gate#
1037c478bd9Sstevel@tonic-gateROOTSFW=	$(ROOT)/usr/sfw
1047c478bd9Sstevel@tonic-gateROOTSFWBIN=	$(ROOT)/usr/sfw/bin
1057c478bd9Sstevel@tonic-gateROOTSFWSBIN=	$(ROOT)/usr/sfw/sbin
1067c478bd9Sstevel@tonic-gateROOTSFWSHARE=	$(ROOT)/usr/sfw/share
1077c478bd9Sstevel@tonic-gateROOTSFWSHSRC=	$(ROOT)/usr/sfw/share/src
1087c478bd9Sstevel@tonic-gateROOTSFWINFO=	$(ROOT)/usr/sfw/share/info
1097c478bd9Sstevel@tonic-gateROOTSFWINCLUDE=	$(ROOT)/usr/sfw/include
1107c478bd9Sstevel@tonic-gateROOTSFWLIB=	$(ROOT)/usr/sfw/lib
1117c478bd9Sstevel@tonic-gateROOTLIBEXEC=	$(ROOT)/usr/sfw/libexec
1127c478bd9Sstevel@tonic-gateROOTSFWMAN=	$(ROOT)/usr/sfw/share/man
1137c478bd9Sstevel@tonic-gateROOTSFWMANN=	$(ROOT)/usr/sfw/share/mann
1147c478bd9Sstevel@tonic-gateROOTSFWMAN1=	$(ROOT)/usr/sfw/share/man/man1
1157c478bd9Sstevel@tonic-gateROOTSFWMAN1M=	$(ROOT)/usr/sfw/share/man/man1m
1167c478bd9Sstevel@tonic-gateROOTSFWMAN3=	$(ROOT)/usr/sfw/share/man/man3
1177c478bd9Sstevel@tonic-gateROOTSFWMAN5=	$(ROOT)/usr/sfw/share/man/man5
1187c478bd9Sstevel@tonic-gateROOTSFWMAN7=	$(ROOT)/usr/sfw/share/man/man7
1197c478bd9Sstevel@tonic-gate#
1207c478bd9Sstevel@tonic-gate# End /usr/sfw freeware rules
1217c478bd9Sstevel@tonic-gate#
1227c478bd9Sstevel@tonic-gate
1237c478bd9Sstevel@tonic-gateISAEXEC=	$(ROOT)/usr/lib/isaexec
1247c478bd9Sstevel@tonic-gatePLATEXEC=	$(ROOT)/usr/lib/platexec
1257c478bd9Sstevel@tonic-gate
1267c478bd9Sstevel@tonic-gateNX_MAP_i386=	$(SRC)/cmd/mapfile_noexdata
1277c478bd9Sstevel@tonic-gateNX_MAP_sparc=
1287c478bd9Sstevel@tonic-gateNX_MAP=		$(NX_MAP_$(MACH))
1297c478bd9Sstevel@tonic-gateNES_MAPFILE=	$(SRC)/cmd/mapfile_noexstk $(NX_MAP)
1307c478bd9Sstevel@tonic-gate
1317c478bd9Sstevel@tonic-gateLDLIBS =	$(LDLIBS.cmd)
1327c478bd9Sstevel@tonic-gate
1337c478bd9Sstevel@tonic-gateLDFLAGS.cmd = \
1348ad60789Srie	$(ENVLDFLAGS1) $(ENVLDFLAGS2) $(ENVLDFLAGS3) \
1357c478bd9Sstevel@tonic-gate	$(NES_MAPFILE:%=-M%) $(PGA_MAPFILE:%=-M%)
1367c478bd9Sstevel@tonic-gate
1377c478bd9Sstevel@tonic-gateLDFLAGS =	$(LDFLAGS.cmd)
1387c478bd9Sstevel@tonic-gate
1397c478bd9Sstevel@tonic-gateLINTFLAGS=	-axsm
1407c478bd9Sstevel@tonic-gateLINTFLAGS64=	-axsm -Xarch=$(MACH64:sparcv9=v9)
1417c478bd9Sstevel@tonic-gateLINTOUT=	lint.out
1427c478bd9Sstevel@tonic-gate
1437c478bd9Sstevel@tonic-gateKRB5PROG=	$(PROG:%=$(KRB5BIN)/%)
1447c478bd9Sstevel@tonic-gateKRB5SBINPROG=	$(PROG:%=$(KRB5SBIN)/%)
1457c478bd9Sstevel@tonic-gateKRB5LIBPROG=	$(PROG:%=$(KRB5LIB)/%)
1467c478bd9Sstevel@tonic-gate
1477c478bd9Sstevel@tonic-gateROOTPROG=	$(PROG:%=$(ROOTBIN)/%)
1487c478bd9Sstevel@tonic-gateROOTCMD=	$(PROG:%=$(ROOTCMDDIR)/%)
1497c478bd9Sstevel@tonic-gateROOTSHFILES=	$(SHFILES:%=$(ROOTBIN)/%)
1507c478bd9Sstevel@tonic-gateROOTLIBPROG=	$(PROG:%=$(ROOTLIB)/%)
1517c478bd9Sstevel@tonic-gateROOTLIBSHFILES= $(SHFILES:%=$(ROOTLIB)/%)
1527c478bd9Sstevel@tonic-gateROOTSHLIBPROG=	$(PROG:%=$(ROOTSHLIB)/%)
1537c478bd9Sstevel@tonic-gateROOTSBINPROG=	$(PROG:%=$(ROOTSBIN)/%)
1547c478bd9Sstevel@tonic-gateROOTUSRSBINPROG=$(PROG:%=$(ROOTUSRSBIN)/%)
1557c478bd9Sstevel@tonic-gateROOTETCPROG=	$(PROG:%=$(ROOTETC)/%)
1567c478bd9Sstevel@tonic-gateROOTCCSBINPROG=	$(PROG:%=$(ROOTCCSBIN)/%)
1577c478bd9Sstevel@tonic-gateROOTUSRKVMPROG=	$(PROG:%=$(ROOTUSRKVM)/%)
1587c478bd9Sstevel@tonic-gateROOTXPG4PROG=	$(XPG4PROG:%=$(ROOTXPG4BIN)/%)
1597c478bd9Sstevel@tonic-gateROOTXPG4PROG32=	$(XPG4PROG:%=$(ROOTXPG4BIN32)/%)
1607c478bd9Sstevel@tonic-gateROOTXPG4PROG64=	$(XPG4PROG:%=$(ROOTXPG4BIN64)/%)
1617c478bd9Sstevel@tonic-gateROOTXPG6PROG=	$(XPG6PROG:%=$(ROOTXPG6BIN)/%)
1627c478bd9Sstevel@tonic-gateROOTLOCALEPROG=	$(PROG:%=$(ROOTLOCALEDEF)/%)
1637c478bd9Sstevel@tonic-gateROOTPROG64=	$(PROG:%=$(ROOTBIN64)/%)
1647c478bd9Sstevel@tonic-gateROOTPROG32=	$(PROG:%=$(ROOTBIN32)/%)
1657c478bd9Sstevel@tonic-gateROOTCMD64=	$(PROG:%=$(ROOTCMDDIR64)/%)
1667c478bd9Sstevel@tonic-gateROOTUSRSBINPROG32=	$(PROG:%=$(ROOTUSRSBIN32)/%)
1677c478bd9Sstevel@tonic-gateROOTUSRSBINPROG64=	$(PROG:%=$(ROOTUSRSBIN64)/%)
1687c478bd9Sstevel@tonic-gateROOTMAN1FILES=	$(MAN1FILES:%=$(ROOTMAN1)/%)
1697c478bd9Sstevel@tonic-gate$(ROOTMAN1FILES) := FILEMODE= 444
1707c478bd9Sstevel@tonic-gate$(ROOTMAN1FILES) := OWNER= root
1717c478bd9Sstevel@tonic-gate$(ROOTMAN1FILES) := GROUP= bin
1727c478bd9Sstevel@tonic-gateROOTMAN1MFILES=	$(MAN1MFILES:%=$(ROOTMAN1M)/%)
1737c478bd9Sstevel@tonic-gate$(ROOTMAN1MFILES) := FILEMODE= 444
1747c478bd9Sstevel@tonic-gate$(ROOTMAN1MFILES) := OWNER= root
1757c478bd9Sstevel@tonic-gate$(ROOTMAN1MFILES) := GROUP= bin
1767c478bd9Sstevel@tonic-gateROOTMAN3FILES=	$(MAN3FILES:%=$(ROOTMAN3)/%)
1777c478bd9Sstevel@tonic-gate$(ROOTMAN3FILES) := FILEMODE= 444
1787c478bd9Sstevel@tonic-gate$(ROOTMAN3FILES) := OWNER= root
1797c478bd9Sstevel@tonic-gate$(ROOTMAN3FILES) := GROUP= bin
1807c478bd9Sstevel@tonic-gate
1817c478bd9Sstevel@tonic-gateROOTETCDEFAULT=	$(ROOTETC)/default
182a7872406SmeemROOTETCDEFAULTFILES=	$(DEFAULTFILES:%.dfl=$(ROOTETCDEFAULT)/%)
1837c478bd9Sstevel@tonic-gate$(ROOTETCDEFAULTFILES) :=	OWNER = root
1847c478bd9Sstevel@tonic-gate$(ROOTETCDEFAULTFILES) :=	GROUP = sys
185a7872406Smeem$(ROOTETCDEFAULTFILES) :=	FILEMODE = 0644
1867c478bd9Sstevel@tonic-gate
1877c478bd9Sstevel@tonic-gate#
1887c478bd9Sstevel@tonic-gate# Directories for smf(5) service manifests and profiles.
1897c478bd9Sstevel@tonic-gate#
1907c478bd9Sstevel@tonic-gateROOTVARSVC=			$(ROOT)/var/svc
1917c478bd9Sstevel@tonic-gate
1927c478bd9Sstevel@tonic-gateROOTVARSVCMANIFEST=		$(ROOTVARSVC)/manifest
1937c478bd9Sstevel@tonic-gateROOTVARSVCPROFILE=		$(ROOTVARSVC)/profile
1947c478bd9Sstevel@tonic-gate
1957c478bd9Sstevel@tonic-gateROOTSVCMILESTONE=		$(ROOTVARSVCMANIFEST)/milestone
1967c478bd9Sstevel@tonic-gateROOTSVCDEVICE=			$(ROOTVARSVCMANIFEST)/device
1977c478bd9Sstevel@tonic-gateROOTSVCSYSTEM=			$(ROOTVARSVCMANIFEST)/system
1987c478bd9Sstevel@tonic-gateROOTSVCSYSTEMDEVICE=		$(ROOTSVCSYSTEM)/device
1997c478bd9Sstevel@tonic-gateROOTSVCSYSTEMFILESYSTEM=	$(ROOTSVCSYSTEM)/filesystem
2007c478bd9Sstevel@tonic-gateROOTSVCSYSTEMSECURITY=		$(ROOTSVCSYSTEM)/security
2017c478bd9Sstevel@tonic-gateROOTSVCNETWORK=			$(ROOTVARSVCMANIFEST)/network
2027c478bd9Sstevel@tonic-gateROOTSVCNETWORKLDAP=		$(ROOTSVCNETWORK)/ldap
2037c478bd9Sstevel@tonic-gateROOTSVCNETWORKNFS=		$(ROOTSVCNETWORK)/nfs
2047c478bd9Sstevel@tonic-gateROOTSVCNETWORKNIS=		$(ROOTSVCNETWORK)/nis
205a192e900SamaguireROOTSVCNETWORKROUTING=		$(ROOTSVCNETWORK)/routing
2067c478bd9Sstevel@tonic-gateROOTSVCNETWORKRPC=		$(ROOTSVCNETWORK)/rpc
2077c478bd9Sstevel@tonic-gateROOTSVCNETWORKSECURITY=		$(ROOTSVCNETWORK)/security
208abf1b5ddSkaisROOTSVCNETWORKSSL=		$(ROOTSVCNETWORK)/ssl
209*e3320f40SmarkfenROOTSVCNETWORKIPSEC=		$(ROOTSVCNETWORK)/ipsec
2106185db85SdougmROOTSVCNETWORKSHARES=		$(ROOTSVCNETWORK)/shares
2117c478bd9Sstevel@tonic-gateROOTSVCPLATFORM=		$(ROOTVARSVCMANIFEST)/platform
2127c478bd9Sstevel@tonic-gateROOTSVCPLATFORMSUN4U=		$(ROOTSVCPLATFORM)/sun4u
2131ae08745SheppoROOTSVCPLATFORMSUN4V=		$(ROOTSVCPLATFORM)/sun4v
2147c478bd9Sstevel@tonic-gateROOTSVCAPPLICATION=		$(ROOTVARSVCMANIFEST)/application
2157c478bd9Sstevel@tonic-gateROOTSVCAPPLICATIONMANAGEMENT=	$(ROOTSVCAPPLICATION)/management
2167c478bd9Sstevel@tonic-gateROOTSVCAPPLICATIONSECURITY=	$(ROOTSVCAPPLICATION)/security
2177c478bd9Sstevel@tonic-gateROOTSVCAPPLICATIONPRINT=	$(ROOTSVCAPPLICATION)/print
2187c478bd9Sstevel@tonic-gate
2197c478bd9Sstevel@tonic-gate#
2207c478bd9Sstevel@tonic-gate# Commands Makefiles delivering a manifest are expected to define MANIFEST.
2217c478bd9Sstevel@tonic-gate#
2227c478bd9Sstevel@tonic-gate# Like ROOTCMDDIR, any lower-level Makefiles that put their manifests in a
2237c478bd9Sstevel@tonic-gate# subdirectory of the manifest directories listed above should reset
2247c478bd9Sstevel@tonic-gate# ROOTMANIFESTDIR and use it in their `install' target. By default we set this
2257c478bd9Sstevel@tonic-gate# to a bogus value so that it will not conflict with any of the other values
2267c478bd9Sstevel@tonic-gate# already  defined in this Makefile.
2277c478bd9Sstevel@tonic-gate#
2287c478bd9Sstevel@tonic-gate# The manifest validation of the $SRC/cmd check target is also derived from a
2297c478bd9Sstevel@tonic-gate# valid MANIFEST setting.
2307c478bd9Sstevel@tonic-gate#
2317c478bd9Sstevel@tonic-gateROOTMANIFESTDIR=	$(ROOTVARSVCMANIFEST)/__nonexistent_directory__
2327c478bd9Sstevel@tonic-gateROOTMANIFEST=		$(MANIFEST:%=$(ROOTMANIFESTDIR)/%)
2337c478bd9Sstevel@tonic-gateCHKMANIFEST=		$(MANIFEST:%.xml=%.xmlchk)
2347c478bd9Sstevel@tonic-gate
2357c478bd9Sstevel@tonic-gate#
2367c478bd9Sstevel@tonic-gate# For installing "starter scripts" of services
2377c478bd9Sstevel@tonic-gate#
2387c478bd9Sstevel@tonic-gate
2397c478bd9Sstevel@tonic-gateROOTSVCMETHOD=		$(SVCMETHOD:%=$(ROOTLIBSVCMETHOD)/%)
2407c478bd9Sstevel@tonic-gate
2417c478bd9Sstevel@tonic-gateROOTSVCBINDIR=		$(ROOTLIBSVCBIN)/__nonexistent_directory__
2427c478bd9Sstevel@tonic-gateROOTSVCBIN= 		$(SVCBIN:%=$(ROOTSVCBINDIR)/%)
2437c478bd9Sstevel@tonic-gate
2447c478bd9Sstevel@tonic-gate#
2457c478bd9Sstevel@tonic-gate
2467c478bd9Sstevel@tonic-gate# For programs that are installed in the root filesystem,
2477c478bd9Sstevel@tonic-gate# build $(ROOTFS_PROG) rather than $(PROG)
2487c478bd9Sstevel@tonic-gate$(ROOTFS_PROG) := LDFLAGS += -Wl,-I/lib/ld.so.1
2497c478bd9Sstevel@tonic-gate
2507c478bd9Sstevel@tonic-gate$(KRB5BIN)/%: %
2517c478bd9Sstevel@tonic-gate	$(INS.file)
2527c478bd9Sstevel@tonic-gate
2537c478bd9Sstevel@tonic-gate$(KRB5SBIN)/%: %
2547c478bd9Sstevel@tonic-gate	$(INS.file)
2557c478bd9Sstevel@tonic-gate
2567c478bd9Sstevel@tonic-gate$(KRB5LIB)/%: %
2577c478bd9Sstevel@tonic-gate	$(INS.file)
2587c478bd9Sstevel@tonic-gate
2597c478bd9Sstevel@tonic-gate$(ROOTBIN)/%: %
2607c478bd9Sstevel@tonic-gate	$(INS.file)
2617c478bd9Sstevel@tonic-gate
2627c478bd9Sstevel@tonic-gate$(ROOTLIB)/%: %
2637c478bd9Sstevel@tonic-gate	$(INS.file)
2647c478bd9Sstevel@tonic-gate
2657c478bd9Sstevel@tonic-gate$(ROOTBIN64)/%: %
2667c478bd9Sstevel@tonic-gate	$(INS.file)
2677c478bd9Sstevel@tonic-gate
2687c478bd9Sstevel@tonic-gate$(ROOTLIB64)/%: %
2697c478bd9Sstevel@tonic-gate	$(INS.file)
2707c478bd9Sstevel@tonic-gate
2717c478bd9Sstevel@tonic-gate$(ROOTBIN32)/%: %
2727c478bd9Sstevel@tonic-gate	$(INS.file)
2737c478bd9Sstevel@tonic-gate
2747c478bd9Sstevel@tonic-gate$(ROOTSHLIB)/%: %
2757c478bd9Sstevel@tonic-gate	$(INS.file)
2767c478bd9Sstevel@tonic-gate
2777c478bd9Sstevel@tonic-gate$(ROOTSBIN)/%: %
2787c478bd9Sstevel@tonic-gate	$(INS.file)
2797c478bd9Sstevel@tonic-gate
2807c478bd9Sstevel@tonic-gate$(ROOTUSRSBIN)/%: %
2817c478bd9Sstevel@tonic-gate	$(INS.file)
2827c478bd9Sstevel@tonic-gate
2837c478bd9Sstevel@tonic-gate$(ROOTUSRSBIN32)/%: %
2847c478bd9Sstevel@tonic-gate	$(INS.file)
2857c478bd9Sstevel@tonic-gate
2867c478bd9Sstevel@tonic-gate$(ROOTUSRSBIN64)/%: %
2877c478bd9Sstevel@tonic-gate	$(INS.file)
2887c478bd9Sstevel@tonic-gate
2897c478bd9Sstevel@tonic-gate$(ROOTETC)/%: %
2907c478bd9Sstevel@tonic-gate	$(INS.file)
2917c478bd9Sstevel@tonic-gate
292a7872406Smeem$(ROOTETCDEFAULT)/%:	%.dfl
293a7872406Smeem	$(INS.rename)
294a7872406Smeem
2957c478bd9Sstevel@tonic-gate$(ROOTCCSBIN)/%: %
2967c478bd9Sstevel@tonic-gate	$(INS.file)
2977c478bd9Sstevel@tonic-gate
2987c478bd9Sstevel@tonic-gate$(ROOTUSRKVM)/%: %
2997c478bd9Sstevel@tonic-gate	$(INS.file)
3007c478bd9Sstevel@tonic-gate
3017c478bd9Sstevel@tonic-gate$(ROOTXPG4BIN)/%: %.xpg4
3027c478bd9Sstevel@tonic-gate	$(INS.rename)
3037c478bd9Sstevel@tonic-gate
3047c478bd9Sstevel@tonic-gate$(ROOTXPG4BIN32)/%: %.xpg4
3057c478bd9Sstevel@tonic-gate	$(INS.rename)
3067c478bd9Sstevel@tonic-gate
3077c478bd9Sstevel@tonic-gate$(ROOTXPG4BIN64)/%: %.xpg4
3087c478bd9Sstevel@tonic-gate	$(INS.rename)
3097c478bd9Sstevel@tonic-gate
3107c478bd9Sstevel@tonic-gate$(ROOTXPG6BIN)/%: %.xpg6
3117c478bd9Sstevel@tonic-gate	$(INS.rename)
3127c478bd9Sstevel@tonic-gate
3137c478bd9Sstevel@tonic-gate$(ROOTLOCALEDEF)/%: %
3147c478bd9Sstevel@tonic-gate	$(INS.file)
3157c478bd9Sstevel@tonic-gate
3167c478bd9Sstevel@tonic-gate$(ROOTCHARMAP)/%: %
3177c478bd9Sstevel@tonic-gate	$(INS.file)
3187c478bd9Sstevel@tonic-gate
3197c478bd9Sstevel@tonic-gate$(ROOTI18NEXT)/%: %
3207c478bd9Sstevel@tonic-gate	$(INS.file)
3217c478bd9Sstevel@tonic-gate
3227c478bd9Sstevel@tonic-gate$(ROOTI18NEXT64)/%: %
3237c478bd9Sstevel@tonic-gate	$(INS.file)
3247c478bd9Sstevel@tonic-gate
3257c478bd9Sstevel@tonic-gate$(ROOTLIBSVCMETHOD)/%: %
3267c478bd9Sstevel@tonic-gate	$(INS.file)
3277c478bd9Sstevel@tonic-gate
3287c478bd9Sstevel@tonic-gate$(ROOTLIBSVCBIN)/%: %
3297c478bd9Sstevel@tonic-gate	$(INS.file)
3307c478bd9Sstevel@tonic-gate
3317c478bd9Sstevel@tonic-gate$(ROOTSVCMILESTONE)/%: %
3327c478bd9Sstevel@tonic-gate	$(INS.file)
3337c478bd9Sstevel@tonic-gate
3347c478bd9Sstevel@tonic-gate$(ROOTSVCDEVICE)/%: %
3357c478bd9Sstevel@tonic-gate	$(INS.file)
3367c478bd9Sstevel@tonic-gate
3377c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEM)/%: %
3387c478bd9Sstevel@tonic-gate	$(INS.file)
3397c478bd9Sstevel@tonic-gate
3407c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEMDEVICE)/%: %
3417c478bd9Sstevel@tonic-gate	$(INS.file)
3427c478bd9Sstevel@tonic-gate
3437c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEMFILESYSTEM)/%: %
3447c478bd9Sstevel@tonic-gate	$(INS.file)
3457c478bd9Sstevel@tonic-gate
3467c478bd9Sstevel@tonic-gate$(ROOTSVCSYSTEMSECURITY)/%: %
3477c478bd9Sstevel@tonic-gate	$(INS.file)
3487c478bd9Sstevel@tonic-gate
3497c478bd9Sstevel@tonic-gate$(ROOTSVCNETWORK)/%: %
3507c478bd9Sstevel@tonic-gate	$(INS.file)
3517c478bd9Sstevel@tonic-gate
3527c478bd9Sstevel@tonic-gate$(ROOTSVCNETWORKLDAP)/%: %
3537c478bd9Sstevel@tonic-gate	$(INS.file)
3547c478bd9Sstevel@tonic-gate
3557c478bd9Sstevel@tonic-gate$(ROOTSVCNETWORKNFS)/%: %
3567c478bd9Sstevel@tonic-gate	$(INS.file)
3577c478bd9Sstevel@tonic-gate
3587c478bd9Sstevel@tonic-gate$(ROOTSVCNETWORKNIS)/%: %
3597c478bd9Sstevel@tonic-gate	$(INS.file)
3607c478bd9Sstevel@tonic-gate
3617c478bd9Sstevel@tonic-gate$(ROOTSVCNETWORKRPC)/%: %
3627c478bd9Sstevel@tonic-gate	$(INS.file)
3637c478bd9Sstevel@tonic-gate
3647c478bd9Sstevel@tonic-gate$(ROOTSVCNETWORKSECURITY)/%: %
3657c478bd9Sstevel@tonic-gate	$(INS.file)
3667c478bd9Sstevel@tonic-gate
367abf1b5ddSkais$(ROOTSVCNETWORKSSL)/%: %
368abf1b5ddSkais	$(INS.file)
369abf1b5ddSkais
370*e3320f40Smarkfen$(ROOTSVCNETWORKIPSEC)/%: %
371*e3320f40Smarkfen	$(INS.file)
372*e3320f40Smarkfen
3736185db85Sdougm$(ROOTSVCNETWORKSHARES)/%: %
3746185db85Sdougm	$(INS.file)
3756185db85Sdougm
3767c478bd9Sstevel@tonic-gate$(ROOTSVCAPPLICATION)/%: %
3777c478bd9Sstevel@tonic-gate	$(INS.file)
3787c478bd9Sstevel@tonic-gate
3797c478bd9Sstevel@tonic-gate$(ROOTSVCAPPLICATIONMANAGEMENT)/%: %
3807c478bd9Sstevel@tonic-gate	$(INS.file)
3817c478bd9Sstevel@tonic-gate
3827c478bd9Sstevel@tonic-gate$(ROOTSVCAPPLICATIONSECURITY)/%: %
3837c478bd9Sstevel@tonic-gate	$(INS.file)
3847c478bd9Sstevel@tonic-gate
3857c478bd9Sstevel@tonic-gate$(ROOTSVCAPPLICATIONPRINT)/%: %
3867c478bd9Sstevel@tonic-gate	$(INS.file)
3877c478bd9Sstevel@tonic-gate
3887c478bd9Sstevel@tonic-gate$(ROOTSVCPLATFORM)/%: %
3897c478bd9Sstevel@tonic-gate	$(INS.file)
3907c478bd9Sstevel@tonic-gate
3917c478bd9Sstevel@tonic-gate$(ROOTSVCPLATFORMSUN4U)/%: %
3927c478bd9Sstevel@tonic-gate	$(INS.file)
3937c478bd9Sstevel@tonic-gate
3941ae08745Sheppo$(ROOTSVCPLATFORMSUN4V)/%: %
3951ae08745Sheppo	$(INS.file)
3961ae08745Sheppo
3977c478bd9Sstevel@tonic-gate$(ROOTMAN1)/%: %.sunman
3987c478bd9Sstevel@tonic-gate	$(INS.rename)
3997c478bd9Sstevel@tonic-gate
4007c478bd9Sstevel@tonic-gate$(ROOTMAN1M)/%: %.sunman
4017c478bd9Sstevel@tonic-gate	$(INS.rename)
4027c478bd9Sstevel@tonic-gate
4037c478bd9Sstevel@tonic-gate$(ROOTMAN3)/%: %.sunman
4047c478bd9Sstevel@tonic-gate	$(INS.rename)
4057c478bd9Sstevel@tonic-gate
4067c478bd9Sstevel@tonic-gate# build rule for statically linked programs with single source file.
4077c478bd9Sstevel@tonic-gate%.static: %.c
4087c478bd9Sstevel@tonic-gate	$(LINK.c) -o $@ $< $(LDLIBS)
4097c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
4107c478bd9Sstevel@tonic-gate
4117c478bd9Sstevel@tonic-gate%.xpg4: %.c
4127c478bd9Sstevel@tonic-gate	$(LINK.c) -o $@ $< $(LDLIBS)
4137c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
4147c478bd9Sstevel@tonic-gate
4157c478bd9Sstevel@tonic-gate%.xpg6: %.c
4167c478bd9Sstevel@tonic-gate	$(LINK.c) -o $@ $< $(LDLIBS)
4177c478bd9Sstevel@tonic-gate	$(POST_PROCESS)
4187c478bd9Sstevel@tonic-gate
4197c478bd9Sstevel@tonic-gate# Define the majority text domain in this directory.
4207c478bd9Sstevel@tonic-gateTEXT_DOMAIN= SUNW_OST_OSCMD
4217c478bd9Sstevel@tonic-gate
4227c478bd9Sstevel@tonic-gateCLOBBERFILES += $(XPG4) $(XPG6) $(DCFILE)
4237c478bd9Sstevel@tonic-gate
4247c478bd9Sstevel@tonic-gate# This flag is being added only for SCO (x86) compatibility
4257c478bd9Sstevel@tonic-gatei386_SPFLAG=    -D_iBCS2
4267c478bd9Sstevel@tonic-gatesparc_SPFLAG=
4277c478bd9Sstevel@tonic-gate
4287c478bd9Sstevel@tonic-gateiBCS2FLAG = $($(MACH)_SPFLAG)
4297c478bd9Sstevel@tonic-gate
4307c478bd9Sstevel@tonic-gate# This flag is for programs which should not build a 32-bit binary
4317c478bd9Sstevel@tonic-gatesparc_64ONLY= $(POUND_SIGN)
4327c478bd9Sstevel@tonic-gate64ONLY=	 $($(MACH)_64ONLY)
433