Makefile revision 25cf1a301a396c38e8adf52c15f537b80d2483f7
205c10066a0acfeac52d1a135671f41d207b8557Automatic Updater# CDDL HEADER START
1167fc7904c5f0a472f8df207ac46dd52c7f1ec8Automatic Updater# The contents of this file are subject to the terms of the
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# Common Development and Distribution License (the "License").
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# You may not use this file except in compliance with the License.
cd0aa2d941d1438fabb5337f1f38c49478edf71dAutomatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrews# See the License for the specific language governing permissions
78cb74fab4665da2e2641ba909c6f59f74cc4193Automatic Updater# and limitations under the License.
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# When distributing Covered Code, include this CDDL HEADER in each
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# CDDL HEADER END
58be84825d7f5de30e50eb7206b37227ecd8055bAutomatic Updater# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater# Use is subject to license terms.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# ident "%Z%%M% %I% %E% SMI"
831f79c4310a7d38fc3475ccfff531b2b2535641Automatic Updater# Makefile for system source
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# include global definitions
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# the Targetdirs file is the AT&T target.dirs file in a makefile format.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# it defines TARGETDIRS and ROOTDIRS.
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# sparc needs to build both stand and psm, in that order
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# x86 needs to build psm and GRUB
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterSUBDIRS= $(COMMON_SUBDIRS) $($(MACH)_SUBDIRS)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# UCB headers are bug-for-bug compatible and not checkable against the header
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# The check target also causes smf(5) service manifests to be validated.
129090f0f6f91753b4a085ab635e28549fd018adAutomatic UpdaterMSGDIRS= $(MSGROOT) $(MSGDDIRS) $(MSGROOT)/LC_TIME
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# Note: install only builds the all target for the pkgdefs
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# directory. We are not yet ready to have an install
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# build create 'packages' also. To build packages
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# cd pkgdefs and do a 'make install'
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonall: closedbins sgs .WAIT $(SUBDIRS) pkg_all
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterinstall: closedbins sgs .WAIT $(SUBDIRS) pkg_all .WAIT _msg
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updater# for a complete build from scratch
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# target for building a proto area for reference via the ROOT macro
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews# build all ucb libraries
0977f3f39ef6728516be7976452b9122c8f5607aAutomatic Updater# Base subset of rootproto, excluding ucb libraries
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater @if [ "$$CLOSED_IS_PRESENT" = no ]; then \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater if [ ! -d "$$ON_CLOSED_BINS/root_$(MACH)" ]; then \
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater $(ECHO) "Error: if closed sources are not present," \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater "ON_CLOSED_BINS must point to closed binaries."; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(ECHO) "Copying closed binaries from $$ON_CLOSED_BINS"; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater (cd $$ON_CLOSED_BINS/root_$(MACH); tar cf - .) | \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater.PARALLEL: sysheaders userheaders libheaders ucbheaders cmdheaders \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater# librpcsvc has a dependency on headers installed by
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# userheaders, hence the .WAIT before libheaders.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonsgs: rootdirs .WAIT sysheaders userheaders .WAIT \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater libheaders ucbheaders cmdheaders commonheaders
e8c7dc2a5ce48f11c07a67c9923eeb8f419ff19fEvan Hunt# top-level setup target (headers/tools)
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# /var/mail/:saved is a special case because of the colon in the name.
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater $(CH)$(CHOWN) root $(ROOT)/var/mail/:saved
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater $(CH)$(CHGRP) mail $(ROOT)/var/mail/:saved
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater# each xmod target depends on a corresponding MACH-specific pseudotarget
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater# before doing common xmod work
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater @cd uts/i86; pwd; $(MAKE) TARGET=$(TARGET) svvs
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Cross-reference customization: skip all of the subdirectories that
c453a50776145e9c1c3fc9c846cfa11f42505081Automatic Updater# don't contain actual source code.
957a8884fb712885cdd8ef0474f5ff95ddc46b20Automatic Updater$(CLOSED_BUILD)XRINCDIRS = uts/common ../closed/uts/common head ucbhead
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# EXPORT DELETE START
cf7e98f59148b559946a7f1ca728471374f1eef3Automatic Updater @cd $(CLOSED)/cmd/cmd-inet/usr.lib/in.iked; pwd; $(MAKE) EXPORT_SRC
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater @cd $(CLOSED)/cmd/cmd-inet/usr.lib/ike-certutils; pwd; \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater @cd cmd/cmd-inet/usr.sbin; pwd; $(MAKE) EXPORT_SRC
361bec4bdec45042897fb479b7071cd05bbd56b9Automatic Updater @cd $(CLOSED)/cmd/cmd-crypto/etc; pwd; $(MAKE) EXPORT_SRC
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater @cd cmd/krb5/kadmin; pwd; $(MAKE) EXPORT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd cmd/sendmail/src; pwd; $(MAKE) EXPORT_SRC
129090f0f6f91753b4a085ab635e28549fd018adAutomatic Updater @cd common/crypto/arcfour; pwd; $(MAKE) EXPORT_SRC
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater @cd common/crypto/blowfish; pwd; $(MAKE) EXPORT_SRC
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater @cd common/crypto/rsa; pwd; $(MAKE) EXPORT_SRC
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson @cd lib/crypt_modules/bsdbf; pwd ; $(MAKE) EXPORT_SRC
e2caa7536302de34de6cc04025abcd53dc3a499aAutomatic Updater @cd lib/gss_mechs/mech_dummy; pwd; $(MAKE) EXPORT_SRC
56e7dc0c24b04210dcbffb180a9e35644fb820daAutomatic Updater @cd lib/gss_mechs/mech_dh/backend; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd lib/gss_mechs/mech_krb5; pwd; $(MAKE) EXPORT_SRC
8292deab031e7599cd7622aa7675fbe139ca6095Mark Andrews @cd lib/gss_mechs/mech_spnego; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd $(CLOSED)/lib/libelfsign; pwd; $(MAKE) EXPORT_SRC
699487d8026a2b931bdce8ce3ae6bc1025d639fbMark Andrews @cd $(CLOSED)/lib/libike; pwd; $(MAKE) EXPORT_SRC
b109432c3a939bff66a463be86c371bd88efe3aaAutomatic Updater @cd lib/pkcs11/pkcs11_softtoken/common; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd lib/pkcs11/libpkcs11; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd lib/sasl_plugins; pwd; $(MAKE) EXPORT_SRC
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews @cd $(CLOSED)/lib/smartcard; pwd; $(MAKE) EXPORT_SRC
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews @cd lib/pam_modules/krb5; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd lib/libresolv2; pwd; $(MAKE) EXPORT_SRC
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews @cd $(CLOSED)/tools/elfsign; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd uts/common/crypto/io; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd uts/common/des; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd uts/common/rpc; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd uts/common/sys; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd uts/common/gssapi/include; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd uts/common/gssapi; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd uts/common/gssapi/mechs/dummy; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd uts/common/gssapi/mechs/krb5; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd $(CLOSED)/uts/sun4u/forthdebug; pwd; $(MAKE) EXPORT_SRC
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater @cd $(CLOSED)/uts/sun4u/chalupa; pwd; $(MAKE) EXPORT_SRC
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater @cd uts/sun4u/cherrystone; pwd; $(MAKE) EXPORT_SRC
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater @cd uts/sun4u/daktari; pwd; $(MAKE) EXPORT_SRC
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater @cd uts/sun4u/enchilada; pwd; $(MAKE) EXPORT_SRC
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater @cd $(CLOSED)/uts/sun4u/ents; pwd; $(MAKE) EXPORT_SRC
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater @cd uts/sun4u/excalibur; pwd; $(MAKE) EXPORT_SRC
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater @cd uts/sun4u/chicago; pwd; $(MAKE) EXPORT_SRC
e8fc8c884b44371784805e1e0d3100da403dd3f1Automatic Updater @cd uts/sun4u/boston; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd uts/sun4u/seattle; pwd; $(MAKE) EXPORT_SRC
807ffe7aba4095b2f25c75ac1459f9efcd017eebMark Andrews @cd uts/sun4u/littleneck; pwd; $(MAKE) EXPORT_SRC
7d12a6b412fe47e6d6582923fd6954ab8cd0baebAutomatic Updater @cd $(CLOSED)/uts/sun4u/lw2plus; pwd; $(MAKE) EXPORT_SRC
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater @cd uts/sun4u/mpxu; pwd; $(MAKE) EXPORT_SRC
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater @cd uts/sun4u/opl; pwd; $(MAKE) EXPORT_SRC
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews @cd uts/sun4u/serengeti; pwd; $(MAKE) EXPORT_SRC
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater @cd uts/sun4u/starcat; pwd; $(MAKE) EXPORT_SRC
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @cd uts/sun4u/taco; pwd; $(MAKE) EXPORT_SRC
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews @cd $(CLOSED)/uts/sun4v/io/ncp; pwd; $(MAKE) EXPORT_SRC
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater @cd $(CLOSED)/cmd/cmd-inet/usr.lib/in.iked; pwd; $(MAKE) CRYPT_SRC
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @cd $(CLOSED)/cmd/cmd-inet/usr.lib/ike-certutils; pwd; \
b1265b5a06df36d490d4bdf54284fb133a1f5a84Automatic Updater @cd lib/crypt_modules/bsdbf; pwd ; $(MAKE) CRYPT_SRC
bc0a4c01beede169df81a3ee5b614ed9e82339dbAutomatic Updater @cd lib/gss_mechs/mech_dummy; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd lib/gss_mechs/mech_dh/backend; pwd; $(MAKE) CRYPT_SRC
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater @cd lib/gss_mechs/mech_krb5; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd lib/gss_mechs/mech_spnego; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd $(CLOSED)/lib/libelfsign; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd $(CLOSED)/lib/libike; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd lib/sasl_plugins; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd lib/pam_modules/krb5; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd $(CLOSED)/tools/elfsign; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd uts/common/gssapi; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd uts/common/gssapi/include; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd uts/common/gssapi/mechs/dummy; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington @cd uts/common/gssapi/mechs/krb5; pwd; $(MAKE) CRYPT_SRC
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# EXPORT DELETE END
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Targets for reporting compiler versions; nightly uses these.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington __COMPILER=`$($(MACH)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington if [ -z "$$__COMPILER" ]; then \
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater __COMPILER=`$($(MACH64)_CC) -_compiler 2>/dev/null || $(TRUE)`;\
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater if [ -z "$$__COMPILER" ]; then \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews $(JAVA_ROOT)/bin/java -fullversion 2>&1 | head -1; \