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