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.247 09/07/02 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 SUNWettcp \ 117 SUNWexpect \ 118 SUNWfcgi \ 119 SUNWfcgi-doc \ 120 SUNWunrar \ 121 SUNWunzip \ 122 SUNWdvdrw \ 123 SUNWfetchmail \ 124 SUNWffiltersr \ 125 SUNWffiltersu \ 126 SUNWfftw2 \ 127 SUNWfftw3 \ 128 SUNWflexlex \ 129 SUNWflexruntime \ 130 SUNWfping \ 131 SUNWfpingr \ 132 SUNWfoomatic-db \ 133 SUNWfoomatic-db-enginer \ 134 SUNWfoomatic-db-engineu \ 135 SUNWfppd \ 136 SUNWgawk \ 137 SUNWgcc \ 138 SUNWgccruntime \ 139 SUNWgcmn \ 140 SUNWgdb \ 141 SUNWgd2 \ 142 SUNWghostscriptr \ 143 SUNWghostscriptu \ 144 SUNWgimpprint \ 145 SUNWgpch \ 146 SUNWggrp \ 147 SUNWgit \ 148 SUNWgm4 \ 149 SUNWgmake \ 150 SUNWgnu-automake-19 \ 151 SUNWgnu-automake-110 \ 152 SUNWgnu-coreutils \ 153 SUNWgnu-dbm \ 154 SUNWgnu-diffutils \ 155 SUNWgnu-emacs \ 156 SUNWgnu-emacs-el \ 157 SUNWgnu-emacs-gtk \ 158 SUNWgnu-emacs-nox \ 159 SUNWgnu-emacs-x \ 160 SUNWgnu-gettext \ 161 SUNWgnu-gperf \ 162 SUNWgnu-idn \ 163 SUNWgnu-mc \ 164 SUNWgnu-mp \ 165 SUNWgnu-mpfr \ 166 SUNWgnu-nano \ 167 SUNWgnu-readline \ 168 SUNWgnu-which \ 169 SUNWgocr \ 170 SUNWgrails \ 171 SUNWgsed \ 172 SUNWgsfot \ 173 SUNWgsfst \ 174 SUNWgtar \ 175 SUNWguile \ 176 SUNWGlib \ 177 SUNWGtkr \ 178 SUNWGtku \ 179 SUNWgvim \ 180 SUNWgzip \ 181 SUNWhal-cups-utilsr \ 182 SUNWhal-cups-utils \ 183 SUNWhexedit \ 184 SUNWhpijs \ 185 SUNWhttping \ 186 SUNWiftop \ 187 SUNWilmbase \ 188 SUNWimagick \ 189 SUNWImperius \ 190 SUNWiozone \ 191 SUNWiperf \ 192 SUNWipmi \ 193 SUNWipmir \ 194 SUNWircii \ 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 SUNWlibxmlrpc-c \ 228 SUNWlinks \ 229 SUNWlogilab-common \ 230 SUNWlogrotater \ 231 SUNWlogrotateu \ 232 SUNWlog4j \ 233 SUNWlogilab-astng \ 234 SUNWlighttpd14r \ 235 SUNWlighttpd14u \ 236 SUNWltdl \ 237 SUNWlua \ 238 SUNWlxml \ 239 SUNWlxmlr \ 240 SUNWlxml-devel \ 241 SUNWlxml-python \ 242 SUNWlxsl \ 243 SUNWlxsl-devel \ 244 SUNWlxsl-python \ 245 SUNWmeld \ 246 SUNWmemcached \ 247 SUNWmemcachedr \ 248 SUNWmemcached-java \ 249 SUNWmercurial \ 250 SUNWmkcd \ 251 SUNWmkcdr \ 252 SUNWmrtg \ 253 SUNWmrxvt \ 254 SUNWmtx \ 255 SUNWmutt \ 256 SUNWmuttr \ 257 SUNWmvel \ 258 SUNWmysqlr \ 259 SUNWmysqlt \ 260 SUNWmysqlu \ 261 SUNWmysql5u \ 262 SUNWmysql5r \ 263 SUNWmysql5test \ 264 SUNWmysql5jdbc \ 265 SUNWmysql51r \ 266 SUNWmysql51u \ 267 SUNWmysql51lib \ 268 SUNWmysql51test \ 269 SUNWncft \ 270 SUNWneon \ 271 SUNWnethack \ 272 SUNWnethackr \ 273 SUNWnmap \ 274 SUNWntpr \ 275 SUNWntpu \ 276 SUNWobjectasm \ 277 SUNWocaml \ 278 SUNWopenexr \ 279 SUNWopenldapr \ 280 SUNWopenldapu \ 281 SUNWopenssl-commands \ 282 SUNWopenssl-include \ 283 SUNWopenssl-libraries \ 284 SUNWopenssl-man \ 285 SUNWopensslr \ 286 SUNWopenwsmanr \ 287 SUNWopenwsmanu \ 288 SUNWp7zip \ 289 SUNWpampkcs11r \ 290 SUNWpampkcs11u \ 291 SUNWpampkcs11-docs \ 292 SUNWpatchutils \ 293 SUNWpconsoler \ 294 SUNWpconsole \ 295 SUNWpcre \ 296 SUNWpen \ 297 SUNWpenr \ 298 SUNWperl-net-ssleay \ 299 SUNWperl-pmtools \ 300 SUNWpgadmin3 \ 301 SUNWpgbouncer-pg83-config \ 302 SUNWpgbouncer-pg83-server \ 303 SUNWphp52d \ 304 SUNWphp52u \ 305 SUNWphp52r \ 306 SUNWphp52u-mysql \ 307 SUNWphp52r-mysql \ 308 SUNWphp52u-pear \ 309 SUNWphp52r-pear \ 310 SUNWphp52u-pgsql \ 311 SUNWphp52r-pgsql \ 312 SUNWpmdbi \ 313 SUNWpmdbdpg \ 314 SUNWpostgr-82-client \ 315 SUNWpostgr-82-contrib \ 316 SUNWpostgr-82-devel \ 317 SUNWpostgr-82-docs \ 318 SUNWpostgr-82-libs \ 319 SUNWpostgr-82-pl \ 320 SUNWpostgr-82-server \ 321 SUNWpostgr-82-server-data-root \ 322 SUNWpostgr-82-jdbc \ 323 SUNWpostgr-82-tcl \ 324 SUNWpostgr-83-client \ 325 SUNWpostgr-83-contrib \ 326 SUNWpostgr-83-devel \ 327 SUNWpostgr-83-docs \ 328 SUNWpostgr-83-libs \ 329 SUNWpostgr-83-pl \ 330 SUNWpostgr-83-server \ 331 SUNWpostgr-83-server-data-root \ 332 SUNWpostgr-83-tcl \ 333 SUNWpostgr-83-tests \ 334 SUNWpostgr-jdbc \ 335 SUNWpostgr-upgrade \ 336 SUNWpowermanr \ 337 SUNWpowermanu \ 338 SUNWprivoxyr \ 339 SUNWprivoxyu \ 340 SUNWprocmail \ 341 SUNWpsutils \ 342 SUNWpull-parser \ 343 SUNWpycups \ 344 SUNWpylint \ 345 SUNWpython-pyopenssl \ 346 SUNWpython26-pyopenssl \ 347 SUNWpwgen \ 348 SUNWquiltr \ 349 SUNWquiltu \ 350 SUNWrdiff-backup \ 351 SUNWrelaxngDatatype \ 352 SUNWrpm \ 353 SUNWrsync \ 354 SUNWruby18u \ 355 SUNWruby18r \ 356 SUNWsaaj \ 357 SUNWsane-backendr \ 358 SUNWsane-backendu \ 359 SUNWsane-frontend \ 360 SUNWSblimCimClient \ 361 SUNWsblimwbemcli \ 362 SUNWscreen \ 363 SUNWscreenrc \ 364 SUNWserr \ 365 SUNWseru \ 366 SUNWserweb \ 367 SUNWsfdoc \ 368 SUNWsfinf \ 369 SUNWsfman \ 370 SUNWsfwdemo \ 371 SUNWsfwhea \ 372 SUNWsg3utilsr \ 373 SUNWsg3utilsu \ 374 SUNWshmux \ 375 SUNWsimplewbem \ 376 SUNWslang \ 377 SUNWslangr \ 378 SUNWslrn \ 379 SUNWsmbar \ 380 SUNWsmbau \ 381 SUNWsnack \ 382 SUNWsnortr \ 383 SUNWsnortu \ 384 SUNWsqlite3 \ 385 SUNWsqlite3docs \ 386 SUNWsqlite3tcl \ 387 SUNWsquidr \ 388 SUNWsquidu \ 389 SUNWstunnelr \ 390 SUNWstunnelu \ 391 SUNWsudor \ 392 SUNWsudou \ 393 SUNWsvn \ 394 SUNWsvn-java \ 395 SUNWsvn-perl \ 396 SUNWsvn-python \ 397 SUNWswig \ 398 SUNWTcl \ 399 SUNWtcltls \ 400 SUNWtcatr \ 401 SUNWtcatu \ 402 SUNWtcsh \ 403 SUNWtexi \ 404 SUNWtidy \ 405 SUNWTk \ 406 SUNWtop \ 407 SUNWtor \ 408 SUNWtor-root \ 409 SUNWtree \ 410 SUNWtss \ 411 SUNWtss-root \ 412 SUNWunison \ 413 SUNWunixodbcr \ 414 SUNWunixodbc \ 415 SUNWvim \ 416 SUNWwgetr \ 417 SUNWwgetu \ 418 SUNWxpp3min \ 419 SUNWxsdlib \ 420 SUNWxstream \ 421 SUNWxom \ 422 SUNWzlib \ 423 SUNWzlibr \ 424 SUNWzip \ 425 SUNWzsh \ 426 SUNWsmmgr \ 427 SUNWsmagt \ 428 SUNWsmdoc \ 429 SUNWsmcmd \ 430 SUNWlibusb \ 431 SUNWlibusbugen \ 432 SUNWquaggar \ 433 SUNWquaggau \ 434 SUNWbind \ 435 SUNWbindr \ 436 SUNWslib \ 437 SUNWwebalizer \ 438 SUNWwebalizerr \ 439 SUNWwebminu \ 440 SUNWwebminr \ 441 SUNWwireshark \ 442 SUNWwiresharkr \ 443 SUNWwisemanr \ 444 SUNWwisemanu \ 445 SUNWwxwidgets \ 446 SUNWwxwidgets-devel \ 447 SUNWusbccid \ 448 SUNWdiffstat 449 450 # STUB_ON_SUBDIRS are directories that are placeholder stubs 451 # for packages delivered by the ON consolidation. These directories 452 # provide enough information about the files delivered by the real 453 # package to allow protocmp to properly validate such dependencies. 454 # However, no corresponding package is delivered. 455 # 456 # At the current time, this feature is used to allow use of 457 # /usr/lib/isaexec from sfw. 458 STUB_ON_SUBDIRS= \ 459 SUNWcsu 460 461 SUBDIRS= $($(MACH)_SUBDIRS) $(COMMON_SUBDIRS) $(STUB_ON_SUBDIRS) 462 463 all := TARGET= all 464 install := TARGET= install 465 install_h := TARGET= install_h 466 clean := TARGET= clean 467 clobber := TARGET= clobber 468 469 %: %.ksh 470 $(RM) $@ 471 cp $< $@ 472 chmod +x $@ 473 474 .KEEP_STATE: 475 476 .PARALLEL: $(SUBDIRS) 477 478 all: awk_pkginfo audit_pkg $(SUBDIRS) 479 480 install: awk_pkginfo audit_pkg $(SUBDIRS) $(SFW_RUN_CHECK_DEPS) check_deps 481 482 check_deps: 483 @echo "\n==== Checking package dependencies ====\n" 484 @if [ ! -d "$(SFW_PKGDB)" ]; then \ 485 echo "error: SFW_PKGDB must be set"; \ 486 else ; \ 487 echo $(SFW_CHECK_DEPS) $(SUBDIRS); \ 488 $(SFW_CHECK_DEPS) $(SUBDIRS); \ 489 fi 490 491 clean clobber: $(SUBDIRS) 492 $(RM) awk_pkginfo bld_awk_pkginfo 493 494 $(SUBDIRS): FRC 495 @cd $@; echo "$(TARGET) \c" ; pwd; $(MAKE) $(TARGET) 496 497 awk_pkginfo: bld_awk_pkginfo 498 ./bld_awk_pkginfo -m $(MACH) -p "$(SFWRELEASE)/$(SFWVERSION)" -o $@ \ 499 -v $(SFWVERS) 500 501 502 FRC: