Makefile revision b99c70f32a31d2e72af250f2182651ba83724506
2772c0bad271d7a345ef7779dd318fa6098a6bfand#
2772c0bad271d7a345ef7779dd318fa6098a6bfand# CDDL HEADER START
2772c0bad271d7a345ef7779dd318fa6098a6bfand#
a9bd7a08fb2fb0f5ce6cc841667aec2abe9272d1nd# The contents of this file are subject to the terms of the
2772c0bad271d7a345ef7779dd318fa6098a6bfand# Common Development and Distribution License (the "License").
acc36ab93565d2880447d535da6ca6e5feac7a70nd# You may not use this file except in compliance with the License.
acc36ab93565d2880447d535da6ca6e5feac7a70nd#
acc36ab93565d2880447d535da6ca6e5feac7a70nd# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
acc36ab93565d2880447d535da6ca6e5feac7a70nd# or http://www.opensolaris.org/os/licensing.
acc36ab93565d2880447d535da6ca6e5feac7a70nd# See the License for the specific language governing permissions
acc36ab93565d2880447d535da6ca6e5feac7a70nd# and limitations under the License.
acc36ab93565d2880447d535da6ca6e5feac7a70nd#
acc36ab93565d2880447d535da6ca6e5feac7a70nd# When distributing Covered Code, include this CDDL HEADER in each
acc36ab93565d2880447d535da6ca6e5feac7a70nd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
acc36ab93565d2880447d535da6ca6e5feac7a70nd# If applicable, add the following below this CDDL HEADER, with the
acc36ab93565d2880447d535da6ca6e5feac7a70nd# fields enclosed by brackets "[]" replaced with your own identifying
acc36ab93565d2880447d535da6ca6e5feac7a70nd# information: Portions Copyright [yyyy] [name of copyright owner]
acc36ab93565d2880447d535da6ca6e5feac7a70nd#
acc36ab93565d2880447d535da6ca6e5feac7a70nd# CDDL HEADER END
acc36ab93565d2880447d535da6ca6e5feac7a70nd#
acc36ab93565d2880447d535da6ca6e5feac7a70nd
7db9f691a00ead175b03335457ca296a33ddf31bnd#
2772c0bad271d7a345ef7779dd318fa6098a6bfand# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2772c0bad271d7a345ef7779dd318fa6098a6bfand# Use is subject to license terms.
2772c0bad271d7a345ef7779dd318fa6098a6bfand#
2772c0bad271d7a345ef7779dd318fa6098a6bfand
2772c0bad271d7a345ef7779dd318fa6098a6bfandinclude $(SRC)/Makefile.master
2772c0bad271d7a345ef7779dd318fa6098a6bfand
2772c0bad271d7a345ef7779dd318fa6098a6bfandsparc_SUBDIRS= \
52bc21ad2115333a8295c5f3e4f328d7431e6989nd SUNWbcp \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcakr.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcakr.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcakrnt2000.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcar.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcar.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcart200.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcpc.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcpc.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcpr.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcti2.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcvc.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWcvcr.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWdcsr \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWdcsu \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWdrcr.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWdrr.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWdscpr.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWdscpu.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWefcl \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWefcr \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWefcu \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWefc.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWefck \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWerid \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWfruip.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWfsr \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWfsu \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWhmdu \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWidn.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWifp \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWifph \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWkvm.c \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWkvm.d \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWkvm.m \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWkvm.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWkvm.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWkvmt200.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWldomr.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWldomu.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWluxd.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWluxl \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWluxopr \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWn2cp.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWniumx.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWnxge.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWnxge.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWonmtst.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWonmtst.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWiopc.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWiopc.v \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWpdu \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWpmcsr \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWpmcsu \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWpstl.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWqfed \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWqus \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWsckmr \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWsckmu.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWsckm.u \
2772c0bad271d7a345ef7779dd318fa6098a6bfand SUNWsfdr.u \
SUNWsfdrr.u \
SUNWssad \
SUNWus.u \
SUNWust1.v \
SUNWust2.v
i386_SUBDIRS= \
SUNWad810 \
SUNWadixp \
SUNWagp \
SUNWagph \
SUNWamd8111s \
SUNWahci \
SUNWamr \
SUNWamt \
SUNWamt-lms \
SUNWarcmsr \
SUNWarn \
SUNWatheros \
SUNWatigfx \
SUNWatge \
SUNWatu \
SUNWaudiocmi \
SUNWaudioemu10k \
SUNWaudiohd \
SUNWaudiosolo \
SUNWaudiovia97 \
SUNWbfe \
SUNWcakr.i \
SUNWcakrx.i \
SUNWcar.i \
SUNWcarx.i \
SUNWcpc.i \
SUNWcpr.i \
SUNWdrmr \
SUNWgrub \
SUNWgrubS \
SUNWdcopy \
SUNWfipe \
SUNWfruip.i \
SUNWipw \
SUNWiwh \
SUNWiwi \
SUNWiwk \
SUNWiwp \
SUNWkvm.i \
SUNWlxr \
SUNWlxu \
SUNWmegasas \
SUNWmv88sx \
SUNWmwl \
SUNWbcmsata \
SUNWnge \
SUNWntfsprogs \
SUNWnvsata \
SUNWnxge \
SUNWonmtst.i \
SUNWos86r \
SUNWparted \
SUNWpmcsr \
SUNWpmcsu \
SUNWpsdcr \
SUNWpsdir \
SUNWpsh \
SUNWralink \
SUNWrmodr \
SUNWrmodu \
SUNWrtw \
SUNWrum \
SUNWrwd \
SUNWrwn \
SUNWsdcard \
SUNWsi3124 \
SUNWuath \
SUNWural \
SUNWurtw \
SUNWvia823x \
SUNWwpi \
SUNWxdt \
SUNWxsvc \
SUNWxvmipar \
SUNWxvmipau \
SUNWxvmpv \
SUNWzyd \
SUNWntxn
i386_XMODS= \
BRCMbnx \
BRCMbnxe \
SUNWadpu320 \
SUNWlsimega
COMMON_SUBDIRS= \
SUNW1394h \
SUNW1394 \
SUNWaac \
SUNWaccr \
SUNWaccu \
SUNWafe \
SUNWapct \
SUNWauda \
SUNWaudd \
SUNWaudf \
SUNWaudh \
SUNWaudiols \
SUNWaudiop16x \
SUNWaudit \
SUNWatfsr \
SUNWatfsu \
SUNWarc \
SUNWarbel \
SUNWarcr \
SUNWastdev \
SUNWav1394 \
SUNWbart \
SUNWbge \
SUNWbip \
SUNWbipr \
SUNWbnur \
SUNWbnuu \
SUNWbridger \
SUNWbridgeu \
SUNWbsr \
SUNWbsu \
SUNWbtool \
SUNWcdrw \
SUNWcfcl \
SUNWcfclr \
SUNWcfpl \
SUNWcfplr \
SUNWchxge \
SUNWckr \
SUNWcnetr \
SUNWcnsr \
SUNWcnsu \
SUNWcpcu \
SUNWcsd \
SUNWcsr \
SUNWcsu \
SUNWcsl \
SUNWcslr \
SUNWcstl \
SUNWdcaf \
SUNWdcar \
SUNWdhcm \
SUNWdhcsb \
SUNWdhcsr \
SUNWdhcsu \
SUNWdmfe \
SUNWdmgtr \
SUNWdmgtu \
SUNWdsdr \
SUNWdsdu \
SUNWdoc \
SUNWdpl \
SUNWdtrc \
SUNWdtrp \
SUNWdtrt \
SUNWemlxs \
SUNWemlxu \
SUNWesu \
SUNWfchba \
SUNWfchbar \
SUNWfcip \
SUNWfcmdb \
SUNWfcp \
SUNWfcprt \
SUNWfcprtr \
SUNWfcsm \
SUNWfctl \
SUNWfcoe \
SUNWfcoeu \
SUNWfcoet \
SUNWfcoei \
SUNWfilebench \
SUNWfmd \
SUNWfmdr \
SUNWfruid \
SUNWfss \
SUNWftdur \
SUNWftduu \
SUNWftpr \
SUNWftpu \
SUNWfwdc \
SUNWfwdcu \
SUNWfwflash \
SUNWgrubr \
SUNWgssdh \
SUNWgssc \
SUNWgss \
SUNWgssk \
SUNWhal \
SUNWhalr \
SUNWhea \
SUNWhermon \
SUNWhmd \
SUNWhwdata \
SUNWhxge \
SUNWib \
SUNWibdmar \
SUNWibsdpu \
SUNWibsdp \
SUNWiir \
SUNWiiu \
SUNWigb \
SUNWilb \
SUNWilbr \
SUNWima \
SUNWimac \
SUNWimar \
SUNWimacr \
SUNWinstallint \
SUNWintgige \
SUNWiotu \
SUNWioth \
SUNWio-tools \
SUNWipc \
SUNWipfh \
SUNWipfr \
SUNWipfu \
SUNWipoib \
SUNWippcore \
SUNWipplr \
SUNWipplu \
SUNWiscsidmr \
SUNWiscsidmu \
SUNWiscsir \
SUNWiscsitgtr \
SUNWiscsitgtu \
SUNWiscsitr \
SUNWiscsitu \
SUNWiscsiu \
SUNWisns \
SUNWisnsadm \
SUNWisnsr \
SUNWixgb \
SUNWixgbe \
SUNWkrbr \
SUNWkrbu \
SUNWlatencytop \
SUNWldskint \
SUNWlibsasl \
SUNWllc \
SUNWllcr\
SUNWlldap \
SUNWkey \
SUNWloc \
SUNWluxop \
SUNWmdar \
SUNWmdau \
SUNWmdb \
SUNWmdbdm \
SUNWmdbr \
SUNWmddr \
SUNWmdr \
SUNWmdu \
SUNWmibii \
SUNWmmsr \
SUNWmmsu \
SUNWmpapi \
SUNWmpapir \
SUNWmpathadm \
SUNWmpsvplr \
SUNWmptsas \
SUNWmrsas \
SUNWmxfe \
SUNWmyri10ge \
SUNWncar \
SUNWncau \
SUNWndmpr \
SUNWndmpu \
SUNWnetcat \
SUNWnfsckr \
SUNWnfsskr \
SUNWnfssr \
SUNWnfscr \
SUNWnfssu \
SUNWnfscu \
SUNWnisr \
SUNWnisu \
SUNWnwamintr \
SUNWnwamintu \
SUNWonfmes \
SUNWonzfsr \
SUNWonzfs \
SUNWosdem \
SUNWypr \
SUNWypu \
SUNWpacketh \
SUNWpacketu \
SUNWpapi \
SUNWpcan \
SUNWpcelx \
SUNWpcmci \
SUNWpcmcu \
SUNWpcmem \
SUNWpcser \
SUNWpcu \
SUNWpcwl \
SUNWpd \
SUNWperl584core \
SUNWperl584usr \
SUNWpiclh \
SUNWpiclu \
SUNWpiclr \
SUNWpkgcmdsr \
SUNWpkgcmdsu \
SUNWpolkit \
SUNWpool \
SUNWpoold \
SUNWpoolr \
SUNWpowertop \
SUNWppm \
SUNWppmr \
SUNWpppd \
SUNWpppdu \
SUNWpppdr \
SUNWpppdt \
SUNWpppg \
SUNWpppgS \
SUNWpsdpr \
SUNWpsf \
SUNWpsm-ipp \
SUNWpsm-lpd \
SUNWpmr \
SUNWpmu \
SUNWpsr \
SUNWpsu \
SUNWqlc \
SUNWqlcu \
SUNWqos \
SUNWqosu \
SUNWrcapr \
SUNWrcapu \
SUNWrcmdc \
SUNWrcmdr \
SUNWrcmds \
SUNWrdcr \
SUNWrdcu \
SUNWrds \
SUNWrge \
SUNWrmvolmgr \
SUNWrmvolmgrr \
SUNWrmwbr \
SUNWrmwbu \
SUNWroute \
SUNWroutr \
SUNWrpcib \
SUNWrsg \
SUNWrsgk \
SUNWrsm \
SUNWrsmo \
SUNWrtls \
SUNWs10brandr \
SUNWs10brandu \
SUNWsacom \
SUNWsasnm \
SUNWsbp2 \
SUNWscmr \
SUNWscmu \
SUNWscpr \
SUNWscpu \
SUNWscplp \
SUNWscsa1394 \
SUNWscsip \
SUNWses \
SUNWsfe \
SUNWslpr \
SUNWslpu \
SUNWsmapi \
SUNWsmbfskr \
SUNWsmbfsr \
SUNWsmbfsu \
SUNWsmbskr \
SUNWsmbsr \
SUNWsmbsu \
SUNWsmedia \
SUNWsmediar \
SUNWsmhba \
SUNWsmhbar \
SUNWsmpd \
SUNWsn1rint \
SUNWsn1uint \
SUNWsndmr \
SUNWsndmu \
SUNWspnego \
SUNWspsvr \
SUNWspsvu \
SUNWsrptr \
SUNWsrptu \
SUNWsshcu \
SUNWsshr \
SUNWsshu \
SUNWsshdr \
SUNWsshdu \
SUNWstmf \
SUNWstmfu \
SUNWtavor \
SUNWtcpd \
SUNWtcpdS \
SUNWtecla \
SUNWter \
SUNWtftpr \
SUNWtftp \
SUNWtnetc \
SUNWtnetr \
SUNWtnetd \
SUNWtnfc \
SUNWtnfd \
SUNWtoo \
SUNWtpm \
SUNWtsg \
SUNWtsr \
SUNWtsu \
SUNWuacm \
SUNWucbt \
SUNWudaplr \
SUNWudapltr \
SUNWudapltu \
SUNWudaplu \
SUNWudf \
SUNWudfr \
SUNWuedg \
SUNWuftdi \
SUNWugen \
SUNWugenu \
SUNWuksp \
SUNWukspfw \
SUNWuprl \
SUNWusbvc \
SUNWusb \
SUNWusbs \
SUNWusbu \
SUNWuwb \
SUNWvr \
SUNWvscankr \
SUNWvscanr \
SUNWvscanu \
SUNWwlanr \
SUNWwlanu \
SUNWwpar \
SUNWwpau \
SUNWxcu4 \
SUNWxcu6 \
SUNWxwdv \
SUNWxge \
SUNWyge \
SUNWzfskr \
SUNWzfsr \
SUNWzfsu \
SUNWzoneint \
SUNWzoner \
SUNWzoneu
COMMON_XMODS= \
SUNWcryptoint \
SUNWibsdpib \
SUNWkdcr \
SUNWkdcu \
SUNWsvvs \
SUNWwbint \
SUNWwbsup
SUBDIRS= $($(MACH)_SUBDIRS) $(COMMON_SUBDIRS)
XMODS= $($(MACH)_XMODS) $(COMMON_XMODS)
all := TARGET= all
install := TARGET= install
install_h := TARGET= install_h
clean := TARGET= clean
clobber := TARGET= clobber
%: %.ksh
$(RM) $@
cp $< $@
chmod +x $@
.KEEP_STATE:
.PARALLEL: $(SUBDIRS) $(XMODS)
all install: awk_pkginfo $(SUBDIRS) $(XMODS)
clean clobber: $(SUBDIRS) $(XMODS)
$(RM) awk_pkginfo bld_awk_pkginfo
$(SUBDIRS): FRC
@cd $@; pwd; $(MAKE) $(TARGET)
$(XMODS): FRC
@if [ -f $@/Makefile ]; then \
cd $@; pwd; $(MAKE) $(TARGET); \
else \
true; \
fi
awk_pkginfo: bld_awk_pkginfo
./bld_awk_pkginfo -m $(MACH) -p "$(RELEASE)/$(VERSION)" -o $@ -v \
$(ONVERS)
FRC:
# EXPORT DELETE START
EXPORT_SRC:
$(RM) -r $(sparc_XMODS) $(i386_XMODS) $(COMMON_XMODS)
$(RM) Makefile+
sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< Makefile > Makefile+
$(MV) Makefile+ Makefile
$(CHMOD) 444 Makefile
$(RM) SUNWos86r/prototype_i386+
$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< SUNWos86r/prototype_i386 > SUNWos86r/prototype_i386+
$(MV) -f SUNWos86r/prototype_i386+ SUNWos86r/prototype_i386
$(CHMOD) 444 SUNWos86r/prototype_i386
$(RM) SUNWcsl/prototype_com+
$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< SUNWcsl/prototype_com > SUNWcsl/prototype_com+
$(MV) -f SUNWcsl/prototype_com+ SUNWcsl/prototype_com
$(CHMOD) 444 SUNWcsl/prototype_com
$(RM) SUNWcsl/prototype_i386+
$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< SUNWcsl/prototype_i386 > SUNWcsl/prototype_i386+
$(MV) -f SUNWcsl/prototype_i386+ SUNWcsl/prototype_i386
$(CHMOD) 444 SUNWcsl/prototype_i386
$(RM) SUNWcsl/prototype_sparc+
$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
< SUNWcsl/prototype_sparc > SUNWcsl/prototype_sparc+
$(MV) -f SUNWcsl/prototype_sparc+ SUNWcsl/prototype_sparc
$(CHMOD) 444 SUNWcsl/prototype_sparc
CRYPT_SRC:
$(RM) SUNWcryptoint/prototype_com+
$(SED) -e "/^# CRYPT DELETE START/,/^# CRYPT DELETE END/d" \
< SUNWcryptoint/prototype_com > SUNWcryptoint/prototype_com+
$(MV) -f SUNWcryptoint/prototype_com+ SUNWcryptoint/prototype_com
$(CHMOD) 444 SUNWcryptoint/prototype_com
# EXPORT DELETE END