# # 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 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # ident "@(#)Makefile 1.252 09/07/17 SMI" # # # pkgdefs/Makefile # include $(SRC)/Makefile.master sparc_SUBDIRS= i386_SUBDIRS= COMMON_SUBDIRS= \ SUNW0sfw \ SUNWa2psr \ SUNWa2psu \ SUNWaalib \ SUNWaconf \ SUNWactivation \ SUNWaget \ SUNWantlr2 \ SUNWapchd \ SUNWapchr \ SUNWapchu \ SUNWapr13lib \ SUNWapr13dev \ SUNWapr13doc \ SUNWapu13lib \ SUNWapu13dev \ SUNWapu13doc \ SUNWapu13dbd-mysql \ SUNWapu13dbd-pgsql \ SUNWapu13dbd-sqlite \ SUNWapu13-ldap \ SUNWapch22d \ SUNWapch22r \ SUNWapch22u \ SUNWapch22m-php52 \ SUNWapch22r-php52 \ SUNWapch22m-fcgid \ SUNWapch22r-fcgid \ SUNWapch22m-jk \ SUNWapch22r-jk \ SUNWapch22m-security \ SUNWapch22r-security \ SUNWapch22m-dtrace \ SUNWapch22r-dtrace \ SUNWapch22m-sed \ SUNWapch22r-sed \ SUNWant \ SUNWautogen \ SUNWstringtemplate \ SUNWantlr \ SUNWareca \ SUNWawstats \ SUNWbash \ SUNWbcc \ SUNWbeanshell \ SUNWbinutils \ SUNWbison \ SUNWbonnieplus \ SUNWbvi \ SUNWbwm-ng \ SUNWbzip \ SUNWcglib \ SUNWcimserverr \ SUNWcimserveru \ SUNWclisp \ SUNWcmake \ SUNWcommons-collections \ SUNWconflict \ SUNWconmanr \ SUNWconmanu \ SUNWconvmv \ SUNWcupsr \ SUNWcupsu \ SUNWcurl \ SUNWcvs \ SUNWdom4j \ SUNWdoxygen \ SUNWdosbox \ SUNWdrools \ SUNWdwdiff \ SUNWejabberdr \ SUNWejabberdu \ SUNWelinks \ SUNWerlang \ SUNWerlang-doc \ SUNWepydoc \ SUNWexpect \ SUNWfcgi \ SUNWfcgi-doc \ SUNWunrar \ SUNWunzip \ SUNWdvdrw \ SUNWfetchmail \ SUNWffiltersr \ SUNWffiltersu \ SUNWfftw2 \ SUNWfftw3 \ SUNWflexlex \ SUNWflexruntime \ SUNWfping \ SUNWfpingr \ SUNWfoomatic-db \ SUNWfoomatic-db-enginer \ SUNWfoomatic-db-engineu \ SUNWfppd \ SUNWgawk \ SUNWgcc \ SUNWgccruntime \ SUNWgcmn \ SUNWgdb \ SUNWgd2 \ SUNWghostscriptr \ SUNWghostscriptu \ SUNWgimpprint \ SUNWgpch \ SUNWggrp \ SUNWgit \ SUNWgm4 \ SUNWgmake \ SUNWgnu-automake-19 \ SUNWgnu-automake-110 \ SUNWgnu-coreutils \ SUNWgnu-dbm \ SUNWgnu-diffutils \ SUNWgnu-emacs \ SUNWgnu-emacs-el \ SUNWgnu-emacs-gtk \ SUNWgnu-emacs-nox \ SUNWgnu-emacs-x \ SUNWgnu-gettext \ SUNWgnu-gperf \ SUNWgnu-idn \ SUNWgnu-mc \ SUNWgnu-mp \ SUNWgnu-mpfr \ SUNWgnu-nano \ SUNWgnu-readline \ SUNWgnu-which \ SUNWgocr \ SUNWgrails \ SUNWgsed \ SUNWgsfot \ SUNWgsfst \ SUNWgtar \ SUNWguile \ SUNWGlib \ SUNWGtkr \ SUNWGtku \ SUNWgvim \ SUNWgzip \ SUNWhal-cups-utilsr \ SUNWhal-cups-utils \ SUNWhexedit \ SUNWhpijs \ SUNWhttping \ SUNWiftop \ SUNWilmbase \ SUNWimagick \ SUNWImperius \ SUNWiozone \ SUNWiperf \ SUNWipmi \ SUNWipmir \ SUNWircii \ SUNWjedit \ SUNWjavamail \ SUNWjruby \ SUNWlablgtk \ SUNWjanino \ SUNWjarjar \ SUNWjaxb \ SUNWjaxen-core \ SUNWjdtcore \ SUNWjdom \ SUNWjettison \ SUNWjodatime \ SUNWjunit \ SUNWjxl \ SUNWkonkretcmpi \ SUNWlcms \ SUNWless \ SUNWlexpt \ SUNWlftpr \ SUNWlftpu \ SUNWlibconfuse \ SUNWlibevent \ SUNWlibmcrypt \ SUNWlibmemcached \ SUNWlibmng \ SUNWlibnet \ SUNWlibopenusb \ SUNWlibpcap \ SUNWlibosip2 \ SUNWlibrsync \ SUNWlibsigsegv \ SUNWlibsndfile \ SUNWlibtool \ SUNWlibtorrent \ SUNWlibxmlrpc-c \ SUNWlibyaz \ SUNWlinks \ SUNWlogilab-common \ SUNWlogrotater \ SUNWlogrotateu \ SUNWlog4j \ SUNWlogilab-astng \ SUNWlighttpd14r \ SUNWlighttpd14u \ SUNWltdl \ SUNWlua \ SUNWlxml \ SUNWlxmlr \ SUNWlxml-devel \ SUNWlxml-python \ SUNWlxsl \ SUNWlxsl-devel \ SUNWlxsl-python \ SUNWmeld \ SUNWmemcached \ SUNWmemcachedr \ SUNWmemcached-java \ SUNWmercurial \ SUNWmkcd \ SUNWmkcdr \ SUNWmrtg \ SUNWmrxvt \ SUNWmtx \ SUNWmutt \ SUNWmuttr \ SUNWmvel \ SUNWmysqlr \ SUNWmysqlt \ SUNWmysqlu \ SUNWmysql5u \ SUNWmysql5r \ SUNWmysql5test \ SUNWmysql5jdbc \ SUNWmysql51r \ SUNWmysql51u \ SUNWmysql51lib \ SUNWmysql51test \ SUNWncft \ SUNWneon \ SUNWnethack \ SUNWnethackr \ SUNWnmap \ SUNWntpr \ SUNWntpu \ SUNWobjectasm \ SUNWocaml \ SUNWopenexr \ SUNWopenldapr \ SUNWopenldapu \ SUNWopenssl-commands \ SUNWopenssl-include \ SUNWopenssl-libraries \ SUNWopenssl-man \ SUNWopensslr \ SUNWopenwsmanr \ SUNWopenwsmanu \ SUNWp7zip \ SUNWpampkcs11r \ SUNWpampkcs11u \ SUNWpampkcs11-docs \ SUNWpatchutils \ SUNWpconsoler \ SUNWpconsole \ SUNWpcre \ SUNWpen \ SUNWpenr \ SUNWperl-net-ssleay \ SUNWperl-pmtools \ SUNWpgadmin3 \ SUNWpgbouncer-pg83-config \ SUNWpgbouncer-pg83-server \ SUNWphp52d \ SUNWphp52u \ SUNWphp52r \ SUNWphp52u-mysql \ SUNWphp52r-mysql \ SUNWphp52u-pear \ SUNWphp52r-pear \ SUNWphp52u-pgsql \ SUNWphp52r-pgsql \ SUNWpipe-viewer \ SUNWpmdbi \ SUNWpmdbdpg \ SUNWpostgr-82-client \ SUNWpostgr-82-contrib \ SUNWpostgr-82-devel \ SUNWpostgr-82-docs \ SUNWpostgr-82-libs \ SUNWpostgr-82-pl \ SUNWpostgr-82-server \ SUNWpostgr-82-server-data-root \ SUNWpostgr-82-jdbc \ SUNWpostgr-82-tcl \ SUNWpostgr-83-client \ SUNWpostgr-83-contrib \ SUNWpostgr-83-devel \ SUNWpostgr-83-docs \ SUNWpostgr-83-libs \ SUNWpostgr-83-pl \ SUNWpostgr-83-server \ SUNWpostgr-83-server-data-root \ SUNWpostgr-83-tcl \ SUNWpostgr-83-tests \ SUNWpostgr-jdbc \ SUNWpostgr-upgrade \ SUNWpowermanr \ SUNWpowermanu \ SUNWprivoxyr \ SUNWprivoxyu \ SUNWprocmail \ SUNWpsutils \ SUNWpull-parser \ SUNWpycups \ SUNWpylint \ SUNWpython-pyopenssl \ SUNWpython26-pyopenssl \ SUNWpwgen \ SUNWquiltr \ SUNWquiltu \ SUNWrdiff-backup \ SUNWrelaxngDatatype \ SUNWrpm \ SUNWrsync \ SUNWrtorrent \ SUNWruby18u \ SUNWruby18r \ SUNWsaaj \ SUNWsane-backendr \ SUNWsane-backendu \ SUNWsane-frontend \ SUNWSblimCimClient \ SUNWsblimwbemcli \ SUNWscreen \ SUNWscreenrc \ SUNWserr \ SUNWseru \ SUNWserweb \ SUNWsfdoc \ SUNWsfinf \ SUNWsfman \ SUNWsfwhea \ SUNWsg3utilsr \ SUNWsg3utilsu \ SUNWshmux \ SUNWsimplewbem \ SUNWslang \ SUNWslangr \ SUNWslrn \ SUNWsmbar \ SUNWsmbau \ SUNWsnack \ SUNWsnortr \ SUNWsnortu \ SUNWsqlite3 \ SUNWsqlite3docs \ SUNWsqlite3tcl \ SUNWsquidr \ SUNWsquidu \ SUNWstunnelr \ SUNWstunnelu \ SUNWsudor \ SUNWsudou \ SUNWsvn \ SUNWsvn-java \ SUNWsvn-perl \ SUNWsvn-python \ SUNWswig \ SUNWTcl \ SUNWtcltls \ SUNWtcatr \ SUNWtcatu \ SUNWtcsh \ SUNWtexi \ SUNWtidy \ SUNWTk \ SUNWtop \ SUNWtor \ SUNWtor-root \ SUNWtree \ SUNWtss \ SUNWtss-root \ SUNWunison \ SUNWunixodbcr \ SUNWunixodbc \ SUNWvim \ SUNWwgetr \ SUNWwgetu \ SUNWxpp3min \ SUNWxsdlib \ SUNWxstream \ SUNWxom \ SUNWzlib \ SUNWzlibr \ SUNWzip \ SUNWzsh \ SUNWnet-snmp-mgr \ SUNWnet-snmp-core \ SUNWnet-snmp-doc \ SUNWnet-snmp-utils \ SUNWnet-snmp-addons \ SUNWlibusb \ SUNWlibusbugen \ SUNWquaggar \ SUNWquaggau \ SUNWbind \ SUNWbindc \ SUNWbindr \ SUNWslib \ SUNWwebalizer \ SUNWwebalizerr \ SUNWwebminu \ SUNWwebminr \ SUNWwireshark \ SUNWwiresharkr \ SUNWwisemanr \ SUNWwisemanu \ SUNWwxwidgets \ SUNWwxwidgets-devel \ SUNWusbccid \ SUNWdiffstat # STUB_ON_SUBDIRS are directories that are placeholder stubs # for packages delivered by the ON consolidation. These directories # provide enough information about the files delivered by the real # package to allow protocmp to properly validate such dependencies. # However, no corresponding package is delivered. # # At the current time, this feature is used to allow use of # /usr/lib/isaexec from sfw. STUB_ON_SUBDIRS= \ SUNWcsu SUBDIRS= $($(MACH)_SUBDIRS) $(COMMON_SUBDIRS) $(STUB_ON_SUBDIRS) 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) all: awk_pkginfo audit_pkg $(SUBDIRS) install: awk_pkginfo audit_pkg $(SUBDIRS) $(SFW_RUN_CHECK_DEPS) check_deps check_deps: @echo "\n==== Checking package dependencies ====\n" @if [ ! -d "$(SFW_PKGDB)" ]; then \ echo "error: SFW_PKGDB must be set"; \ else ; \ echo $(SFW_CHECK_DEPS) $(SUBDIRS); \ $(SFW_CHECK_DEPS) $(SUBDIRS); \ fi clean clobber: $(SUBDIRS) $(RM) awk_pkginfo bld_awk_pkginfo $(SUBDIRS): FRC @cd $@; echo "$(TARGET) \c" ; pwd; $(MAKE) $(TARGET) awk_pkginfo: bld_awk_pkginfo ./bld_awk_pkginfo -m $(MACH) -p "$(SFWRELEASE)/$(SFWVERSION)" -o $@ \ -v $(SFWVERS) FRC: