xref: /onnv-gate/usr/src/Makefile (revision 12998:c0270875939a)
10Sstevel@tonic-gate#
20Sstevel@tonic-gate# CDDL HEADER START
30Sstevel@tonic-gate#
40Sstevel@tonic-gate# The contents of this file are subject to the terms of the
51167Skupfer# Common Development and Distribution License (the "License").
61167Skupfer# You may not use this file except in compliance with the License.
70Sstevel@tonic-gate#
80Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate# See the License for the specific language governing permissions
110Sstevel@tonic-gate# and limitations under the License.
120Sstevel@tonic-gate#
130Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate#
190Sstevel@tonic-gate# CDDL HEADER END
200Sstevel@tonic-gate#
210Sstevel@tonic-gate#
2212776SJames.McPherson@Sun.COM# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
2312776SJames.McPherson@Sun.COM#
240Sstevel@tonic-gate#
250Sstevel@tonic-gate# Makefile for system source
260Sstevel@tonic-gate#
270Sstevel@tonic-gate# include global definitions
280Sstevel@tonic-gateinclude Makefile.master
290Sstevel@tonic-gate#
300Sstevel@tonic-gate# the Targetdirs file is the AT&T target.dirs file in a makefile format.
310Sstevel@tonic-gate# it defines TARGETDIRS and ROOTDIRS.
320Sstevel@tonic-gateinclude Targetdirs
330Sstevel@tonic-gate
3412846SMark.J.Nelson@Oracle.COMCOMMON_SUBDIRS=	uts lib cmd ucblib ucbcmd psm
3512846SMark.J.Nelson@Oracle.COMsparc_SUBDIRS= stand
3612846SMark.J.Nelson@Oracle.COMi386_SUBDIRS= grub
370Sstevel@tonic-gate
380Sstevel@tonic-gate#
3912846SMark.J.Nelson@Oracle.COM# sparc needs to build stand before psm
400Sstevel@tonic-gate#
4112846SMark.J.Nelson@Oracle.COM$(SPARC_BLD)psm: stand
420Sstevel@tonic-gate
430Sstevel@tonic-gateSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
440Sstevel@tonic-gate
4510754SGarrett.Damore@Sun.COMHDRSUBDIRS=	uts head lib cmd
460Sstevel@tonic-gate
470Sstevel@tonic-gate# UCB headers are bug-for-bug compatible and not checkable against the header
480Sstevel@tonic-gate# standards.
490Sstevel@tonic-gate#
500Sstevel@tonic-gateCHKHDRSUBDIRS=	head uts lib
510Sstevel@tonic-gate
526094Sakolb#
536094Sakolb# Headers that can be built in parallel
546094Sakolb#
5510754SGarrett.Damore@Sun.COMPARALLEL_HEADERS = sysheaders userheaders libheaders cmdheaders
566094Sakolb
576094Sakolb#
586094Sakolb# Directories that can be built in parallel
596094Sakolb#
606094SakolbPARALLEL_DIRS = uts lib
616094Sakolb
620Sstevel@tonic-gate# The check target also causes smf(5) service manifests to be validated.
630Sstevel@tonic-gateCHKMFSTSUBDIRS=	cmd
640Sstevel@tonic-gate
650Sstevel@tonic-gateMSGSUBDIRS=	cmd ucbcmd lib
660Sstevel@tonic-gateDOMAINS= \
670Sstevel@tonic-gate	SUNW_OST_ADMIN \
680Sstevel@tonic-gate	SUNW_OST_NETRPC \
690Sstevel@tonic-gate	SUNW_OST_OSCMD \
700Sstevel@tonic-gate	SUNW_OST_OSLIB \
710Sstevel@tonic-gate	SUNW_OST_UCBCMD \
720Sstevel@tonic-gate	SUNW_OST_ZONEINFO
730Sstevel@tonic-gate
740Sstevel@tonic-gateMSGDDIRS=       $(DOMAINS:%=$(MSGROOT)/%)
750Sstevel@tonic-gateMSGDIRS=        $(MSGROOT) $(MSGDDIRS) $(MSGROOT)/LC_TIME
760Sstevel@tonic-gate
770Sstevel@tonic-gateall all_xmod :=		TARGET= all
780Sstevel@tonic-gateinstall install_xmod :=	TARGET= install
7912846SMark.J.Nelson@Oracle.COMinstall1 :=		TARGET= install
8012846SMark.J.Nelson@Oracle.COMinstall2 :=		TARGET= install
810Sstevel@tonic-gateinstall_h :=		TARGET= install_h
820Sstevel@tonic-gateclean :=		TARGET= clean
830Sstevel@tonic-gateclobber :=		TARGET= clobber
840Sstevel@tonic-gatecheck :=		TARGET= check
850Sstevel@tonic-gate
860Sstevel@tonic-gate.KEEP_STATE:
870Sstevel@tonic-gate
880Sstevel@tonic-gate#
8912846SMark.J.Nelson@Oracle.COM# Note: install does not cause a build in pkg.  To build packages,
9011838SLiane.Praza@Sun.COM#	cd pkg and do a 'make install'
910Sstevel@tonic-gate#
9212846SMark.J.Nelson@Oracle.COM
9312846SMark.J.Nelson@Oracle.COMall: mapfiles closedbins sgs .WAIT $(SUBDIRS) pkg
9412846SMark.J.Nelson@Oracle.COM
95*12998SMark.J.Nelson@Oracle.COM#
96*12998SMark.J.Nelson@Oracle.COM# The _msg build is a two-step process.  First, the _msg dependency
97*12998SMark.J.Nelson@Oracle.COM# causes recursive makes in $(MSGSUBDIRS), which stages raw message
98*12998SMark.J.Nelson@Oracle.COM# files in $(ROOT)/catalog.  Second, the action from the install
99*12998SMark.J.Nelson@Oracle.COM# target rule causes those messages to be post-processed from where
100*12998SMark.J.Nelson@Oracle.COM# they were staged in $(ROOT)/catalog, and the results placed into the
101*12998SMark.J.Nelson@Oracle.COM# proto area.
102*12998SMark.J.Nelson@Oracle.COM#
103*12998SMark.J.Nelson@Oracle.COM# The stage-licenses target causes the license files needed for
104*12998SMark.J.Nelson@Oracle.COM# packaging to be pulled from $(SRC) and $(CLOSED) and staged in
105*12998SMark.J.Nelson@Oracle.COM# $(ROOT)/licenses.
106*12998SMark.J.Nelson@Oracle.COM#
107*12998SMark.J.Nelson@Oracle.COMinstall: install1 install2 _msg stage-licenses
10810420SMark.J.Nelson@Sun.COM	@cd msg; pwd; $(MAKE) _msg
1090Sstevel@tonic-gate	@rm -rf "$(ROOT)/catalog"
1100Sstevel@tonic-gate
111*12998SMark.J.Nelson@Oracle.COMstage-licenses: install2
112*12998SMark.J.Nelson@Oracle.COM	@cd pkg; pwd; $(MAKE) stage-licenses
113*12998SMark.J.Nelson@Oracle.COM
11412846SMark.J.Nelson@Oracle.COMinstall1: mapfiles closedbins sgs
11512846SMark.J.Nelson@Oracle.COM
11612846SMark.J.Nelson@Oracle.COMinstall2: install1 $(SUBDIRS)
11712846SMark.J.Nelson@Oracle.COM
11812846SMark.J.Nelson@Oracle.COM_msg: _msgdirs rootdirs install2 FRC
11912846SMark.J.Nelson@Oracle.COM	@for m in $(MSGSUBDIRS); do \
12012846SMark.J.Nelson@Oracle.COM		cd $$m; pwd; $(MAKE) _msg; cd ..; \
12112846SMark.J.Nelson@Oracle.COM	done
12212846SMark.J.Nelson@Oracle.COM
1234449Sriemapfiles: bldtools
1244271Srie	@cd common/mapfiles; pwd; $(MAKE) install
1254271Srie
12611838SLiane.Praza@Sun.COMclean clobber: $(SUBDIRS) head pkg
1270Sstevel@tonic-gate
1281167Skupferclosedbins: FRC $(ROOTDIRS)
1293188Sah89892	@CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \
1303188Sah89892	if [ "$$CLOSED_IS_PRESENT" = no ]; then \
1313188Sah89892		if [ ! -d "$$CLOSED_ROOT" ]; then \
1321167Skupfer			$(ECHO) "Error: if closed sources are not present," \
1331167Skupfer			    "ON_CLOSED_BINS must point to closed binaries."; \
1343188Sah89892			$(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \
1353188Sah89892			    "present in $$ON_CLOSED_BINS."; \
1361167Skupfer			exit 1; \
1371167Skupfer		fi; \
1383188Sah89892		$(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \
1393188Sah89892		(cd $$CLOSED_ROOT; tar cf - .) | \
1402930Sstevel		    (cd $(ROOT); tar xBpf -); \
1411167Skupfer	fi
1421167Skupfer
1436094Sakolb#
14412846SMark.J.Nelson@Oracle.COM# Declare what parts can be built in parallel
1456094Sakolb# DUMMY at the end is used in case macro expansion produces an empty string to
1466094Sakolb# prevent everything going in parallel
1476094Sakolb#
1486094Sakolb.PARALLEL: $(PARALLEL_HEADERS) DUMMY
1496094Sakolb.PARALLEL: $(PARALLEL_DIRS) DUMMY
1506094Sakolb
15111838SLiane.Praza@Sun.COM$(SUBDIRS) head pkg: FRC
1520Sstevel@tonic-gate	@cd $@; pwd; $(MAKE) $(TARGET)
1530Sstevel@tonic-gate
1540Sstevel@tonic-gate# librpcsvc has a dependency on headers installed by
1550Sstevel@tonic-gate# userheaders, hence the .WAIT before libheaders.
1560Sstevel@tonic-gatesgs: rootdirs .WAIT sysheaders userheaders .WAIT \
15710754SGarrett.Damore@Sun.COM	libheaders cmdheaders
1580Sstevel@tonic-gate
1590Sstevel@tonic-gate#
1604449Srie# Top-level setup target to setup the development environment that includes
1614449Srie# headers, tools and generated mapfiles.  For open-only builds (i.e.: source
1624449Srie# trees w/o usr/closed), this also depends on the closedbins target (above)
1634449Srie# in order to properly seed the proto area.  Note, although the tools are
1644449Srie# dependent on a number of constant mapfiles, the tools themselves are
1654449Srie# required to build the generated mapfiles.
1661973Sstevel#
16712776SJames.McPherson@Sun.COMsetup: closedbins bldtools sgs mapfiles
1684449Srie
16912776SJames.McPherson@Sun.COMbldtools:
1700Sstevel@tonic-gate	@cd tools; pwd; $(MAKE) install
1710Sstevel@tonic-gate
1720Sstevel@tonic-gate# /var/mail/:saved is a special case because of the colon in the name.
1730Sstevel@tonic-gate#
1740Sstevel@tonic-gaterootdirs: $(ROOTDIRS)
1750Sstevel@tonic-gate	$(INS) -d -m 775 $(ROOT)/var/mail/:saved
1760Sstevel@tonic-gate
1770Sstevel@tonic-gatelint: FRC
1780Sstevel@tonic-gate	$(MAKE) -f Makefile.lint
1790Sstevel@tonic-gate
1800Sstevel@tonic-gate_msgdirs:       $(MSGDIRS)
1810Sstevel@tonic-gate
1820Sstevel@tonic-gate$(ROOTDIRS) $(MSGDIRS):
1830Sstevel@tonic-gate	$(INS.dir)
1840Sstevel@tonic-gate
1850Sstevel@tonic-gateuserheaders: FRC
1860Sstevel@tonic-gate	@cd head; pwd; $(MAKE) install_h
1870Sstevel@tonic-gate
18812776SJames.McPherson@Sun.COMlibheaders: bldtools
1890Sstevel@tonic-gate	@cd lib; pwd; $(MAKE) install_h
1900Sstevel@tonic-gate
1910Sstevel@tonic-gatesysheaders: FRC
1920Sstevel@tonic-gate	@cd uts; pwd; $(MAKE) install_h
1930Sstevel@tonic-gate
1940Sstevel@tonic-gatecmdheaders: FRC
1950Sstevel@tonic-gate	@cd cmd/fm; pwd; $(MAKE) install_h
1960Sstevel@tonic-gate	@cd cmd/mdb; pwd; $(MAKE) install_h
1970Sstevel@tonic-gate
1980Sstevel@tonic-gate# each xmod target depends on a corresponding MACH-specific pseudotarget
1990Sstevel@tonic-gate# before doing common xmod work
2000Sstevel@tonic-gate#
2010Sstevel@tonic-gateall_xmod install_xmod: $$@_$(MACH)
2020Sstevel@tonic-gate	@cd uts/common/sys; pwd; $(MAKE) svvs_h
2030Sstevel@tonic-gate
2040Sstevel@tonic-gateall_xmod_sparc install_xmod_sparc: FRC
2050Sstevel@tonic-gate	@cd uts/sparc; pwd; \
2060Sstevel@tonic-gate	  $(MAKE) TARGET=$(TARGET) svvs pm wsdrv
2070Sstevel@tonic-gate
2080Sstevel@tonic-gateall_xmod_i386 install_xmod_i386: FRC
2090Sstevel@tonic-gate	@cd uts/i86; pwd; $(MAKE) TARGET=$(TARGET) svvs
2100Sstevel@tonic-gate
2110Sstevel@tonic-gatecheck:	$(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS)
2120Sstevel@tonic-gate
2130Sstevel@tonic-gate#
2140Sstevel@tonic-gate# Cross-reference customization: skip all of the subdirectories that
2150Sstevel@tonic-gate# don't contain actual source code.
2160Sstevel@tonic-gate#
2171167Skupfer$(CLOSED_BUILD)XRDIRS += ../closed
21811838SLiane.Praza@Sun.COMXRPRUNE = pkg prototypes xmod
2190Sstevel@tonic-gateXRINCDIRS = uts/common head ucbhead
2201167Skupfer$(CLOSED_BUILD)XRINCDIRS = uts/common ../closed/uts/common head ucbhead
2210Sstevel@tonic-gate
2220Sstevel@tonic-gatecscope.out tags: FRC
2230Sstevel@tonic-gate	$(XREF) -f -x $@
2240Sstevel@tonic-gate
2250Sstevel@tonic-gateFRC:
2260Sstevel@tonic-gate
2270Sstevel@tonic-gate# EXPORT DELETE START
2280Sstevel@tonic-gate
2290Sstevel@tonic-gateXMOD_DELETE_FILES:sh = cat xmod/xmod_files
2300Sstevel@tonic-gate
2310Sstevel@tonic-gateEXPORT_SRC:
2321167Skupfer	@cd $(CLOSED)/cmd/cmd-inet/usr.lib/in.iked;  pwd; $(MAKE) EXPORT_SRC
2331167Skupfer	@cd $(CLOSED)/cmd/cmd-inet/usr.lib/ike-certutils;  pwd; \
2341167Skupfer	    $(MAKE) EXPORT_SRC
2350Sstevel@tonic-gate	@cd cmd/cmd-inet/usr.sbin; pwd; $(MAKE) EXPORT_SRC
2361167Skupfer	@cd $(CLOSED)/cmd/cmd-crypto/etc; pwd; $(MAKE) EXPORT_SRC
2370Sstevel@tonic-gate	@cd cmd/crypt;	  pwd; $(MAKE) EXPORT_SRC
2380Sstevel@tonic-gate	@cd cmd/gss/gssd;         pwd; $(MAKE) EXPORT_SRC
2390Sstevel@tonic-gate	@cd cmd/krb5/kadmin;  pwd; $(MAKE) EXPORT_SRC
2400Sstevel@tonic-gate	@cd cmd/sendmail/src; pwd; $(MAKE) EXPORT_SRC
2410Sstevel@tonic-gate	@cd common/crypto/aes;	  pwd; $(MAKE) EXPORT_SRC
2420Sstevel@tonic-gate	@cd common/crypto/arcfour; pwd; $(MAKE) EXPORT_SRC
2430Sstevel@tonic-gate	@cd common/crypto/blowfish;	  pwd; $(MAKE) EXPORT_SRC
2440Sstevel@tonic-gate	@cd common/crypto/des;	  pwd; $(MAKE) EXPORT_SRC
2450Sstevel@tonic-gate	@cd common/crypto/rsa;	  pwd; $(MAKE) EXPORT_SRC
2460Sstevel@tonic-gate	@cd lib/crypt_modules/bsdbf; pwd ; $(MAKE) EXPORT_SRC
2470Sstevel@tonic-gate	@cd lib/gss_mechs/mech_dummy;   pwd; $(MAKE) EXPORT_SRC
2480Sstevel@tonic-gate	@cd lib/gss_mechs/mech_dh/backend;	pwd; $(MAKE) EXPORT_SRC
2490Sstevel@tonic-gate	@cd lib/gss_mechs/mech_krb5;		pwd; $(MAKE) EXPORT_SRC
2500Sstevel@tonic-gate	@cd lib/gss_mechs/mech_spnego;		pwd; $(MAKE) EXPORT_SRC
2510Sstevel@tonic-gate	@cd lib/libcrypt; pwd; $(MAKE) EXPORT_SRC
2520Sstevel@tonic-gate	@cd lib/libgss;   pwd; $(MAKE) EXPORT_SRC
2531167Skupfer	@cd $(CLOSED)/lib/libike;   pwd; $(MAKE) EXPORT_SRC
2540Sstevel@tonic-gate	@cd lib/libnsl;	  pwd; $(MAKE) EXPORT_SRC
2550Sstevel@tonic-gate	@cd lib/pkcs11/pkcs11_softtoken/common;  pwd; $(MAKE) EXPORT_SRC
2560Sstevel@tonic-gate	@cd lib/libsldap; pwd; $(MAKE) EXPORT_SRC
2570Sstevel@tonic-gate	@cd lib/libsasl; pwd; $(MAKE) EXPORT_SRC
2580Sstevel@tonic-gate	@cd lib/sasl_plugins; pwd; $(MAKE) EXPORT_SRC
2590Sstevel@tonic-gate	@cd lib/pam_modules/krb5;   pwd; $(MAKE) EXPORT_SRC
2607489SJohn.Zolnowsky@Sun.COM	@cd psm/stand/boot; pwd; $(MAKE) EXPORT_SRC
2610Sstevel@tonic-gate	@cd uts/common/crypto/io; pwd; $(MAKE) EXPORT_SRC
2620Sstevel@tonic-gate	@cd uts/common/des; pwd; $(MAKE) EXPORT_SRC
2630Sstevel@tonic-gate	@cd uts/common/rpc; pwd; $(MAKE) EXPORT_SRC
2640Sstevel@tonic-gate	@cd uts/common/sys; pwd; $(MAKE) EXPORT_SRC
2650Sstevel@tonic-gate	@cd uts/common/gssapi/include;		pwd; $(MAKE) EXPORT_SRC
2660Sstevel@tonic-gate	@cd uts/common/gssapi;			pwd; $(MAKE) EXPORT_SRC
2670Sstevel@tonic-gate	@cd uts/common/gssapi/mechs/dummy;	pwd; $(MAKE) EXPORT_SRC
2680Sstevel@tonic-gate	@cd uts/common/gssapi/mechs/krb5;	pwd; $(MAKE) EXPORT_SRC
2690Sstevel@tonic-gate	@cd uts/common; pwd; $(MAKE) EXPORT_SRC
2700Sstevel@tonic-gate	@cd uts/sparc; pwd; $(MAKE) EXPORT_SRC
2711167Skupfer	@cd $(CLOSED)/uts/sun4u/forthdebug; pwd; $(MAKE) EXPORT_SRC
2727489SJohn.Zolnowsky@Sun.COM	@cd $(CLOSED)/uts/sun4v/forthdebug; pwd; $(MAKE) EXPORT_SRC
2730Sstevel@tonic-gate	@cd uts/intel; pwd; $(MAKE) EXPORT_SRC
2740Sstevel@tonic-gate	@cd uts/sun4u; pwd; $(MAKE) EXPORT_SRC
2751167Skupfer	@cd $(CLOSED)/uts/sun4v/io/ncp;	pwd;	$(MAKE) EXPORT_SRC
2769228SValerie.Fenwick@Sun.COM	@cd $(CLOSED)/uts/sun4v/io/n2cp; pwd;	$(MAKE) EXPORT_SRC
27711838SLiane.Praza@Sun.COM	@cd pkg; pwd;	$(MAKE) EXPORT_SRC
2780Sstevel@tonic-gate	$(RM) -r $(XMOD_DELETE_FILES)
2790Sstevel@tonic-gate	$(RM) Targetdirs+
2800Sstevel@tonic-gate	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
2810Sstevel@tonic-gate			< Targetdirs > Targetdirs+
2820Sstevel@tonic-gate	$(MV) Targetdirs+ Targetdirs
2830Sstevel@tonic-gate	$(CHMOD) 444 Targetdirs
2840Sstevel@tonic-gate	$(RM) Makefile+
2850Sstevel@tonic-gate	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
2860Sstevel@tonic-gate			< Makefile > Makefile+
2870Sstevel@tonic-gate	$(MV) Makefile+ Makefile
2880Sstevel@tonic-gate	$(CHMOD) 444 Makefile
2890Sstevel@tonic-gate	$(RM) Makefile.master+
2900Sstevel@tonic-gate	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
2910Sstevel@tonic-gate			< Makefile.master > Makefile.master+
2920Sstevel@tonic-gate	$(MV) Makefile.master+ Makefile.master
2930Sstevel@tonic-gate	$(CHMOD) 444 Makefile.master
2940Sstevel@tonic-gate
2950Sstevel@tonic-gateCRYPT_SRC:
2967710SJohn.Zolnowsky@Sun.COM	@cd $(CLOSED)/cmd/cmd-crypto/etc;  pwd; $(MAKE) CRYPT_SRC
2971167Skupfer	@cd $(CLOSED)/cmd/cmd-inet/usr.lib/in.iked;  pwd; $(MAKE) CRYPT_SRC
2981167Skupfer	@cd $(CLOSED)/cmd/cmd-inet/usr.lib/ike-certutils;  pwd; \
2991167Skupfer	    $(MAKE) CRYPT_SRC
3000Sstevel@tonic-gate	@cd lib/crypt_modules/bsdbf; pwd ; $(MAKE) CRYPT_SRC
3010Sstevel@tonic-gate	@cd lib/gss_mechs/mech_dummy;   pwd; $(MAKE) CRYPT_SRC
3020Sstevel@tonic-gate	@cd lib/gss_mechs/mech_dh/backend; pwd; $(MAKE) CRYPT_SRC
3030Sstevel@tonic-gate	@cd lib/gss_mechs/mech_krb5; pwd; $(MAKE) CRYPT_SRC
3040Sstevel@tonic-gate	@cd lib/gss_mechs/mech_spnego; pwd; $(MAKE) CRYPT_SRC
3051167Skupfer	@cd $(CLOSED)/lib/libike;   pwd; $(MAKE) CRYPT_SRC
3060Sstevel@tonic-gate	@cd lib/libnsl;	 pwd; $(MAKE) CRYPT_SRC
3070Sstevel@tonic-gate	@cd lib/libsasl;	 pwd; $(MAKE) CRYPT_SRC
3080Sstevel@tonic-gate	@cd lib/sasl_plugins; pwd; $(MAKE) CRYPT_SRC
3090Sstevel@tonic-gate	@cd lib/pam_modules/krb5;   pwd; $(MAKE) CRYPT_SRC
3100Sstevel@tonic-gate	@cd uts/common/gssapi;    pwd; $(MAKE) CRYPT_SRC
3110Sstevel@tonic-gate	@cd uts/common/gssapi/include;    pwd; $(MAKE) CRYPT_SRC
3120Sstevel@tonic-gate	@cd uts/common/gssapi/mechs/dummy;        pwd; $(MAKE) CRYPT_SRC
3130Sstevel@tonic-gate	@cd uts/common/gssapi/mechs/krb5; pwd; $(MAKE) CRYPT_SRC
31411838SLiane.Praza@Sun.COM	@cd pkg;    pwd; $(MAKE) CRYPT_SRC
3150Sstevel@tonic-gate	$(RM) Makefile+
3160Sstevel@tonic-gate	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
3170Sstevel@tonic-gate			< Makefile > Makefile+
3180Sstevel@tonic-gate	$(MV) Makefile+ Makefile
3190Sstevel@tonic-gate	$(CHMOD) 444 Makefile
3200Sstevel@tonic-gate	$(RM) Makefile.master+
3210Sstevel@tonic-gate	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
3220Sstevel@tonic-gate			< Makefile.master > Makefile.master+
3230Sstevel@tonic-gate	$(MV) Makefile.master+ Makefile.master
3240Sstevel@tonic-gate	$(CHMOD) 444 Makefile.master
3250Sstevel@tonic-gate
3260Sstevel@tonic-gate# EXPORT DELETE END
3270Sstevel@tonic-gate
3280Sstevel@tonic-gateONC_PLUS:
3290Sstevel@tonic-gate	@cd cmd/login; pwd; $(MAKE) ONC_PLUS
3300Sstevel@tonic-gate	@cd uts; pwd; $(MAKE) ONC_PLUS
3310Sstevel@tonic-gate
3320Sstevel@tonic-gate#
3330Sstevel@tonic-gate# Targets for reporting compiler versions; nightly uses these.
3340Sstevel@tonic-gate#
3350Sstevel@tonic-gate
3360Sstevel@tonic-gatecc-version:
3371792Swesolows	@if $($(MACH)_CC) -_versions >/dev/null 2>/dev/null; then \
338411Swesolows		$(ECHO) 32-bit compiler;			\
339224Swesolows		$(ECHO) $($(MACH)_CC);				\
3401792Swesolows		$($(MACH)_CC) -_versions 2>&1 |			\
3411792Swesolows		    $(EGREP) '^(cw|cc|gcc|primary|shadow)';	\
342224Swesolows	else							\
343224Swesolows		__COMPILER=`$($(MACH)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
344224Swesolows		if [ -z "$$__COMPILER" ]; then			\
345411Swesolows			$(ECHO) No 32-bit compiler found;	\
346224Swesolows			exit 1;					\
347224Swesolows		else						\
348411Swesolows			$(ECHO) 32-bit compiler;		\
349224Swesolows			$(ECHO) $($(MACH)_CC);			\
350224Swesolows			$(ECHO) $$__COMPILER;			\
351224Swesolows			$($(MACH)_CC) -V 2>&1 | head -1;	\
352224Swesolows		fi;						\
3530Sstevel@tonic-gate	fi
3540Sstevel@tonic-gate
3550Sstevel@tonic-gatecc64-version:
3561792Swesolows	@if $($(MACH64)_CC) -_versions >/dev/null 2>/dev/null; then \
357411Swesolows		$(ECHO) 64-bit compiler;			\
358224Swesolows		$(ECHO) $($(MACH64)_CC);			\
3591792Swesolows		$($(MACH64)_CC) -_versions 2>&1 |		\
3601792Swesolows		    $(EGREP) '^(cw|cc|gcc|primary|shadow)';	\
361224Swesolows	else							\
362224Swesolows		__COMPILER=`$($(MACH64)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
363224Swesolows		if [ -z "$$__COMPILER" ]; then			\
364224Swesolows			$(ECHO) No 64-bit compiler found;	\
365224Swesolows			exit 1;					\
366224Swesolows		else						\
367411Swesolows			$(ECHO) 64-bit compiler;		\
368224Swesolows			$(ECHO) $($(MACH64)_CC);		\
369224Swesolows			$(ECHO) $$__COMPILER;			\
370224Swesolows			$($(MACH64)_CC) -V 2>&1 | head -1;	\
371224Swesolows		fi;						\
3720Sstevel@tonic-gate	fi
3730Sstevel@tonic-gate
3740Sstevel@tonic-gatejava-version:
3750Sstevel@tonic-gate	@if [ -x "$(JAVAC)" ]; then			\
3760Sstevel@tonic-gate		$(ECHO) $(JAVAC);			\
3770Sstevel@tonic-gate		$(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1;	\
3780Sstevel@tonic-gate	else						\
3790Sstevel@tonic-gate		$(ECHO) No Java compiler found;		\
3800Sstevel@tonic-gate		exit 1;					\
3810Sstevel@tonic-gate	fi
382