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 5fb9f9b97Skupfer# Common Development and Distribution License (the "License"). 6fb9f9b97Skupfer# 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# 2278add226Sjmcp# Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved. 2378add226Sjmcp# 247c478bd9Sstevel@tonic-gate# 257c478bd9Sstevel@tonic-gate# Makefile for system source 267c478bd9Sstevel@tonic-gate# 277c478bd9Sstevel@tonic-gate# include global definitions 287c478bd9Sstevel@tonic-gateinclude Makefile.master 297c478bd9Sstevel@tonic-gate# 307c478bd9Sstevel@tonic-gate# the Targetdirs file is the AT&T target.dirs file in a makefile format. 317c478bd9Sstevel@tonic-gate# it defines TARGETDIRS and ROOTDIRS. 327c478bd9Sstevel@tonic-gateinclude Targetdirs 337c478bd9Sstevel@tonic-gate 34c10c16deSRichard LoweCOMMON_SUBDIRS= uts lib cmd ucblib ucbcmd psm man 35e3c7c8f8SMark J. Nelsonsparc_SUBDIRS= stand 36e3c7c8f8SMark J. Nelsoni386_SUBDIRS= grub 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gate# 39e3c7c8f8SMark J. Nelson# sparc needs to build stand before psm 407c478bd9Sstevel@tonic-gate# 41e3c7c8f8SMark J. Nelson$(SPARC_BLD)psm: stand 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gateSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS) 447c478bd9Sstevel@tonic-gate 455bbb4db2SGarrett D'AmoreHDRSUBDIRS= uts head lib cmd 467c478bd9Sstevel@tonic-gate 477c478bd9Sstevel@tonic-gate# UCB headers are bug-for-bug compatible and not checkable against the header 487c478bd9Sstevel@tonic-gate# standards. 497c478bd9Sstevel@tonic-gate# 507c478bd9Sstevel@tonic-gateCHKHDRSUBDIRS= head uts lib 517c478bd9Sstevel@tonic-gate 5298157a70Sakolb# 5398157a70Sakolb# Headers that can be built in parallel 5498157a70Sakolb# 555bbb4db2SGarrett D'AmorePARALLEL_HEADERS = sysheaders userheaders libheaders cmdheaders 5698157a70Sakolb 5798157a70Sakolb# 5898157a70Sakolb# Directories that can be built in parallel 5998157a70Sakolb# 60c10c16deSRichard LowePARALLEL_DIRS = uts lib man 6198157a70Sakolb 627c478bd9Sstevel@tonic-gate# The check target also causes smf(5) service manifests to be validated. 637c478bd9Sstevel@tonic-gateCHKMFSTSUBDIRS= cmd 647c478bd9Sstevel@tonic-gate 657c478bd9Sstevel@tonic-gateMSGSUBDIRS= cmd ucbcmd lib 667c478bd9Sstevel@tonic-gateDOMAINS= \ 677c478bd9Sstevel@tonic-gate SUNW_OST_ADMIN \ 687c478bd9Sstevel@tonic-gate SUNW_OST_NETRPC \ 697c478bd9Sstevel@tonic-gate SUNW_OST_OSCMD \ 707c478bd9Sstevel@tonic-gate SUNW_OST_OSLIB \ 717c478bd9Sstevel@tonic-gate SUNW_OST_UCBCMD \ 727c478bd9Sstevel@tonic-gate SUNW_OST_ZONEINFO 737c478bd9Sstevel@tonic-gate 747c478bd9Sstevel@tonic-gateMSGDDIRS= $(DOMAINS:%=$(MSGROOT)/%) 757c478bd9Sstevel@tonic-gateMSGDIRS= $(MSGROOT) $(MSGDDIRS) $(MSGROOT)/LC_TIME 767c478bd9Sstevel@tonic-gate 777c478bd9Sstevel@tonic-gateall all_xmod := TARGET= all 787c478bd9Sstevel@tonic-gateinstall install_xmod := TARGET= install 79e3c7c8f8SMark J. Nelsoninstall1 := TARGET= install 80e3c7c8f8SMark J. Nelsoninstall2 := TARGET= install 817c478bd9Sstevel@tonic-gateinstall_h := TARGET= install_h 827c478bd9Sstevel@tonic-gateclean := TARGET= clean 837c478bd9Sstevel@tonic-gateclobber := TARGET= clobber 847c478bd9Sstevel@tonic-gatecheck := TARGET= check 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate.KEEP_STATE: 877c478bd9Sstevel@tonic-gate 887c478bd9Sstevel@tonic-gate# 89e3c7c8f8SMark J. Nelson# Note: install does not cause a build in pkg. To build packages, 90ead1f93eSLiane Praza# cd pkg and do a 'make install' 917c478bd9Sstevel@tonic-gate# 92e3c7c8f8SMark J. Nelson 93e3c7c8f8SMark J. Nelsonall: mapfiles closedbins sgs .WAIT $(SUBDIRS) pkg 94e3c7c8f8SMark J. Nelson 955084e753SMark J. Nelson# 965084e753SMark J. Nelson# The _msg build is a two-step process. First, the _msg dependency 975084e753SMark J. Nelson# causes recursive makes in $(MSGSUBDIRS), which stages raw message 985084e753SMark J. Nelson# files in $(ROOT)/catalog. Second, the action from the install 995084e753SMark J. Nelson# target rule causes those messages to be post-processed from where 1005084e753SMark J. Nelson# they were staged in $(ROOT)/catalog, and the results placed into the 1015084e753SMark J. Nelson# proto area. 1025084e753SMark J. Nelson# 1035084e753SMark J. Nelson# The stage-licenses target causes the license files needed for 1045084e753SMark J. Nelson# packaging to be pulled from $(SRC) and $(CLOSED) and staged in 1055084e753SMark J. Nelson# $(ROOT)/licenses. 1065084e753SMark J. Nelson# 1075084e753SMark J. Nelsoninstall: install1 install2 _msg stage-licenses 108581cede6SMark J. Nelson @cd msg; pwd; $(MAKE) _msg 1097c478bd9Sstevel@tonic-gate @rm -rf "$(ROOT)/catalog" 1107c478bd9Sstevel@tonic-gate 1115084e753SMark J. Nelsonstage-licenses: install2 1125084e753SMark J. Nelson @cd pkg; pwd; $(MAKE) stage-licenses 1135084e753SMark J. Nelson 114e3c7c8f8SMark J. Nelsoninstall1: mapfiles closedbins sgs 115e3c7c8f8SMark J. Nelson 116e3c7c8f8SMark J. Nelsoninstall2: install1 $(SUBDIRS) 117e3c7c8f8SMark J. Nelson 118e3c7c8f8SMark J. Nelson_msg: _msgdirs rootdirs install2 FRC 119e3c7c8f8SMark J. Nelson @for m in $(MSGSUBDIRS); do \ 120e3c7c8f8SMark J. Nelson cd $$m; pwd; $(MAKE) _msg; cd ..; \ 121e3c7c8f8SMark J. Nelson done 122e3c7c8f8SMark J. Nelson 123232c6638Sriemapfiles: bldtools 12424da5b34Srie @cd common/mapfiles; pwd; $(MAKE) install 12524da5b34Srie 126ead1f93eSLiane Prazaclean clobber: $(SUBDIRS) head pkg 1277c478bd9Sstevel@tonic-gate 128*a0ed5030SJason Kingclosedbins: bldtools $(ROOTDIRS) FRC 1295b43ca41Sah89892 @CLOSED_ROOT="$$ON_CLOSED_BINS/root_$(MACH)$${RELEASE_BUILD+-nd}"; \ 1305b43ca41Sah89892 if [ "$$CLOSED_IS_PRESENT" = no ]; then \ 1315b43ca41Sah89892 if [ ! -d "$$CLOSED_ROOT" ]; then \ 132fb9f9b97Skupfer $(ECHO) "Error: if closed sources are not present," \ 133fb9f9b97Skupfer "ON_CLOSED_BINS must point to closed binaries."; \ 1345b43ca41Sah89892 $(ECHO) "root_$(MACH)$${RELEASE_BUILD+-nd} is not" \ 1355b43ca41Sah89892 "present in $$ON_CLOSED_BINS."; \ 136fb9f9b97Skupfer exit 1; \ 137fb9f9b97Skupfer fi; \ 1385b43ca41Sah89892 $(ECHO) "Copying closed binaries from $$CLOSED_ROOT"; \ 1392ad72058SGarrett D'Amore (cd $$CLOSED_ROOT; \ 1402ad72058SGarrett D'Amore $(TAR) cfX - $(CODEMGR_WS)/exception_lists/closed-bins .) | \ 1412ad72058SGarrett D'Amore (cd $(ROOT); $(TAR) xBpf -); \ 142*a0ed5030SJason King ( cd $(ROOT); $(CTFSTRIP) $$(cd $$CLOSED_ROOT; $(FIND) \ 143*a0ed5030SJason King ./kernel ./usr/kernel ./platform/*/kernel -type f -a -perm -u+x | \ 144*a0ed5030SJason King $(EGREP) -vf $(CODEMGR_WS)/exception_lists/closed-bins) ); \ 145fb9f9b97Skupfer fi 146fb9f9b97Skupfer 14798157a70Sakolb# 148e3c7c8f8SMark J. Nelson# Declare what parts can be built in parallel 14998157a70Sakolb# DUMMY at the end is used in case macro expansion produces an empty string to 15098157a70Sakolb# prevent everything going in parallel 15198157a70Sakolb# 15298157a70Sakolb.PARALLEL: $(PARALLEL_HEADERS) DUMMY 15398157a70Sakolb.PARALLEL: $(PARALLEL_DIRS) DUMMY 15498157a70Sakolb 155ead1f93eSLiane Praza$(SUBDIRS) head pkg: FRC 1567c478bd9Sstevel@tonic-gate @cd $@; pwd; $(MAKE) $(TARGET) 1577c478bd9Sstevel@tonic-gate 1587c478bd9Sstevel@tonic-gate# librpcsvc has a dependency on headers installed by 1597c478bd9Sstevel@tonic-gate# userheaders, hence the .WAIT before libheaders. 1607c478bd9Sstevel@tonic-gatesgs: rootdirs .WAIT sysheaders userheaders .WAIT \ 1615bbb4db2SGarrett D'Amore libheaders cmdheaders 1627c478bd9Sstevel@tonic-gate 1637c478bd9Sstevel@tonic-gate# 164232c6638Srie# Top-level setup target to setup the development environment that includes 165232c6638Srie# headers, tools and generated mapfiles. For open-only builds (i.e.: source 166232c6638Srie# trees w/o usr/closed), this also depends on the closedbins target (above) 167232c6638Srie# in order to properly seed the proto area. Note, although the tools are 168232c6638Srie# dependent on a number of constant mapfiles, the tools themselves are 169232c6638Srie# required to build the generated mapfiles. 1707345d6c1Sstevel# 17178add226Sjmcpsetup: closedbins bldtools sgs mapfiles 172232c6638Srie 17378add226Sjmcpbldtools: 1747c478bd9Sstevel@tonic-gate @cd tools; pwd; $(MAKE) install 1757c478bd9Sstevel@tonic-gate 1767c478bd9Sstevel@tonic-gate# /var/mail/:saved is a special case because of the colon in the name. 1777c478bd9Sstevel@tonic-gate# 1787c478bd9Sstevel@tonic-gaterootdirs: $(ROOTDIRS) 1797c478bd9Sstevel@tonic-gate $(INS) -d -m 775 $(ROOT)/var/mail/:saved 1807c478bd9Sstevel@tonic-gate 1817c478bd9Sstevel@tonic-gatelint: FRC 1827c478bd9Sstevel@tonic-gate $(MAKE) -f Makefile.lint 1837c478bd9Sstevel@tonic-gate 1847c478bd9Sstevel@tonic-gate_msgdirs: $(MSGDIRS) 1857c478bd9Sstevel@tonic-gate 1867c478bd9Sstevel@tonic-gate$(ROOTDIRS) $(MSGDIRS): 1877c478bd9Sstevel@tonic-gate $(INS.dir) 1887c478bd9Sstevel@tonic-gate 1897c478bd9Sstevel@tonic-gateuserheaders: FRC 1907c478bd9Sstevel@tonic-gate @cd head; pwd; $(MAKE) install_h 1917c478bd9Sstevel@tonic-gate 19278add226Sjmcplibheaders: bldtools 1937c478bd9Sstevel@tonic-gate @cd lib; pwd; $(MAKE) install_h 1947c478bd9Sstevel@tonic-gate 1957c478bd9Sstevel@tonic-gatesysheaders: FRC 1967c478bd9Sstevel@tonic-gate @cd uts; pwd; $(MAKE) install_h 1977c478bd9Sstevel@tonic-gate 1987c478bd9Sstevel@tonic-gatecmdheaders: FRC 1997c478bd9Sstevel@tonic-gate @cd cmd/fm; pwd; $(MAKE) install_h 2007c478bd9Sstevel@tonic-gate @cd cmd/mdb; pwd; $(MAKE) install_h 2017c478bd9Sstevel@tonic-gate 2027c478bd9Sstevel@tonic-gate# each xmod target depends on a corresponding MACH-specific pseudotarget 2037c478bd9Sstevel@tonic-gate# before doing common xmod work 2047c478bd9Sstevel@tonic-gate# 2057c478bd9Sstevel@tonic-gateall_xmod install_xmod: $$@_$(MACH) 2067c478bd9Sstevel@tonic-gate @cd uts/common/sys; pwd; $(MAKE) svvs_h 2077c478bd9Sstevel@tonic-gate 2087c478bd9Sstevel@tonic-gateall_xmod_sparc install_xmod_sparc: FRC 2097c478bd9Sstevel@tonic-gate @cd uts/sparc; pwd; \ 2107c478bd9Sstevel@tonic-gate $(MAKE) TARGET=$(TARGET) svvs pm wsdrv 2117c478bd9Sstevel@tonic-gate 2127c478bd9Sstevel@tonic-gateall_xmod_i386 install_xmod_i386: FRC 2137c478bd9Sstevel@tonic-gate @cd uts/i86; pwd; $(MAKE) TARGET=$(TARGET) svvs 2147c478bd9Sstevel@tonic-gate 2157c478bd9Sstevel@tonic-gatecheck: $(CHKHDRSUBDIRS) $(CHKMFSTSUBDIRS) 2167c478bd9Sstevel@tonic-gate 2177c478bd9Sstevel@tonic-gate# 2187c478bd9Sstevel@tonic-gate# Cross-reference customization: skip all of the subdirectories that 2197c478bd9Sstevel@tonic-gate# don't contain actual source code. 2207c478bd9Sstevel@tonic-gate# 221fb9f9b97Skupfer$(CLOSED_BUILD)XRDIRS += ../closed 222ead1f93eSLiane PrazaXRPRUNE = pkg prototypes xmod 2237c478bd9Sstevel@tonic-gateXRINCDIRS = uts/common head ucbhead 224fb9f9b97Skupfer$(CLOSED_BUILD)XRINCDIRS = uts/common ../closed/uts/common head ucbhead 2257c478bd9Sstevel@tonic-gate 2267c478bd9Sstevel@tonic-gatecscope.out tags: FRC 2277c478bd9Sstevel@tonic-gate $(XREF) -f -x $@ 2287c478bd9Sstevel@tonic-gate 2297c478bd9Sstevel@tonic-gateFRC: 2307c478bd9Sstevel@tonic-gate 2317c478bd9Sstevel@tonic-gate# EXPORT DELETE START 2327c478bd9Sstevel@tonic-gate 2337c478bd9Sstevel@tonic-gateXMOD_DELETE_FILES:sh = cat xmod/xmod_files 2347c478bd9Sstevel@tonic-gate 2357c478bd9Sstevel@tonic-gateEXPORT_SRC: 236fb9f9b97Skupfer @cd $(CLOSED)/cmd/cmd-inet/usr.lib/in.iked; pwd; $(MAKE) EXPORT_SRC 237fb9f9b97Skupfer @cd $(CLOSED)/cmd/cmd-inet/usr.lib/ike-certutils; pwd; \ 238fb9f9b97Skupfer $(MAKE) EXPORT_SRC 2397c478bd9Sstevel@tonic-gate @cd cmd/cmd-inet/usr.sbin; pwd; $(MAKE) EXPORT_SRC 240fb9f9b97Skupfer @cd $(CLOSED)/cmd/cmd-crypto/etc; pwd; $(MAKE) EXPORT_SRC 2417c478bd9Sstevel@tonic-gate @cd cmd/crypt; pwd; $(MAKE) EXPORT_SRC 2427c478bd9Sstevel@tonic-gate @cd cmd/gss/gssd; pwd; $(MAKE) EXPORT_SRC 2437c478bd9Sstevel@tonic-gate @cd cmd/krb5/kadmin; pwd; $(MAKE) EXPORT_SRC 2447c478bd9Sstevel@tonic-gate @cd cmd/sendmail/src; pwd; $(MAKE) EXPORT_SRC 2457c478bd9Sstevel@tonic-gate @cd common/crypto/aes; pwd; $(MAKE) EXPORT_SRC 2467c478bd9Sstevel@tonic-gate @cd common/crypto/arcfour; pwd; $(MAKE) EXPORT_SRC 2477c478bd9Sstevel@tonic-gate @cd common/crypto/blowfish; pwd; $(MAKE) EXPORT_SRC 2487c478bd9Sstevel@tonic-gate @cd common/crypto/des; pwd; $(MAKE) EXPORT_SRC 2497c478bd9Sstevel@tonic-gate @cd common/crypto/rsa; pwd; $(MAKE) EXPORT_SRC 2507c478bd9Sstevel@tonic-gate @cd lib/crypt_modules/bsdbf; pwd ; $(MAKE) EXPORT_SRC 2517c478bd9Sstevel@tonic-gate @cd lib/gss_mechs/mech_dummy; pwd; $(MAKE) EXPORT_SRC 2527c478bd9Sstevel@tonic-gate @cd lib/gss_mechs/mech_dh/backend; pwd; $(MAKE) EXPORT_SRC 2537c478bd9Sstevel@tonic-gate @cd lib/gss_mechs/mech_krb5; pwd; $(MAKE) EXPORT_SRC 2547c478bd9Sstevel@tonic-gate @cd lib/gss_mechs/mech_spnego; pwd; $(MAKE) EXPORT_SRC 2557c478bd9Sstevel@tonic-gate @cd lib/libcrypt; pwd; $(MAKE) EXPORT_SRC 2567c478bd9Sstevel@tonic-gate @cd lib/libgss; pwd; $(MAKE) EXPORT_SRC 257fb9f9b97Skupfer @cd $(CLOSED)/lib/libike; pwd; $(MAKE) EXPORT_SRC 2587c478bd9Sstevel@tonic-gate @cd lib/libnsl; pwd; $(MAKE) EXPORT_SRC 2597c478bd9Sstevel@tonic-gate @cd lib/pkcs11/pkcs11_softtoken/common; pwd; $(MAKE) EXPORT_SRC 2607c478bd9Sstevel@tonic-gate @cd lib/libsldap; pwd; $(MAKE) EXPORT_SRC 2617c478bd9Sstevel@tonic-gate @cd lib/libsasl; pwd; $(MAKE) EXPORT_SRC 2627c478bd9Sstevel@tonic-gate @cd lib/sasl_plugins; pwd; $(MAKE) EXPORT_SRC 2637c478bd9Sstevel@tonic-gate @cd lib/pam_modules/krb5; pwd; $(MAKE) EXPORT_SRC 26496bc9d7aSJohn.Zolnowsky@Sun.COM @cd psm/stand/boot; pwd; $(MAKE) EXPORT_SRC 2657c478bd9Sstevel@tonic-gate @cd uts/common/crypto/io; pwd; $(MAKE) EXPORT_SRC 2667c478bd9Sstevel@tonic-gate @cd uts/common/des; pwd; $(MAKE) EXPORT_SRC 2677c478bd9Sstevel@tonic-gate @cd uts/common/rpc; pwd; $(MAKE) EXPORT_SRC 2687c478bd9Sstevel@tonic-gate @cd uts/common/sys; pwd; $(MAKE) EXPORT_SRC 2697c478bd9Sstevel@tonic-gate @cd uts/common/gssapi/include; pwd; $(MAKE) EXPORT_SRC 2707c478bd9Sstevel@tonic-gate @cd uts/common/gssapi; pwd; $(MAKE) EXPORT_SRC 2717c478bd9Sstevel@tonic-gate @cd uts/common/gssapi/mechs/dummy; pwd; $(MAKE) EXPORT_SRC 2727c478bd9Sstevel@tonic-gate @cd uts/common/gssapi/mechs/krb5; pwd; $(MAKE) EXPORT_SRC 2737c478bd9Sstevel@tonic-gate @cd uts/common; pwd; $(MAKE) EXPORT_SRC 2747c478bd9Sstevel@tonic-gate @cd uts/sparc; pwd; $(MAKE) EXPORT_SRC 275fb9f9b97Skupfer @cd $(CLOSED)/uts/sun4u/forthdebug; pwd; $(MAKE) EXPORT_SRC 27696bc9d7aSJohn.Zolnowsky@Sun.COM @cd $(CLOSED)/uts/sun4v/forthdebug; pwd; $(MAKE) EXPORT_SRC 2777c478bd9Sstevel@tonic-gate @cd uts/intel; pwd; $(MAKE) EXPORT_SRC 2787c478bd9Sstevel@tonic-gate @cd uts/sun4u; pwd; $(MAKE) EXPORT_SRC 279fb9f9b97Skupfer @cd $(CLOSED)/uts/sun4v/io/ncp; pwd; $(MAKE) EXPORT_SRC 280a69d54d2SValerie Bubb Fenwick @cd $(CLOSED)/uts/sun4v/io/n2cp; pwd; $(MAKE) EXPORT_SRC 281ead1f93eSLiane Praza @cd pkg; pwd; $(MAKE) EXPORT_SRC 2827c478bd9Sstevel@tonic-gate $(RM) -r $(XMOD_DELETE_FILES) 2837c478bd9Sstevel@tonic-gate $(RM) Targetdirs+ 2847c478bd9Sstevel@tonic-gate sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 2857c478bd9Sstevel@tonic-gate < Targetdirs > Targetdirs+ 2867c478bd9Sstevel@tonic-gate $(MV) Targetdirs+ Targetdirs 2877c478bd9Sstevel@tonic-gate $(CHMOD) 444 Targetdirs 2887c478bd9Sstevel@tonic-gate $(RM) Makefile+ 2897c478bd9Sstevel@tonic-gate sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 2907c478bd9Sstevel@tonic-gate < Makefile > Makefile+ 2917c478bd9Sstevel@tonic-gate $(MV) Makefile+ Makefile 2927c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile 2937c478bd9Sstevel@tonic-gate $(RM) Makefile.master+ 2947c478bd9Sstevel@tonic-gate sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 2957c478bd9Sstevel@tonic-gate < Makefile.master > Makefile.master+ 2967c478bd9Sstevel@tonic-gate $(MV) Makefile.master+ Makefile.master 2977c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile.master 2987c478bd9Sstevel@tonic-gate 2997c478bd9Sstevel@tonic-gateCRYPT_SRC: 300e6abe8d4SJohn.Zolnowsky@Sun.COM @cd $(CLOSED)/cmd/cmd-crypto/etc; pwd; $(MAKE) CRYPT_SRC 301fb9f9b97Skupfer @cd $(CLOSED)/cmd/cmd-inet/usr.lib/in.iked; pwd; $(MAKE) CRYPT_SRC 302fb9f9b97Skupfer @cd $(CLOSED)/cmd/cmd-inet/usr.lib/ike-certutils; pwd; \ 303fb9f9b97Skupfer $(MAKE) CRYPT_SRC 3047c478bd9Sstevel@tonic-gate @cd lib/crypt_modules/bsdbf; pwd ; $(MAKE) CRYPT_SRC 3057c478bd9Sstevel@tonic-gate @cd lib/gss_mechs/mech_dummy; pwd; $(MAKE) CRYPT_SRC 3067c478bd9Sstevel@tonic-gate @cd lib/gss_mechs/mech_dh/backend; pwd; $(MAKE) CRYPT_SRC 3077c478bd9Sstevel@tonic-gate @cd lib/gss_mechs/mech_krb5; pwd; $(MAKE) CRYPT_SRC 3087c478bd9Sstevel@tonic-gate @cd lib/gss_mechs/mech_spnego; pwd; $(MAKE) CRYPT_SRC 309fb9f9b97Skupfer @cd $(CLOSED)/lib/libike; pwd; $(MAKE) CRYPT_SRC 3107c478bd9Sstevel@tonic-gate @cd lib/libnsl; pwd; $(MAKE) CRYPT_SRC 3117c478bd9Sstevel@tonic-gate @cd lib/libsasl; pwd; $(MAKE) CRYPT_SRC 3127c478bd9Sstevel@tonic-gate @cd lib/sasl_plugins; pwd; $(MAKE) CRYPT_SRC 3137c478bd9Sstevel@tonic-gate @cd lib/pam_modules/krb5; pwd; $(MAKE) CRYPT_SRC 3147c478bd9Sstevel@tonic-gate @cd uts/common/gssapi; pwd; $(MAKE) CRYPT_SRC 3157c478bd9Sstevel@tonic-gate @cd uts/common/gssapi/include; pwd; $(MAKE) CRYPT_SRC 3167c478bd9Sstevel@tonic-gate @cd uts/common/gssapi/mechs/dummy; pwd; $(MAKE) CRYPT_SRC 3177c478bd9Sstevel@tonic-gate @cd uts/common/gssapi/mechs/krb5; pwd; $(MAKE) CRYPT_SRC 3187c478bd9Sstevel@tonic-gate $(RM) Makefile+ 3197c478bd9Sstevel@tonic-gate sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 3207c478bd9Sstevel@tonic-gate < Makefile > Makefile+ 3217c478bd9Sstevel@tonic-gate $(MV) Makefile+ Makefile 3227c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile 3237c478bd9Sstevel@tonic-gate $(RM) Makefile.master+ 3247c478bd9Sstevel@tonic-gate sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \ 3257c478bd9Sstevel@tonic-gate < Makefile.master > Makefile.master+ 3267c478bd9Sstevel@tonic-gate $(MV) Makefile.master+ Makefile.master 3277c478bd9Sstevel@tonic-gate $(CHMOD) 444 Makefile.master 3287c478bd9Sstevel@tonic-gate 3297c478bd9Sstevel@tonic-gate# EXPORT DELETE END 3307c478bd9Sstevel@tonic-gate 3317c478bd9Sstevel@tonic-gateONC_PLUS: 3327c478bd9Sstevel@tonic-gate @cd cmd/login; pwd; $(MAKE) ONC_PLUS 3337c478bd9Sstevel@tonic-gate @cd uts; pwd; $(MAKE) ONC_PLUS 3347c478bd9Sstevel@tonic-gate 3357c478bd9Sstevel@tonic-gate# 3367c478bd9Sstevel@tonic-gate# Targets for reporting compiler versions; nightly uses these. 3377c478bd9Sstevel@tonic-gate# 3387c478bd9Sstevel@tonic-gate 3397c478bd9Sstevel@tonic-gatecc-version: 3401912d2c4Swesolows @if $($(MACH)_CC) -_versions >/dev/null 2>/dev/null; then \ 341010b217aSwesolows $(ECHO) 32-bit compiler; \ 3427c478bd9Sstevel@tonic-gate $(ECHO) $($(MACH)_CC); \ 3431912d2c4Swesolows $($(MACH)_CC) -_versions 2>&1 | \ 3441912d2c4Swesolows $(EGREP) '^(cw|cc|gcc|primary|shadow)'; \ 3457c478bd9Sstevel@tonic-gate else \ 346bf40377cSwesolows __COMPILER=`$($(MACH)_CC) -_compiler 2>/dev/null || $(TRUE)`;\ 347bf40377cSwesolows if [ -z "$$__COMPILER" ]; then \ 348010b217aSwesolows $(ECHO) No 32-bit compiler found; \ 3497c478bd9Sstevel@tonic-gate exit 1; \ 350bf40377cSwesolows else \ 351010b217aSwesolows $(ECHO) 32-bit compiler; \ 352bf40377cSwesolows $(ECHO) $($(MACH)_CC); \ 353bf40377cSwesolows $(ECHO) $$__COMPILER; \ 354bf40377cSwesolows $($(MACH)_CC) -V 2>&1 | head -1; \ 355bf40377cSwesolows fi; \ 3567c478bd9Sstevel@tonic-gate fi 3577c478bd9Sstevel@tonic-gate 3587c478bd9Sstevel@tonic-gatecc64-version: 3591912d2c4Swesolows @if $($(MACH64)_CC) -_versions >/dev/null 2>/dev/null; then \ 360010b217aSwesolows $(ECHO) 64-bit compiler; \ 3617c478bd9Sstevel@tonic-gate $(ECHO) $($(MACH64)_CC); \ 3621912d2c4Swesolows $($(MACH64)_CC) -_versions 2>&1 | \ 3631912d2c4Swesolows $(EGREP) '^(cw|cc|gcc|primary|shadow)'; \ 3647c478bd9Sstevel@tonic-gate else \ 365bf40377cSwesolows __COMPILER=`$($(MACH64)_CC) -_compiler 2>/dev/null || $(TRUE)`;\ 366bf40377cSwesolows if [ -z "$$__COMPILER" ]; then \ 3677c478bd9Sstevel@tonic-gate $(ECHO) No 64-bit compiler found; \ 368bf40377cSwesolows exit 1; \ 369bf40377cSwesolows else \ 370010b217aSwesolows $(ECHO) 64-bit compiler; \ 371bf40377cSwesolows $(ECHO) $($(MACH64)_CC); \ 372bf40377cSwesolows $(ECHO) $$__COMPILER; \ 373bf40377cSwesolows $($(MACH64)_CC) -V 2>&1 | head -1; \ 374bf40377cSwesolows fi; \ 3757c478bd9Sstevel@tonic-gate fi 3767c478bd9Sstevel@tonic-gate 3777c478bd9Sstevel@tonic-gatejava-version: 3787c478bd9Sstevel@tonic-gate @if [ -x "$(JAVAC)" ]; then \ 3797c478bd9Sstevel@tonic-gate $(ECHO) $(JAVAC); \ 3807c478bd9Sstevel@tonic-gate $(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1; \ 3817c478bd9Sstevel@tonic-gate else \ 3827c478bd9Sstevel@tonic-gate $(ECHO) No Java compiler found; \ 3837c478bd9Sstevel@tonic-gate exit 1; \ 3847c478bd9Sstevel@tonic-gate fi 385