Makefile revision dbe2c71a7db2cff886452240ccf3f5866b59bf21
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# ident "%Z%%M% %I% %E% SMI"
#
include $(SRC)/Makefile.master
sparc_SUBDIRS= \
SUNWbcp \
SUNWcakr.u \
SUNWcakr.v \
SUNWcakrnt2000.v \
SUNWcar.u \
SUNWcar.v \
SUNWcart200.v \
SUNWcg6.u \
SUNWcg6h \
SUNWcpc.u \
SUNWcpc.v \
SUNWcpr.u \
SUNWcti2.u \
SUNWcvc.u \
SUNWcvcr.u \
SUNWdcsr \
SUNWdcsu \
SUNWdrcr.u \
SUNWdrr.u \
SUNWdscpr.u \
SUNWdscpu.u \
SUNWefcl \
SUNWefcr \
SUNWefcu \
SUNWefc.u \
SUNWefck \
SUNWerid \
SUNWfruid \
SUNWfruip.u \
SUNWhmd \
SUNWhmdu \
SUNWidn.u \
SUNWifp \
SUNWifph \
SUNWjcom \
SUNWjib \
SUNWkvm.c \
SUNWkvm.d \
SUNWkvm.m \
SUNWkvm.u \
SUNWkvm.v \
SUNWkvmt200.v \
SUNWldomr.v \
SUNWldomu.v \
SUNWluxd.u \
SUNWluxl \
SUNWn2cp.v \
SUNWn2cpact.v \
SUNWniumx.v \
SUNWnxge.u \
SUNWnxge.v \
SUNWonmtst.u \
SUNWonmtst.v \
SUNWiopc.u \
SUNWiopc.v \
SUNWpdu \
SUNWpstl.u \
SUNWsckmr \
SUNWsckmu.u \
SUNWsckm.u \
SUNWscmhdlr \
SUNWsfdr.u \
SUNWsfdrr.u \
SUNWssad \
SUNWstc.u \
SUNWus.u \
SUNWust1.v \
SUNWust2.v \
SUNWwrsa.u \
SUNWwrsd.u \
SUNWwrsm.u \
SUNWwrsu.u
sparc_XMODS=
i386_SUBDIRS= \
BRCMbnx \
SUNWaac \
SUNWad810 \
SUNWadixp \
SUNWagp \
SUNWagph \
SUNWamd8111s \
SUNWahci \
SUNWamr \
SUNWatheros \
SUNWaudiohd \
SUNWcakr.i \
SUNWcar.i \
SUNWcpc.i \
SUNWdfb.i \
SUNWdrmr \
SUNWgrub \
SUNWgrubS \
SUNWipw \
SUNWiwi \
SUNWkvm.i \
SUNWlxr \
SUNWlxu \
SUNWmv88sx \
SUNWnxge.i \
SUNWonmtst.i \
SUNWos86r \
SUNWpsdcr \
SUNWpsdir \
SUNWpsh \
SUNWrmodr \
SUNWrmodu \
SUNWrtls \
SUNWsi3124 \
SUNWvia823x \
SUNWxsvc
i386_XMODS= \
SUNWadpu320 \
SUNWlsimega \
SUNWnge
COMMON_SUBDIRS= \
SUNW1394h \
SUNW1394 \
SUNWaccr \
SUNWaccu \
SUNWapct \
SUNWauda \
SUNWaudd \
SUNWaudf \
SUNWaudh \
SUNWaudit \
SUNWatfsr \
SUNWatfsu \
SUNWarc \
SUNWarbel \
SUNWarcr \
SUNWav1394 \
SUNWbart \
SUNWbge \
SUNWbip \
SUNWbipr \
SUNWbnur \
SUNWbnuu \
SUNWbsr \
SUNWbsu \
SUNWbtool \
SUNWcdrw \
SUNWckr \
SUNWcnetr \
SUNWcnsr \
SUNWcnsu \
SUNWcpcu \
SUNWcsd \
SUNWcsr \
SUNWcsu \
SUNWcsl \
SUNWcslr \
SUNWcstl \
SUNWdcaf \
SUNWdcar \
SUNWdfbh \
SUNWdhcm \
SUNWdhcsb \
SUNWdhcsr \
SUNWdhcsu \
SUNWdmgtr \
SUNWdmgtu \
SUNWdoc \
SUNWdpl \
SUNWdtrc \
SUNWdtrp \
SUNWdtrt \
SUNWesu \
SUNWfmd \
SUNWfmdr \
SUNWfss \
SUNWftdur \
SUNWftduu \
SUNWftpr \
SUNWftpu \
SUNWfwdc \
SUNWfwdcu \
SUNWgssdh \
SUNWgssc \
SUNWgss \
SUNWgssk \
SUNWhal \
SUNWhalr \
SUNWhea \
SUNWhermon \
SUNWhwdata \
SUNWib \
SUNWibsdpu \
SUNWibsdp \
SUNWintgige \
SUNWiotu \
SUNWioth \
SUNWipc \
SUNWipfh \
SUNWipfr \
SUNWipfu \
SUNWipoib \
SUNWippcore \
SUNWipplr \
SUNWipplu \
SUNWiscsitgtr \
SUNWiscsitgtu \
SUNWixgb \
SUNWkrbr \
SUNWkrbu \
SUNWlibsasl \
SUNWllc \
SUNWllcr\
SUNWlldap \
SUNWlp-cmds \
SUNWlpr-cmds \
SUNWkey \
SUNWloc \
SUNWmdar \
SUNWmdau \
SUNWmdb \
SUNWmdbdm \
SUNWmdbr \
SUNWmddr \
SUNWmdr \
SUNWmdu \
SUNWmibii \
SUNWmipr \
SUNWmipu \
SUNWncar \
SUNWncau \
SUNWnfsckr \
SUNWnfsskr \
SUNWnfssr \
SUNWnfscr \
SUNWnfssu \
SUNWnfscu \
SUNWnisr \
SUNWnisu \
SUNWntpr \
SUNWntpu \
SUNWocf \
SUNWocfd \
SUNWocfh \
SUNWocfr \
SUNWonfmes \
SUNWonzfs \
SUNWosdem \
SUNWypr \
SUNWypu \
SUNWpamsc \
SUNWpapi \
SUNWpcan \
SUNWpcelx \
SUNWpcmci \
SUNWpcmcu \
SUNWpcmem \
SUNWpcr \
SUNWpcser \
SUNWpcu \
SUNWpcwl \
SUNWpd \
SUNWphx \
SUNWpolkit \
PHXext \
SUNWperl584core \
SUNWperl584usr \
SUNWpiclh \
SUNWpiclu \
SUNWpiclr \
SUNWpl5p \
SUNWpl5u \
SUNWpl5v \
SUNWpool \
SUNWpoold \
SUNWpoolr \
SUNWppm \
SUNWpppd \
SUNWpppdu \
SUNWpppdr \
SUNWpppdt \
SUNWpppg \
SUNWpppgS \
SUNWpsdpr \
SUNWpsf \
SUNWpsm-ipp \
SUNWpsm-lpd \
SUNWpmu \
SUNWpsr \
SUNWpsu \
SUNWrcapr \
SUNWrcapu \
SUNWrcmdc \
SUNWrcmdr \
SUNWrcmds \
SUNWrds \
SUNWrge \
SUNWrmvolmgr \
SUNWrmvolmgrr \
SUNWrmwbr \
SUNWrmwbu \
SUNWroute \
SUNWroutr \
SUNWrpcib \
SUNWrsg \
SUNWrsgk \
SUNWsacom \
SUNWsasnm \
SUNWsbp2 \
SUNWscpr \
SUNWscpu \
SUNWscplp \
SUNWscsa1394 \
SUNWses \
SUNWslpr \
SUNWslpu \
SUNWsmapi \
SUNWsmedia \
SUNWsmediar \
SUNWsn1rint \
SUNWsn1uint \
SUNWsndmr \
SUNWsndmu \
SUNWspnego \
SUNWsra \
SUNWsrh \
SUNWtcpd \
SUNWtcpdS \
SUNWtecla \
SUNWter \
SUNWtftpr \
SUNWtftp \
SUNWtnamr \
SUNWtnamd \
SUNWtnetc \
SUNWtnetr \
SUNWtnetd \
SUNWtnfc \
SUNWtnfd \
SUNWtoo \
SUNWudaplr \
SUNWudaplu \
SUNWuedg \
SUNWuksp \
SUNWukspfw \
SUNWugen \
SUNWugenu \
SUNWuprl \
SUNWuacm \
SUNWusbvc \
SUNWusb \
SUNWusbs \
SUNWusbu \
SUNWxcu4 \
SUNWwlanr \
SUNWwlanu \
SUNWxcu6 \
SUNWxwdv \
SUNWpmr \
SUNWudf \
SUNWudfr \
SUNWucbt \
SUNWrsm \
SUNWrsmo \
SUNWqos \
SUNWqosu \
SUNWxge \
SUNWchxge \
SUNWzfskr \
SUNWzfsr \
SUNWzfsu \
SUNWzoneint \
SUNWzoner \
SUNWzoneu
COMMON_XMODS= \
SUNWcry \
SUNWcryr \
SUNWcryptoint \
SUNWibsdpib \
SUNWkdcr \
SUNWkdcu \
SUNWopenssl-man \
SUNWopenssl-libraries \
SUNWopenssl-include \
SUNWopenssl-commands \
SUNWopensslr \
SUNWsshcu \
SUNWsshr \
SUNWsshu \
SUNWsshdr \
SUNWsshdu \
SUNWstatl \
SUNWsvvs \
SUNWtavor \
SUNWudapltr \
SUNWudapltu \
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
# EXPORT DELETE END