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 # ident "@(#)Makefile 1.140 08/10/01 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 SUNWapchd \ 45 SUNWapchr \ 46 SUNWapchu \ 47 SUNWapr13lib \ 48 SUNWapr13dev \ 49 SUNWapr13doc \ 50 SUNWapu13lib \ 51 SUNWapu13dev \ 52 SUNWapu13doc \ 53 SUNWapu13dbd-mysql \ 54 SUNWapu13dbd-pgsql \ 55 SUNWapu13dbd-sqlite \ 56 SUNWapu13-ldap \ 57 SUNWapch22d \ 58 SUNWapch22r \ 59 SUNWapch22u \ 60 SUNWapch22m-php52 \ 61 SUNWapch22r-php52 \ 62 SUNWapch22m-fcgid \ 63 SUNWapch22r-fcgid \ 64 SUNWapch22m-jk \ 65 SUNWapch22r-jk \ 66 SUNWapch22m-security \ 67 SUNWapch22r-security \ 68 SUNWapch22m-dtrace \ 69 SUNWapch22r-dtrace \ 70 SUNWant \ 71 SUNWbash \ 72 SUNWbcc \ 73 SUNWbinutils \ 74 SUNWbison \ 75 SUNWbzip \ 76 SUNWcupsr \ 77 SUNWcupsu \ 78 SUNWcurl \ 79 SUNWcvs \ 80 SUNWerlang \ 81 SUNWerlang-doc \ 82 SUNWexpect \ 83 SUNWunzip \ 84 SUNWdvdrw \ 85 SUNWfetchmail \ 86 SUNWffiltersr \ 87 SUNWffiltersu \ 88 SUNWflexlex \ 89 SUNWflexruntime \ 90 SUNWfppd \ 91 SUNWgawk \ 92 SUNWgcc \ 93 SUNWgccruntime \ 94 SUNWgcmn \ 95 SUNWgdb \ 96 SUNWgd2 \ 97 SUNWghostscriptr \ 98 SUNWghostscriptu \ 99 SUNWgimpprint \ 100 SUNWgpch \ 101 SUNWggrp \ 102 SUNWgm4 \ 103 SUNWgmake \ 104 SUNWgnu-automake-19 \ 105 SUNWgnu-automake-110 \ 106 SUNWgnu-coreutils \ 107 SUNWgnu-diffutils \ 108 SUNWgnu-emacs \ 109 SUNWgnu-emacs-el \ 110 SUNWgnu-emacs-gtk \ 111 SUNWgnu-emacs-nox \ 112 SUNWgnu-emacs-x \ 113 SUNWgnu-gettext \ 114 SUNWgnu-idn \ 115 SUNWgnu-mc \ 116 SUNWgnu-gperf \ 117 SUNWgnu-which \ 118 SUNWgsed \ 119 SUNWgsfot \ 120 SUNWgsfst \ 121 SUNWgtar \ 122 SUNWGlib \ 123 SUNWGtkr \ 124 SUNWGtku \ 125 SUNWgzip \ 126 SUNWhpijs \ 127 SUNWilmbase \ 128 SUNWimagick \ 129 SUNWipmi \ 130 SUNWipmir \ 131 SUNWircii \ 132 SUNWjruby \ 133 SUNWlcms \ 134 SUNWless \ 135 SUNWlexpt \ 136 SUNWlftpr \ 137 SUNWlftpu \ 138 SUNWlibevent \ 139 SUNWlibmemcached \ 140 SUNWlibmng \ 141 SUNWlibnet \ 142 SUNWlibopenusb \ 143 SUNWlibpcap \ 144 SUNWlibrsync \ 145 SUNWlibtool \ 146 SUNWlinks \ 147 SUNWlogrotater \ 148 SUNWlogrotateu \ 149 SUNWlighttpd14r \ 150 SUNWlighttpd14u \ 151 SUNWltdl \ 152 SUNWlxml \ 153 SUNWlxmlr \ 154 SUNWlxml-devel \ 155 SUNWlxml-python \ 156 SUNWlxsl \ 157 SUNWlxsl-devel \ 158 SUNWlxsl-python \ 159 SUNWmeld \ 160 SUNWmemcached \ 161 SUNWmemcachedr \ 162 SUNWmemcached-java \ 163 SUNWmercurial \ 164 SUNWmkcd \ 165 SUNWmkcdr \ 166 SUNWmtx \ 167 SUNWmutt \ 168 SUNWmuttr \ 169 SUNWmysqlr \ 170 SUNWmysqlt \ 171 SUNWmysqlu \ 172 SUNWmysql5u \ 173 SUNWmysql5r \ 174 SUNWmysql5test \ 175 SUNWmysql5jdbc \ 176 SUNWncft \ 177 SUNWneon \ 178 SUNWnethack \ 179 SUNWnethackr \ 180 SUNWnmap \ 181 SUNWopenexr \ 182 SUNWp7zip \ 183 SUNWpampkcs11r \ 184 SUNWpampkcs11u \ 185 SUNWpampkcs11-docs \ 186 SUNWpcre \ 187 SUNWpgadmin3 \ 188 SUNWpgbouncer-pg83-config \ 189 SUNWpgbouncer-pg83-server \ 190 SUNWphp52d \ 191 SUNWphp52u \ 192 SUNWphp52r \ 193 SUNWphp52u-mysql \ 194 SUNWphp52r-mysql \ 195 SUNWphp52u-pear \ 196 SUNWphp52r-pear \ 197 SUNWphp52u-pgsql \ 198 SUNWphp52r-pgsql \ 199 SUNWpmdbi \ 200 SUNWpmdbdpg \ 201 SUNWpostgr \ 202 SUNWpostgr-contrib \ 203 SUNWpostgr-devel \ 204 SUNWpostgr-docs \ 205 SUNWpostgr-jdbc \ 206 SUNWpostgr-libs \ 207 SUNWpostgr-pl \ 208 SUNWpostgr-server \ 209 SUNWpostgr-server-data \ 210 SUNWpostgr-tcl \ 211 SUNWpostgr-82-client \ 212 SUNWpostgr-82-contrib \ 213 SUNWpostgr-82-devel \ 214 SUNWpostgr-82-docs \ 215 SUNWpostgr-82-libs \ 216 SUNWpostgr-82-pl \ 217 SUNWpostgr-82-server \ 218 SUNWpostgr-82-server-data-root \ 219 SUNWpostgr-82-jdbc \ 220 SUNWpostgr-82-tcl \ 221 SUNWpostgr-83-client \ 222 SUNWpostgr-83-contrib \ 223 SUNWpostgr-83-devel \ 224 SUNWpostgr-83-docs \ 225 SUNWpostgr-83-libs \ 226 SUNWpostgr-83-pl \ 227 SUNWpostgr-83-server \ 228 SUNWpostgr-83-server-data-root \ 229 SUNWpostgr-83-tcl \ 230 SUNWpostgr-83-tests \ 231 SUNWpostgr-upgrade \ 232 SUNWprivoxyr \ 233 SUNWprivoxyu \ 234 SUNWprocmail \ 235 SUNWpsutils \ 236 SUNWpycups \ 237 SUNWrpm \ 238 SUNWrsync \ 239 SUNWruby18u \ 240 SUNWruby18r \ 241 SUNWsane-backendr \ 242 SUNWsane-backendu \ 243 SUNWsane-frontend \ 244 SUNWscreen \ 245 SUNWscreenrc \ 246 SUNWserr \ 247 SUNWseru \ 248 SUNWserweb \ 249 SUNWsfdoc \ 250 SUNWsfinf \ 251 SUNWsfman \ 252 SUNWsfwdemo \ 253 SUNWsfwhea \ 254 SUNWslang \ 255 SUNWslangr \ 256 SUNWsmbar \ 257 SUNWsmbau \ 258 SUNWsnack \ 259 SUNWsqlite3 \ 260 SUNWsqlite3docs \ 261 SUNWsqlite3tcl \ 262 SUNWsquidr \ 263 SUNWsquidu \ 264 SUNWstunnelr \ 265 SUNWstunnelu \ 266 SUNWsudor \ 267 SUNWsudou \ 268 SUNWsvn \ 269 SUNWsvn-java \ 270 SUNWsvn-perl \ 271 SUNWsvn-python \ 272 SUNWswig \ 273 SUNWTcl \ 274 SUNWtcltls \ 275 SUNWtcatr \ 276 SUNWtcatu \ 277 SUNWtcsh \ 278 SUNWtexi \ 279 SUNWtidy \ 280 SUNWTk \ 281 SUNWtop \ 282 SUNWvim \ 283 SUNWwgetr \ 284 SUNWwgetu \ 285 SUNWzlib \ 286 SUNWzlibr \ 287 SUNWzip \ 288 SUNWzsh \ 289 SUNWsmmgr \ 290 SUNWsmagt \ 291 SUNWsmdoc \ 292 SUNWsmcmd \ 293 SUNWlibusb \ 294 SUNWlibusbugen \ 295 SUNWquaggar \ 296 SUNWquaggau \ 297 SUNWbind \ 298 SUNWbindr \ 299 SUNWslib \ 300 SUNWwebminu \ 301 SUNWwebminr \ 302 SUNWwxwidgets \ 303 SUNWwxwidgets-devel \ 304 SUNWusbccid \ 305 SUNWdiffstat 306 307 # STUB_ON_SUBDIRS are directories that are placeholder stubs 308 # for packages delivered by the ON consolidation. These directories 309 # provide enough information about the files delivered by the real 310 # package to allow protocmp to properly validate such dependencies. 311 # However, no corresponding package is delivered. 312 # 313 # At the current time, this feature is used to allow use of 314 # /usr/lib/isaexec from sfw. 315 STUB_ON_SUBDIRS= \ 316 SUNWcsu 317 318 SUBDIRS= $($(MACH)_SUBDIRS) $(COMMON_SUBDIRS) $(STUB_ON_SUBDIRS) 319 320 all := TARGET= all 321 install := TARGET= install 322 install_h := TARGET= install_h 323 clean := TARGET= clean 324 clobber := TARGET= clobber 325 326 %: %.ksh 327 $(RM) $@ 328 cp $< $@ 329 chmod +x $@ 330 331 .KEEP_STATE: 332 333 .PARALLEL: $(SUBDIRS) 334 335 all: awk_pkginfo audit_pkg $(SUBDIRS) 336 337 install: awk_pkginfo audit_pkg $(SUBDIRS) $(SFW_RUN_CHECK_DEPS) check_deps 338 339 check_deps: 340 @echo "\n==== Checking package dependencies ====\n" 341 @if [ ! -d "$(SFW_PKGDB)" ]; then \ 342 echo "error: SFW_PKGDB must be set"; \ 343 else ; \ 344 echo $(SFW_CHECK_DEPS) $(SUBDIRS); \ 345 $(SFW_CHECK_DEPS) $(SUBDIRS); \ 346 fi 347 348 clean clobber: $(SUBDIRS) 349 $(RM) awk_pkginfo bld_awk_pkginfo 350 351 $(SUBDIRS): FRC 352 @cd $@; pwd; $(MAKE) $(TARGET) 353 354 awk_pkginfo: bld_awk_pkginfo 355 ./bld_awk_pkginfo -m $(MACH) -p "$(SFWRELEASE)/$(SFWVERSION)" -o $@ \ 356 -v $(SFWVERS) 357 358 359 FRC: