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.251 09/07/12 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 SUNWlinks \ 230 SUNWlogilab-common \ 231 SUNWlogrotater \ 232 SUNWlogrotateu \ 233 SUNWlog4j \ 234 SUNWlogilab-astng \ 235 SUNWlighttpd14r \ 236 SUNWlighttpd14u \ 237 SUNWltdl \ 238 SUNWlua \ 239 SUNWlxml \ 240 SUNWlxmlr \ 241 SUNWlxml-devel \ 242 SUNWlxml-python \ 243 SUNWlxsl \ 244 SUNWlxsl-devel \ 245 SUNWlxsl-python \ 246 SUNWmeld \ 247 SUNWmemcached \ 248 SUNWmemcachedr \ 249 SUNWmemcached-java \ 250 SUNWmercurial \ 251 SUNWmkcd \ 252 SUNWmkcdr \ 253 SUNWmrtg \ 254 SUNWmrxvt \ 255 SUNWmtx \ 256 SUNWmutt \ 257 SUNWmuttr \ 258 SUNWmvel \ 259 SUNWmysqlr \ 260 SUNWmysqlt \ 261 SUNWmysqlu \ 262 SUNWmysql5u \ 263 SUNWmysql5r \ 264 SUNWmysql5test \ 265 SUNWmysql5jdbc \ 266 SUNWmysql51r \ 267 SUNWmysql51u \ 268 SUNWmysql51lib \ 269 SUNWmysql51test \ 270 SUNWncft \ 271 SUNWneon \ 272 SUNWnethack \ 273 SUNWnethackr \ 274 SUNWnmap \ 275 SUNWntpr \ 276 SUNWntpu \ 277 SUNWobjectasm \ 278 SUNWocaml \ 279 SUNWopenexr \ 280 SUNWopenldapr \ 281 SUNWopenldapu \ 282 SUNWopenssl-commands \ 283 SUNWopenssl-include \ 284 SUNWopenssl-libraries \ 285 SUNWopenssl-man \ 286 SUNWopensslr \ 287 SUNWopenwsmanr \ 288 SUNWopenwsmanu \ 289 SUNWp7zip \ 290 SUNWpampkcs11r \ 291 SUNWpampkcs11u \ 292 SUNWpampkcs11-docs \ 293 SUNWpatchutils \ 294 SUNWpconsoler \ 295 SUNWpconsole \ 296 SUNWpcre \ 297 SUNWpen \ 298 SUNWpenr \ 299 SUNWperl-net-ssleay \ 300 SUNWperl-pmtools \ 301 SUNWpgadmin3 \ 302 SUNWpgbouncer-pg83-config \ 303 SUNWpgbouncer-pg83-server \ 304 SUNWphp52d \ 305 SUNWphp52u \ 306 SUNWphp52r \ 307 SUNWphp52u-mysql \ 308 SUNWphp52r-mysql \ 309 SUNWphp52u-pear \ 310 SUNWphp52r-pear \ 311 SUNWphp52u-pgsql \ 312 SUNWphp52r-pgsql \ 313 SUNWpipe-viewer \ 314 SUNWpmdbi \ 315 SUNWpmdbdpg \ 316 SUNWpostgr-82-client \ 317 SUNWpostgr-82-contrib \ 318 SUNWpostgr-82-devel \ 319 SUNWpostgr-82-docs \ 320 SUNWpostgr-82-libs \ 321 SUNWpostgr-82-pl \ 322 SUNWpostgr-82-server \ 323 SUNWpostgr-82-server-data-root \ 324 SUNWpostgr-82-jdbc \ 325 SUNWpostgr-82-tcl \ 326 SUNWpostgr-83-client \ 327 SUNWpostgr-83-contrib \ 328 SUNWpostgr-83-devel \ 329 SUNWpostgr-83-docs \ 330 SUNWpostgr-83-libs \ 331 SUNWpostgr-83-pl \ 332 SUNWpostgr-83-server \ 333 SUNWpostgr-83-server-data-root \ 334 SUNWpostgr-83-tcl \ 335 SUNWpostgr-83-tests \ 336 SUNWpostgr-jdbc \ 337 SUNWpostgr-upgrade \ 338 SUNWpowermanr \ 339 SUNWpowermanu \ 340 SUNWprivoxyr \ 341 SUNWprivoxyu \ 342 SUNWprocmail \ 343 SUNWpsutils \ 344 SUNWpull-parser \ 345 SUNWpycups \ 346 SUNWpylint \ 347 SUNWpython-pyopenssl \ 348 SUNWpython26-pyopenssl \ 349 SUNWpwgen \ 350 SUNWquiltr \ 351 SUNWquiltu \ 352 SUNWrdiff-backup \ 353 SUNWrelaxngDatatype \ 354 SUNWrpm \ 355 SUNWrsync \ 356 SUNWrtorrent \ 357 SUNWruby18u \ 358 SUNWruby18r \ 359 SUNWsaaj \ 360 SUNWsane-backendr \ 361 SUNWsane-backendu \ 362 SUNWsane-frontend \ 363 SUNWSblimCimClient \ 364 SUNWsblimwbemcli \ 365 SUNWscreen \ 366 SUNWscreenrc \ 367 SUNWserr \ 368 SUNWseru \ 369 SUNWserweb \ 370 SUNWsfdoc \ 371 SUNWsfinf \ 372 SUNWsfman \ 373 SUNWsfwhea \ 374 SUNWsg3utilsr \ 375 SUNWsg3utilsu \ 376 SUNWshmux \ 377 SUNWsimplewbem \ 378 SUNWslang \ 379 SUNWslangr \ 380 SUNWslrn \ 381 SUNWsmbar \ 382 SUNWsmbau \ 383 SUNWsnack \ 384 SUNWsnortr \ 385 SUNWsnortu \ 386 SUNWsqlite3 \ 387 SUNWsqlite3docs \ 388 SUNWsqlite3tcl \ 389 SUNWsquidr \ 390 SUNWsquidu \ 391 SUNWstunnelr \ 392 SUNWstunnelu \ 393 SUNWsudor \ 394 SUNWsudou \ 395 SUNWsvn \ 396 SUNWsvn-java \ 397 SUNWsvn-perl \ 398 SUNWsvn-python \ 399 SUNWswig \ 400 SUNWTcl \ 401 SUNWtcltls \ 402 SUNWtcatr \ 403 SUNWtcatu \ 404 SUNWtcsh \ 405 SUNWtexi \ 406 SUNWtidy \ 407 SUNWTk \ 408 SUNWtop \ 409 SUNWtor \ 410 SUNWtor-root \ 411 SUNWtree \ 412 SUNWtss \ 413 SUNWtss-root \ 414 SUNWunison \ 415 SUNWunixodbcr \ 416 SUNWunixodbc \ 417 SUNWvim \ 418 SUNWwgetr \ 419 SUNWwgetu \ 420 SUNWxpp3min \ 421 SUNWxsdlib \ 422 SUNWxstream \ 423 SUNWxom \ 424 SUNWzlib \ 425 SUNWzlibr \ 426 SUNWzip \ 427 SUNWzsh \ 428 SUNWnet-snmp-mgr \ 429 SUNWnet-snmp-core \ 430 SUNWnet-snmp-doc \ 431 SUNWnet-snmp-utils \ 432 SUNWnet-snmp-addons \ 433 SUNWlibusb \ 434 SUNWlibusbugen \ 435 SUNWquaggar \ 436 SUNWquaggau \ 437 SUNWbind \ 438 SUNWbindc \ 439 SUNWbindr \ 440 SUNWslib \ 441 SUNWwebalizer \ 442 SUNWwebalizerr \ 443 SUNWwebminu \ 444 SUNWwebminr \ 445 SUNWwireshark \ 446 SUNWwiresharkr \ 447 SUNWwisemanr \ 448 SUNWwisemanu \ 449 SUNWwxwidgets \ 450 SUNWwxwidgets-devel \ 451 SUNWusbccid \ 452 SUNWdiffstat 453 454 # STUB_ON_SUBDIRS are directories that are placeholder stubs 455 # for packages delivered by the ON consolidation. These directories 456 # provide enough information about the files delivered by the real 457 # package to allow protocmp to properly validate such dependencies. 458 # However, no corresponding package is delivered. 459 # 460 # At the current time, this feature is used to allow use of 461 # /usr/lib/isaexec from sfw. 462 STUB_ON_SUBDIRS= \ 463 SUNWcsu 464 465 SUBDIRS= $($(MACH)_SUBDIRS) $(COMMON_SUBDIRS) $(STUB_ON_SUBDIRS) 466 467 all := TARGET= all 468 install := TARGET= install 469 install_h := TARGET= install_h 470 clean := TARGET= clean 471 clobber := TARGET= clobber 472 473 %: %.ksh 474 $(RM) $@ 475 cp $< $@ 476 chmod +x $@ 477 478 .KEEP_STATE: 479 480 .PARALLEL: $(SUBDIRS) 481 482 all: awk_pkginfo audit_pkg $(SUBDIRS) 483 484 install: awk_pkginfo audit_pkg $(SUBDIRS) $(SFW_RUN_CHECK_DEPS) check_deps 485 486 check_deps: 487 @echo "\n==== Checking package dependencies ====\n" 488 @if [ ! -d "$(SFW_PKGDB)" ]; then \ 489 echo "error: SFW_PKGDB must be set"; \ 490 else ; \ 491 echo $(SFW_CHECK_DEPS) $(SUBDIRS); \ 492 $(SFW_CHECK_DEPS) $(SUBDIRS); \ 493 fi 494 495 clean clobber: $(SUBDIRS) 496 $(RM) awk_pkginfo bld_awk_pkginfo 497 498 $(SUBDIRS): FRC 499 @cd $@; echo "$(TARGET) \c" ; pwd; $(MAKE) $(TARGET) 500 501 awk_pkginfo: bld_awk_pkginfo 502 ./bld_awk_pkginfo -m $(MACH) -p "$(SFWRELEASE)/$(SFWVERSION)" -o $@ \ 503 -v $(SFWVERS) 504 505 506 FRC: