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 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 # ident "@(#)Makefile   1.269   09/11/05 SMI"
  27 #
  28 
  29 #
  30 # pkgdefs/Makefile
  31 #
  32 
  33 include $(SRC)/Makefile.master
  34 
  35 sparc_SUBDIRS=
  36 
  37 i386_SUBDIRS= \
  38         SUNWacpidump
  39 
  40 COMMON_SUBDIRS= \
  41         SUNWa2psr \
  42         SUNWa2psu \
  43         SUNWaalib \
  44         SUNWaconf \
  45         SUNWactivation \
  46         SUNWaget \
  47         SUNWantlr2 \
  48         SUNWapchd \
  49         SUNWapchr \
  50         SUNWapchu \
  51         SUNWapr13lib \
  52         SUNWapr13dev \
  53         SUNWapr13doc \
  54         SUNWapu13lib \
  55         SUNWapu13dev \
  56         SUNWapu13doc \
  57         SUNWapu13dbd-mysql \
  58         SUNWapu13dbd-pgsql \
  59         SUNWapu13dbd-sqlite \
  60         SUNWapu13-ldap \
  61         SUNWapch22d \
  62         SUNWapch22r \
  63         SUNWapch22u \
  64         SUNWapch22m-php52 \
  65         SUNWapch22r-php52 \
  66         SUNWapch22m-fcgid \
  67         SUNWapch22r-fcgid \
  68         SUNWapch22m-jk \
  69         SUNWapch22r-jk \
  70         SUNWapch22m-security \
  71         SUNWapch22r-security \
  72         SUNWapch22m-dtrace \
  73         SUNWapch22r-dtrace \
  74         SUNWapch22m-sed \
  75         SUNWapch22r-sed \
  76         SUNWant \
  77         SUNWautogen \
  78         SUNWstringtemplate \
  79         SUNWantlr \
  80         SUNWareca \
  81         SUNWawstats \
  82         SUNWbashr \
  83         SUNWbash \
  84         SUNWbcc \
  85         SUNWbeanshell \
  86         SUNWbinutils \
  87         SUNWbison \
  88         SUNWbonnieplus \
  89         SUNWbvi \
  90         SUNWbwm-ng \
  91         SUNWbzip \
  92         SUNWcglib \
  93         SUNWcimserverr \
  94         SUNWcimserveru \
  95         SUNWclisp \
  96         SUNWcmake \
  97         SUNWcommons-collections \
  98         SUNWconflict \
  99         SUNWconmanr \
 100         SUNWconmanu \
 101         SUNWconvmv \
 102         SUNWcupsr \
 103         SUNWcupsu \
 104         SUNWcurl \
 105         SUNWcvs \
 106         SUNWdom4j \
 107         SUNWdoxygen \
 108         SUNWdosbox \
 109         SUNWdrools \
 110         SUNWdwdiff \
 111         SUNWejabberdr \
 112         SUNWejabberdu \
 113         SUNWelinks \
 114         SUNWerlang \
 115         SUNWerlang-doc \
 116         SUNWepydoc \
 117         SUNWexpect \
 118         SUNWfcgi \
 119         SUNWfcgi-doc \
 120         SUNWfreeipmir \
 121         SUNWfreeipmiu \
 122         SUNWunrar \
 123         SUNWunzip \
 124         SUNWdvdrw \
 125         SUNWfakeroot \
 126         SUNWfetchmail \
 127         SUNWffiltersr \
 128         SUNWffiltersu \
 129         SUNWfftw2 \
 130         SUNWfftw3 \
 131         SUNWflexlex \
 132         SUNWflexruntime \
 133         SUNWfping \
 134         SUNWfpingr \
 135         SUNWfoomatic-db \
 136         SUNWfoomatic-db-enginer \
 137         SUNWfoomatic-db-engineu \
 138         SUNWfppd \
 139         SUNWgawk \
 140         SUNWgcc \
 141         SUNWgccruntime \
 142         SUNWgcmn \
 143         SUNWgdb \
 144         SUNWgd2 \
 145         SUNWghostscriptr \
 146         SUNWghostscriptu \
 147         SUNWgpch \
 148         SUNWggrp \
 149         SUNWgit \
 150         SUNWgm4 \
 151         SUNWgmake \
 152         SUNWgnu-automake-19 \
 153         SUNWgnu-automake-110 \
 154         SUNWgnu-coreutils \
 155         SUNWgnu-dbm \
 156         SUNWgnu-diffutils \
 157         SUNWgnu-emacs \
 158         SUNWgnu-emacs-el \
 159         SUNWgnu-emacs-gtk \
 160         SUNWgnu-emacs-nox \
 161         SUNWgnu-emacs-x \
 162         SUNWgnu-gettext \
 163         SUNWgnu-gperf \
 164         SUNWgnu-idn \
 165         SUNWgnu-mc \
 166         SUNWgnu-mp \
 167         SUNWgnu-mpfr \
 168         SUNWgnu-nano \
 169         SUNWgnu-readline \
 170         SUNWgnu-which \
 171         SUNWgocr \
 172         SUNWgrails \
 173         SUNWgsed \
 174         SUNWgsfot \
 175         SUNWgsfst \
 176         SUNWgtar \
 177         SUNWguile \
 178         SUNWGlib \
 179         SUNWGtkr \
 180         SUNWGtku \
 181         SUNWgutenprint \
 182         SUNWgvim \
 183         SUNWgzip \
 184         SUNWhal-cups-utilsr \
 185         SUNWhal-cups-utils \
 186         SUNWhexedit \
 187         SUNWhpijs \
 188         SUNWhttping \
 189         SUNWidzebra \
 190         SUNWiftop \
 191         SUNWilmbase \
 192         SUNWimagick \
 193         SUNWImperius \
 194         SUNWiozone \
 195         SUNWiperf \
 196         SUNWipmi \
 197         SUNWipmir \
 198         SUNWircii \
 199         SUNWjedit \
 200         SUNWjavamail \
 201         SUNWjruby \
 202         SUNWlablgtk \
 203         SUNWjanino \
 204         SUNWjarjar \
 205         SUNWjaxb \
 206         SUNWjaxen-core \
 207         SUNWjdtcore \
 208         SUNWjdom \
 209         SUNWjettison \
 210         SUNWjodatime \
 211         SUNWjrexx \
 212         SUNWjunit \
 213         SUNWjxl \
 214         SUNWkonkretcmpi \
 215         SUNWlcms \
 216         SUNWless \
 217         SUNWlexpt \
 218         SUNWlftpr \
 219         SUNWlftpu \
 220         SUNWlibconfuse \
 221         SUNWlibevent \
 222         SUNWlibmcrypt \
 223         SUNWlibmemcached \
 224         SUNWlibmng \
 225         SUNWlibnet \
 226         SUNWlibopenusb \
 227         SUNWlibpcap \
 228         SUNWlibosip2 \
 229         SUNWlibrsync \
 230         SUNWlibsigsegv \
 231         SUNWlibsndfile \
 232         SUNWlibstdcxx4 \
 233         SUNWlibtool \
 234         SUNWlibtorrent \
 235         SUNWlibxmlrpc-c \
 236         SUNWlibyaz \
 237         SUNWlinks \
 238         SUNWlogilab-common \
 239         SUNWlogrotater \
 240         SUNWlogrotateu \
 241         SUNWlog4j \
 242         SUNWlogilab-astng \
 243         SUNWlighttpd14r \
 244         SUNWlighttpd14u \
 245         SUNWltdl \
 246         SUNWlua \
 247         SUNWlxml \
 248         SUNWlxmlr \
 249         SUNWlxml-devel \
 250         SUNWlxml-python \
 251         SUNWlxsl \
 252         SUNWlxsl-devel \
 253         SUNWlxsl-python \
 254         SUNWmeld \
 255         SUNWmemcached \
 256         SUNWmemcachedr \
 257         SUNWmemcached-java \
 258         SUNWmercurial \
 259         SUNWmkcd \
 260         SUNWmkcdr \
 261         SUNWmrtg \
 262         SUNWmrxvt \
 263         SUNWmtx \
 264         SUNWmutt \
 265         SUNWmuttr \
 266         SUNWmvel \
 267         SUNWmysqlr \
 268         SUNWmysqlt \
 269         SUNWmysqlu \
 270         SUNWmysql5u     \
 271         SUNWmysql5r     \
 272         SUNWmysql5test  \
 273         SUNWmysql5jdbc \
 274         SUNWmysql51r \
 275         SUNWmysql51u \
 276         SUNWmysql51lib \
 277         SUNWmysql51test \
 278         SUNWncft \
 279         SUNWneon \
 280         SUNWnethack \
 281         SUNWnethackr \
 282         SUNWnmap \
 283         SUNWntpr \
 284         SUNWntpu \
 285         SUNWobjectasm \
 286         SUNWocaml \
 287         SUNWopenexr \
 288         SUNWopenldapr \
 289         SUNWopenldapu \
 290         SUNWopenssl-commands \
 291         SUNWopenssl-fips-140 \
 292         SUNWopenssl-fips-140-include \
 293         SUNWopenssl-include \
 294         SUNWopenssl-libraries \
 295         SUNWopenssl-man \
 296         SUNWopensslr \
 297         SUNWopenwsmanr \
 298         SUNWopenwsmanu \
 299         SUNWp7zip \
 300         SUNWpampkcs11r \
 301         SUNWpampkcs11u \
 302         SUNWpampkcs11-docs \
 303         SUNWpatchutils \
 304         SUNWpconsoler \
 305         SUNWpconsole \
 306         SUNWpcre \
 307         SUNWpdsh \
 308         SUNWpen \
 309         SUNWpenr \
 310         SUNWperl510core \
 311         SUNWperl510usr \
 312         SUNWperl-net-ssleay \
 313         SUNWperl-pmtools \
 314         SUNWpgadmin3 \
 315         SUNWpgbouncer-pg83-config \
 316         SUNWpgbouncer-pg83-server \
 317         SUNWphp52d \
 318         SUNWphp52u \
 319         SUNWphp52r \
 320         SUNWphp52u-mysql \
 321         SUNWphp52r-mysql \
 322         SUNWphp52u-pear \
 323         SUNWphp52r-pear \
 324         SUNWphp52u-pgsql \
 325         SUNWphp52r-pgsql \
 326         SUNWpipe-viewer \
 327         SUNWpmdbi \
 328         SUNWpmdbdpg \
 329         SUNWpostgr-82-client \
 330         SUNWpostgr-82-contrib \
 331         SUNWpostgr-82-devel \
 332         SUNWpostgr-82-docs \
 333         SUNWpostgr-82-libs \
 334         SUNWpostgr-82-pl \
 335         SUNWpostgr-82-server \
 336         SUNWpostgr-82-server-data-root \
 337         SUNWpostgr-82-jdbc \
 338         SUNWpostgr-82-tcl \
 339         SUNWpostgr-83-client \
 340         SUNWpostgr-83-contrib \
 341         SUNWpostgr-83-devel \
 342         SUNWpostgr-83-docs \
 343         SUNWpostgr-83-libs \
 344         SUNWpostgr-83-pl \
 345         SUNWpostgr-83-server \
 346         SUNWpostgr-83-server-data-root \
 347         SUNWpostgr-83-tcl \
 348         SUNWpostgr-83-tests \
 349         SUNWpostgr-84-client \
 350         SUNWpostgr-84-contrib \
 351         SUNWpostgr-84-devel \
 352         SUNWpostgr-84-docs \
 353         SUNWpostgr-84-libs \
 354         SUNWpostgr-84-pl \
 355         SUNWpostgr-84-server \
 356         SUNWpostgr-84-server-data-root \
 357         SUNWpostgr-84-tests \
 358         SUNWpostgr-common \
 359         SUNWpostgr-common-root \
 360         SUNWpostgr-jdbc \
 361         SUNWpostgr-libpqxx \
 362         SUNWpostgr-tcl \
 363         SUNWpostgr-upgrade \
 364         SUNWpowermanr \
 365         SUNWpowermanu \
 366         SUNWprivoxyr \
 367         SUNWprivoxyu \
 368         SUNWprocmail \
 369         SUNWpsutils \
 370         SUNWpull-parser \
 371         SUNWpycups \
 372         SUNWpylint \
 373         SUNWpython-pyopenssl \
 374         SUNWpython26-pyopenssl \
 375         SUNWpywbem \
 376         SUNWpwgen \
 377         SUNWqdox \
 378         SUNWquiltr \
 379         SUNWquiltu \
 380         SUNWrdiff-backup \
 381         SUNWrelaxngDatatype \
 382         SUNWrpm \
 383         SUNWrsync \
 384         SUNWrtorrent \
 385         SUNWruby18u \
 386         SUNWruby18r \
 387         SUNWsaaj \
 388         SUNWsane-backendr \
 389         SUNWsane-backendu \
 390         SUNWsane-frontend \
 391         SUNWSblimCimClient \
 392         SUNWsblimwbemcli \
 393         SUNWscreen \
 394         SUNWscreenrc \
 395         SUNWserr \
 396         SUNWseru \
 397         SUNWserweb \
 398         SUNWsg3utilsr \
 399         SUNWsg3utilsu \
 400         SUNWshmux \
 401         SUNWsimplewbem \
 402         SUNWslang \
 403         SUNWslangr \
 404         SUNWslrn \
 405         SUNWsmbar \
 406         SUNWsmbau \
 407         SUNWsnack \
 408         SUNWsnortr \
 409         SUNWsnortu \
 410         SUNWsound-exchange \
 411         SUNWsqlite3 \
 412         SUNWsqlite3docs \
 413         SUNWsqlite3tcl \
 414         SUNWsquidr \
 415         SUNWsquidu \
 416         SUNWstunnelr \
 417         SUNWstunnelu \
 418         SUNWsudor \
 419         SUNWsudou \
 420         SUNWsvn \
 421         SUNWsvn-java \
 422         SUNWsvn-perl \
 423         SUNWsvn-python \
 424         SUNWswig \
 425         SUNWsysbench \
 426         SUNWTcl \
 427         SUNWtcltls \
 428         SUNWtcatr \
 429         SUNWtcatu \
 430         SUNWtcat-examples \
 431         SUNWtcsh \
 432         SUNWtexi \
 433         SUNWtidy \
 434         SUNWTk \
 435         SUNWtop \
 436         SUNWtor \
 437         SUNWtor-root \
 438         SUNWtree \
 439         SUNWtrove \
 440         SUNWtss \
 441         SUNWtss-root \
 442         SUNWunison \
 443         SUNWunixodbcr \
 444         SUNWunixodbc \
 445         SUNWvim \
 446         SUNWwgetr \
 447         SUNWwgetu \
 448         SUNWxpp3min \
 449         SUNWxsdlib \
 450         SUNWxstream \
 451         SUNWxom \
 452         SUNWzlib \
 453         SUNWzlibr \
 454         SUNWzip \
 455         SUNWzsh \
 456         SUNWnet-snmp-mgr \
 457         SUNWnet-snmp-core \
 458         SUNWnet-snmp-doc \
 459         SUNWnet-snmp-utils \
 460         SUNWnet-snmp-addons \
 461         SUNWlibusb \
 462         SUNWlibusbugen \
 463         SUNWquaggar \
 464         SUNWquaggau \
 465         SUNWbind \
 466         SUNWbindc \
 467         SUNWbindr \
 468         SUNWslib \
 469         SUNWwebalizer \
 470         SUNWwebalizerr \
 471         SUNWwebminu \
 472         SUNWwebminr \
 473         SUNWwireshark \
 474         SUNWwiresharkr \
 475         SUNWwisemanr \
 476         SUNWwisemanu \
 477         SUNWwxwidgets \
 478         SUNWwxwidgets-devel \
 479         SUNWusbccid \
 480         SUNWdiffstat
 481 
 482 # STUB_ON_SUBDIRS are directories that are placeholder stubs
 483 # for packages delivered by the ON consolidation. These directories
 484 # provide enough information about the files delivered by the real
 485 # package to allow protocmp to properly validate such dependencies.
 486 # However, no corresponding package is delivered.
 487 #
 488 # At the current time, this feature is used to allow use of
 489 # /usr/lib/isaexec from sfw.
 490 STUB_ON_SUBDIRS= \
 491         SUNWcsu
 492 
 493 SUBDIRS= $($(MACH)_SUBDIRS) $(COMMON_SUBDIRS) $(STUB_ON_SUBDIRS)
 494 
 495 all :=          TARGET= all
 496 install :=      TARGET= install
 497 install_h :=    TARGET= install_h
 498 clean :=        TARGET= clean
 499 clobber :=      TARGET= clobber
 500 
 501 %: %.ksh
 502         $(RM) $@
 503         cp $< $@
 504         chmod +x $@
 505 
 506 .KEEP_STATE:
 507 
 508 .PARALLEL: $(SUBDIRS)
 509 
 510 all: awk_pkginfo audit_pkg $(SUBDIRS)
 511 
 512 install: awk_pkginfo audit_pkg $(SUBDIRS) $(SFW_RUN_CHECK_DEPS) check_deps
 513 
 514 check_deps:
 515         @echo "\n==== Checking package dependencies ====\n"
 516         @if [ ! -d "$(SFW_PKGDB)" ]; then \
 517                 echo "error: SFW_PKGDB must be set"; \
 518         else ; \
 519                 echo $(SFW_CHECK_DEPS) $(SUBDIRS); \
 520                 $(SFW_CHECK_DEPS) $(SUBDIRS); \
 521         fi
 522 
 523 clean clobber: $(SUBDIRS)
 524         $(RM) awk_pkginfo bld_awk_pkginfo
 525 
 526 $(SUBDIRS): FRC
 527         @cd $@; echo "$(TARGET) \c" ; pwd; $(MAKE) $(TARGET)
 528 
 529 awk_pkginfo: bld_awk_pkginfo
 530         ./bld_awk_pkginfo -m $(MACH) -p "$(SFWRELEASE)/$(SFWVERSION)" -o $@ \
 531         -v $(SFWVERS)
 532 
 533 
 534 FRC: