Home | History | Annotate | Download | only in pkgdefs
      1 #
      2 # CDDL HEADER START
      3 #
      4 # The contents of this file are subject to the terms of the
      5 # Common Development and Distribution License (the "License").
      6 # You may not use this file except in compliance with the License.
      7 #
      8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
      9 # or http://www.opensolaris.org/os/licensing.
     10 # See the License for the specific language governing permissions
     11 # and limitations under the License.
     12 #
     13 # When distributing Covered Code, include this CDDL HEADER in each
     14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
     15 # If applicable, add the following below this CDDL HEADER, with the
     16 # fields enclosed by brackets "[]" replaced with your own identifying
     17 # information: Portions Copyright [yyyy] [name of copyright owner]
     18 #
     19 # CDDL HEADER END
     20 #
     21 
     22 #
     23 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
     24 # Use is subject to license terms.
     25 #
     26 
     27 include $(SRC)/Makefile.master
     28 
     29 sparc_SUBDIRS= \
     30 	SUNWbcp  \
     31 	SUNWcakr.u \
     32 	SUNWcakr.v \
     33 	SUNWcakrnt2000.v \
     34 	SUNWcar.u  \
     35 	SUNWcar.v  \
     36 	SUNWcart200.v \
     37 	SUNWcg6.u \
     38 	SUNWcg6h  \
     39 	SUNWcpc.u \
     40 	SUNWcpc.v \
     41 	SUNWcpr.u \
     42 	SUNWcti2.u \
     43 	SUNWcvc.u  \
     44 	SUNWcvcr.u \
     45 	SUNWdcsr \
     46 	SUNWdcsu \
     47 	SUNWdrcr.u \
     48 	SUNWdrr.u \
     49         SUNWdscpr.u \
     50         SUNWdscpu.u \
     51 	SUNWefcl \
     52 	SUNWefcr \
     53 	SUNWefcu \
     54 	SUNWefc.u \
     55 	SUNWefck \
     56 	SUNWerid \
     57 	SUNWfruid \
     58 	SUNWfruip.u \
     59 	SUNWfsr \
     60 	SUNWfsu \
     61 	SUNWhmd    \
     62 	SUNWhmdu   \
     63 	SUNWidn.u \
     64 	SUNWifp  \
     65 	SUNWifph \
     66 	SUNWjcom \
     67 	SUNWjib \
     68 	SUNWkvm.c  \
     69 	SUNWkvm.d  \
     70 	SUNWkvm.m  \
     71 	SUNWkvm.u  \
     72 	SUNWkvm.v  \
     73 	SUNWkvmt200.v \
     74 	SUNWldomr.v  \
     75 	SUNWldomu.v  \
     76 	SUNWluxd.u \
     77 	SUNWluxl \
     78 	SUNWn2cp.v \
     79 	SUNWn2cpact.v \
     80 	SUNWniumx.v \
     81 	SUNWnxge.u \
     82 	SUNWnxge.v \
     83 	SUNWonmtst.u \
     84 	SUNWonmtst.v \
     85 	SUNWiopc.u \
     86 	SUNWiopc.v \
     87 	SUNWpdu	  \
     88 	SUNWpstl.u \
     89 	SUNWqfed \
     90 	SUNWsckmr \
     91 	SUNWsckmu.u \
     92 	SUNWsckm.u \
     93 	SUNWscmhdlr \
     94 	SUNWsfdr.u \
     95 	SUNWsfdrr.u \
     96 	SUNWssad  \
     97 	SUNWstc.u \
     98 	SUNWus.u \
     99 	SUNWust1.v \
    100 	SUNWust2.v \
    101 	SUNWwbsd
    102 
    103 sparc_XMODS=
    104 
    105 i386_SUBDIRS= \
    106 	SUNWad810 \
    107 	SUNWadixp \
    108 	SUNWagp \
    109 	SUNWagph \
    110 	SUNWamd8111s \
    111 	SUNWahci \
    112 	SUNWamr \
    113 	SUNWatheros \
    114 	SUNWatigfx \
    115 	SUNWaudiohd \
    116 	SUNWcakr.i \
    117 	SUNWcakrx.i \
    118 	SUNWcar.i  \
    119 	SUNWcarx.i  \
    120 	SUNWcpc.i \
    121 	SUNWcpr.i \
    122 	SUNWdfb.i  \
    123 	SUNWdrmr \
    124 	SUNWgrub \
    125 	SUNWgrubS \
    126 	SUNWdcopy \
    127 	SUNWipw \
    128 	SUNWiwi \
    129 	SUNWiwk \
    130 	SUNWkvm.i \
    131 	SUNWlxr \
    132 	SUNWlxu \
    133 	SUNWmegasas \
    134 	SUNWmv88sx \
    135 	SUNWnge \
    136 	SUNWnvsata \
    137 	SUNWnxge \
    138 	SUNWonmtst.i \
    139 	SUNWos86r  \
    140 	SUNWpsdcr  \
    141 	SUNWpsdir  \
    142 	SUNWpsh \
    143 	SUNWralink \
    144 	SUNWrmodr \
    145 	SUNWrmodu \
    146 	SUNWrtw \
    147 	SUNWsi3124 \
    148 	SUNWural \
    149 	SUNWvia823x \
    150 	SUNWwpi \
    151 	SUNWxdt \
    152 	SUNWxsvc \
    153 	SUNWxvmipar \
    154 	SUNWxvmipau \
    155 	SUNWxvmpv
    156 
    157 i386_XMODS= \
    158 	BRCMbnx \
    159 	SUNWadpu320 \
    160 	SUNWlsimega
    161 
    162 COMMON_SUBDIRS= \
    163 	SUNW1394h \
    164 	SUNW1394 \
    165 	SUNWaac \
    166 	SUNWaccr  \
    167 	SUNWaccu  \
    168 	SUNWafe \
    169 	SUNWapct \
    170 	SUNWauda  \
    171 	SUNWaudd  \
    172 	SUNWaudf  \
    173 	SUNWaudh  \
    174 	SUNWaudit \
    175 	SUNWatfsr  \
    176 	SUNWatfsu  \
    177 	SUNWarc  \
    178 	SUNWarbel  \
    179 	SUNWarcr  \
    180 	SUNWastdev \
    181 	SUNWav1394 \
    182 	SUNWbart  \
    183 	SUNWbge \
    184 	SUNWbip \
    185 	SUNWbipr \
    186 	SUNWbnur  \
    187 	SUNWbnuu  \
    188 	SUNWbsr \
    189 	SUNWbsu \
    190 	SUNWbtool  \
    191 	SUNWcdrw \
    192 	SUNWckr  \
    193 	SUNWcnetr  \
    194 	SUNWcnsr \
    195 	SUNWcnsu \
    196 	SUNWcpcu \
    197 	SUNWcsd  \
    198 	SUNWcsr  \
    199 	SUNWcsu  \
    200 	SUNWcsl  \
    201 	SUNWcslr \
    202 	SUNWcstl \
    203 	SUNWdcaf \
    204 	SUNWdcar \
    205 	SUNWdfbh  \
    206 	SUNWdhcm  \
    207 	SUNWdhcsb  \
    208 	SUNWdhcsr  \
    209 	SUNWdhcsu  \
    210 	SUNWdmfe \
    211 	SUNWdmgtr \
    212 	SUNWdmgtu \
    213 	SUNWdsdr  \
    214 	SUNWdsdu  \
    215 	SUNWdoc  \
    216 	SUNWdpl  \
    217 	SUNWdtrc \
    218 	SUNWdtrp \
    219 	SUNWdtrt \
    220 	SUNWesu  \
    221 	SUNWfilebench \
    222 	SUNWfmd  \
    223 	SUNWfmdr  \
    224 	SUNWfss \
    225 	SUNWftdur \
    226 	SUNWftduu \
    227 	SUNWftpr  \
    228 	SUNWftpu  \
    229 	SUNWfwdc  \
    230 	SUNWfwdcu  \
    231 	SUNWfwflash  \
    232 	SUNWgssdh  \
    233 	SUNWgssc  \
    234 	SUNWgss	\
    235 	SUNWgssk \
    236 	SUNWhal \
    237 	SUNWhalr \
    238 	SUNWhea  \
    239 	SUNWhermon  \
    240 	SUNWhwdata \
    241 	SUNWhxge \
    242 	SUNWib \
    243 	SUNWibsdpu \
    244 	SUNWibsdp \
    245 	SUNWigb \
    246 	SUNWixgbe \
    247 	SUNWintgige \
    248 	SUNWiotu  \
    249 	SUNWioth  \
    250 	SUNWipc  \
    251 	SUNWipfh  \
    252 	SUNWipfr  \
    253 	SUNWipfu  \
    254 	SUNWipoib \
    255 	SUNWippcore \
    256 	SUNWipplr \
    257 	SUNWipplu \
    258 	SUNWiscsitgtr \
    259 	SUNWiscsitgtu \
    260 	SUNWixgb \
    261 	SUNWkrbr \
    262 	SUNWkrbu \
    263 	SUNWldskint \
    264 	SUNWlibsasl \
    265 	SUNWllc \
    266 	SUNWllcr\
    267 	SUNWlldap \
    268 	SUNWlp-cmds \
    269 	SUNWlpr-cmds \
    270 	SUNWkey  \
    271 	SUNWloc  \
    272 	SUNWmdar \
    273 	SUNWmdau \
    274 	SUNWmdb \
    275 	SUNWmdbdm \
    276 	SUNWmdbr \
    277 	SUNWmddr \
    278 	SUNWmdr \
    279 	SUNWmdu \
    280 	SUNWmibii \
    281 	SUNWmmsr \
    282 	SUNWmmsu \
    283 	SUNWmxfe \
    284 	SUNWncar \
    285 	SUNWncau \
    286 	SUNWndmpr \
    287 	SUNWndmpu \
    288 	SUNWnetcat \
    289 	SUNWnfsckr \
    290 	SUNWnfsskr \
    291 	SUNWnfssr \
    292 	SUNWnfscr \
    293 	SUNWnfssu \
    294 	SUNWnfscu \
    295 	SUNWnisr  \
    296 	SUNWnisu  \
    297 	SUNWntpr  \
    298 	SUNWntpu  \
    299 	SUNWocf \
    300 	SUNWocfd \
    301 	SUNWocfh \
    302 	SUNWocfr \
    303 	SUNWonfmes \
    304 	SUNWonzfs \
    305 	SUNWopenssl-man \
    306 	SUNWopenssl-libraries \
    307 	SUNWopenssl-include \
    308 	SUNWopenssl-commands \
    309 	SUNWopensslr \
    310 	SUNWosdem \
    311 	SUNWypr \
    312 	SUNWypu \
    313 	SUNWpamsc \
    314 	SUNWpapi \
    315 	SUNWpcan \
    316 	SUNWpcelx \
    317 	SUNWpcmci  \
    318 	SUNWpcmcu  \
    319 	SUNWpcmem \
    320 	SUNWpcr	\
    321 	SUNWpcser \
    322 	SUNWpcu	\
    323 	SUNWpcwl \
    324 	SUNWpd    \
    325 	SUNWphx \
    326 	SUNWpolkit \
    327 	PHXext \
    328 	SUNWperl584core \
    329 	SUNWperl584usr \
    330 	SUNWpiclh \
    331 	SUNWpiclu \
    332 	SUNWpiclr \
    333 	SUNWpl5p \
    334 	SUNWpl5u \
    335 	SUNWpl5v \
    336 	SUNWpool \
    337 	SUNWpoold \
    338 	SUNWpoolr \
    339 	SUNWppm \
    340 	SUNWpppd \
    341 	SUNWpppdu \
    342 	SUNWpppdr \
    343 	SUNWpppdt \
    344 	SUNWpppg \
    345 	SUNWpppgS \
    346 	SUNWpsdpr \
    347 	SUNWpsf	\
    348 	SUNWpsm-ipp \
    349 	SUNWpsm-lpd \
    350 	SUNWpmu \
    351 	SUNWpsr	\
    352 	SUNWpsu	\
    353 	SUNWrcapr \
    354 	SUNWrcapu \
    355 	SUNWrcmdc \
    356 	SUNWrcmdr \
    357 	SUNWrcmds \
    358 	SUNWrds \
    359 	SUNWrge \
    360 	SUNWrmvolmgr \
    361 	SUNWrmvolmgrr \
    362 	SUNWrmwbr \
    363 	SUNWrmwbu \
    364 	SUNWroute \
    365 	SUNWroutr \
    366 	SUNWrpcib \
    367 	SUNWrsg \
    368 	SUNWrsgk \
    369 	SUNWsacom \
    370 	SUNWsasnm \
    371 	SUNWsbp2 \
    372 	SUNWscpr  \
    373 	SUNWscpu  \
    374 	SUNWscplp  \
    375 	SUNWscsa1394  \
    376 	SUNWscsip \
    377 	SUNWsdcard \
    378 	SUNWses \
    379 	SUNWsfe \
    380 	SUNWslpr \
    381 	SUNWslpu \
    382 	SUNWsmapi  \
    383 	SUNWsmbfskr \
    384 	SUNWsmbfsr \
    385 	SUNWsmbfsu \
    386 	SUNWsmbskr  \
    387 	SUNWsmbsr  \
    388 	SUNWsmbsu  \
    389 	SUNWsmedia \
    390 	SUNWsmediar \
    391 	SUNWsmpd \
    392 	SUNWsn1rint \
    393 	SUNWsn1uint \
    394 	SUNWsndmr  \
    395 	SUNWsndmu  \
    396 	SUNWspnego \
    397 	SUNWsra  \
    398 	SUNWsrh  \
    399 	SUNWsshcu \
    400 	SUNWsshr \
    401 	SUNWsshu \
    402 	SUNWsshdr \
    403 	SUNWsshdu \
    404 	SUNWtcpd \
    405 	SUNWtcpdS \
    406 	SUNWtecla \
    407 	SUNWter  \
    408 	SUNWtftpr  \
    409 	SUNWtftp  \
    410 	SUNWtnetc \
    411 	SUNWtnetr \
    412 	SUNWtnetd \
    413 	SUNWtnfc  \
    414 	SUNWtnfd  \
    415 	SUNWtoo  \
    416 	SUNWtsg  \
    417 	SUNWtsr  \
    418 	SUNWtsu  \
    419 	SUNWudaplr \
    420 	SUNWudaplu \
    421 	SUNWuedg \
    422 	SUNWuksp \
    423 	SUNWukspfw \
    424 	SUNWugen \
    425 	SUNWugenu \
    426 	SUNWuprl \
    427 	SUNWuacm \
    428 	SUNWusbvc \
    429 	SUNWusb \
    430 	SUNWusbs \
    431 	SUNWusbu \
    432 	SUNWvscankr \
    433 	SUNWvscanr \
    434 	SUNWvscanu \
    435 	SUNWxcu4  \
    436 	SUNWwlanr  \
    437 	SUNWwlanu  \
    438 	SUNWwpar  \
    439 	SUNWwpau  \
    440 	SUNWxcu6  \
    441 	SUNWxwdv \
    442 	SUNWpmr \
    443 	SUNWudf \
    444 	SUNWudfr \
    445 	SUNWucbt \
    446 	SUNWrsm	\
    447 	SUNWrsmo \
    448 	SUNWrtls \
    449 	SUNWqos \
    450 	SUNWqosu \
    451 	SUNWxge \
    452 	SUNWchxge \
    453 	SUNWzfskr \
    454 	SUNWzfsr \
    455 	SUNWzfsu \
    456 	SUNWzoneint \
    457 	SUNWzoner \
    458 	SUNWzoneu
    459 
    460 COMMON_XMODS= \
    461 	SUNWcryptoint \
    462 	SUNWibsdpib \
    463 	SUNWkdcr \
    464 	SUNWkdcu \
    465 	SUNWstatl \
    466 	SUNWsvvs \
    467 	SUNWtavor \
    468 	SUNWudapltr \
    469 	SUNWudapltu \
    470 	SUNWwbint \
    471 	SUNWwbsup
    472 
    473 SUBDIRS= $($(MACH)_SUBDIRS) $(COMMON_SUBDIRS)
    474 
    475 XMODS= $($(MACH)_XMODS) $(COMMON_XMODS)
    476 
    477 
    478 all :=		TARGET= all
    479 install :=	TARGET= install
    480 install_h :=	TARGET= install_h
    481 clean :=	TARGET= clean
    482 clobber :=	TARGET= clobber
    483 
    484 %: %.ksh
    485 	$(RM) $@
    486 	cp $< $@
    487 	chmod +x $@
    488 
    489 .KEEP_STATE:
    490 
    491 .PARALLEL: $(SUBDIRS) $(XMODS)
    492 
    493 all install: awk_pkginfo $(SUBDIRS) $(XMODS)
    494 
    495 clean clobber: $(SUBDIRS) $(XMODS)
    496 	$(RM) awk_pkginfo bld_awk_pkginfo
    497 
    498 $(SUBDIRS): FRC
    499 	@cd $@; pwd; $(MAKE) $(TARGET)
    500 
    501 $(XMODS):       FRC
    502 	@if [ -f $@/Makefile  ]; then \
    503 		cd $@; pwd; $(MAKE) $(TARGET); \
    504 	else \
    505 		true; \
    506 	fi
    507 
    508 awk_pkginfo: bld_awk_pkginfo
    509 	./bld_awk_pkginfo -m $(MACH) -p "$(RELEASE)/$(VERSION)" -o $@ -v \
    510 	$(ONVERS)
    511 
    512 FRC:
    513 
    514 # EXPORT DELETE START
    515 EXPORT_SRC:
    516 	$(RM) -r $(sparc_XMODS) $(i386_XMODS) $(COMMON_XMODS)
    517 	$(RM) Makefile+
    518 	sed -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
    519 	    < Makefile > Makefile+
    520 	$(MV) Makefile+ Makefile
    521 	$(CHMOD) 444 Makefile
    522 	$(RM) SUNWos86r/prototype_i386+
    523 	$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
    524 		< SUNWos86r/prototype_i386 > SUNWos86r/prototype_i386+
    525 	$(MV) -f SUNWos86r/prototype_i386+ SUNWos86r/prototype_i386
    526 	$(CHMOD) 444 SUNWos86r/prototype_i386
    527 	$(RM) SUNWcsl/prototype_com+
    528 	$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
    529 		< SUNWcsl/prototype_com > SUNWcsl/prototype_com+
    530 	$(MV) -f SUNWcsl/prototype_com+ SUNWcsl/prototype_com
    531 	$(CHMOD) 444 SUNWcsl/prototype_com
    532 	$(RM) SUNWcsl/prototype_i386+
    533 	$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
    534 		< SUNWcsl/prototype_i386 > SUNWcsl/prototype_i386+
    535 	$(MV) -f SUNWcsl/prototype_i386+ SUNWcsl/prototype_i386
    536 	$(CHMOD) 444 SUNWcsl/prototype_i386
    537 	$(RM) SUNWcsl/prototype_sparc+
    538 	$(SED) -e "/^# EXPORT DELETE START/,/^# EXPORT DELETE END/d" \
    539 		< SUNWcsl/prototype_sparc > SUNWcsl/prototype_sparc+
    540 	$(MV) -f SUNWcsl/prototype_sparc+ SUNWcsl/prototype_sparc
    541 	$(CHMOD) 444 SUNWcsl/prototype_sparc
    542 
    543 # EXPORT DELETE END
    544