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