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