Print this page
fsh, fsd, libfsd, fsdadm from Sep 3rd webrev
Split |
Close |
Expand all |
Collapse all |
--- old/usr/src/lib/Makefile
+++ new/usr/src/lib/Makefile
1 1 #
2 2 # CDDL HEADER START
3 3 #
4 4 # The contents of this file are subject to the terms of the
5 5 # Common Development and Distribution License (the "License").
6 6 # You may not use this file except in compliance with the License.
7 7 #
8 8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 9 # or http://www.opensolaris.org/os/licensing.
10 10 # See the License for the specific language governing permissions
11 11 # and limitations under the License.
12 12 #
13 13 # When distributing Covered Code, include this CDDL HEADER in each
14 14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 15 # If applicable, add the following below this CDDL HEADER, with the
16 16 # fields enclosed by brackets "[]" replaced with your own identifying
17 17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 18 #
19 19 # CDDL HEADER END
20 20 #
21 21
22 22 # Copyright 2011 Nexenta Systems, Inc. All rights reserved.
23 23 # Copyright (c) 1989, 2010, Oracle and/or its affiliates. All rights reserved.
24 24 # Copyright (c) 2012 by Delphix. All rights reserved.
25 25 # Copyright (c) 2012, Joyent, Inc. All rights reserved.
26 26
27 27 include ../Makefile.master
28 28
29 29 # Note that libcurses installs commands along with its library.
30 30 # This is a minor bug which probably should be fixed.
31 31 # Note also that a few extra libraries are kept in cmd source.
32 32 #
33 33 # Certain libraries are linked with, hence depend on, other libraries.
34 34 #
35 35 # Although we have historically used .WAIT to express dependencies, it
36 36 # reduces the amount of parallelism and thus lengthens the time it
37 37 # takes to build the libraries. Thus, we now require that any new
38 38 # libraries explicitly call out their dependencies. Eventually, all
39 39 # the library dependencies will be called out explicitly. See
40 40 # "Library interdependencies" near the end of this file.
41 41 #
42 42 # Aside from explicit dependencies (and legacy .WAITs), all libraries
43 43 # are built in parallel.
44 44 #
45 45 .PARALLEL:
46 46
47 47 #
48 48 # The $(CLOSED_BUILD) additions to SUBDIRS & MSGSUBDIRS are unfortunate,
49 49 # but required due to the "dependencies" of using .WAIT to barrier the
50 50 # parallel dmake builds. once 4631488 has been fixed, they can be
51 51 # consolidated into one $(CLOSED_BUILD)SUBDIRS += (all closed libs) as
52 52 # shown in HDRSUBDIRS
53 53 #
54 54 SUBDIRS= \
55 55 common .WAIT \
56 56 ../cmd/sgs/libconv \
57 57 ../cmd/sgs/libdl .WAIT
58 58
59 59 SUBDIRS += \
60 60 libc .WAIT \
61 61 ../cmd/sgs/libelf .WAIT \
62 62 c_synonyms \
63 63 libmd \
64 64 libmd5 \
65 65 librsm \
66 66 libmp .WAIT \
67 67 libnsl \
68 68 libsecdb .WAIT \
69 69 librpcsvc \
70 70 libsocket .WAIT \
71 71 libsctp \
72 72 libsip \
73 73 libcommputil \
74 74 libresolv \
75 75 libresolv2 .WAIT \
76 76 libw .WAIT \
77 77 libintl .WAIT \
78 78 ../cmd/sgs/librtld_db \
79 79 libaio \
80 80 libast \
81 81 libdll \
82 82 libcmd \
83 83 libshell \
84 84 libsum \
85 85 librt \
86 86 libadm \
87 87 libctf \
88 88 libdtrace \
89 89 libdtrace_jni \
90 90 libcurses \
91 91 libtermcap \
92 92 libgen \
93 93 libgss \
94 94 libpam \
95 95 libuuid \
96 96 libthread \
97 97 libpthread .WAIT \
98 98 libslp \
99 99 libbsdmalloc \
100 100 libdoor \
101 101 libdevinfo \
102 102 libdladm \
103 103 libdlpi \
104 104 libeti \
105 105 libcrypt \
106 106 libdns_sd \
107 107 libefi \
108 108 libfstyp \
109 109 libwanboot \
110 110 libwanbootutil \
111 111 libcryptoutil \
112 112 libinetutil \
113 113 libipadm \
114 114 libipmp \
115 115 libiscsit \
116 116 libkmf \
117 117 libkstat \
118 118 libkvm \
119 119 liblm \
120 120 libmalloc \
121 121 libmapmalloc \
122 122 libmtmalloc \
123 123 libnls \
124 124 libnwam \
125 125 libsmbios \
126 126 libtecla \
127 127 libumem \
128 128 libnvpair .WAIT \
129 129 libexacct \
130 130 libsasl \
131 131 libldap5 \
132 132 libsldap .WAIT \
133 133 libbsm \
134 134 libsys \
135 135 libsysevent \
136 136 libnisdb \
137 137 libpool \
138 138 libpp \
139 139 libproc \
140 140 libproject \
141 141 libsendfile \
142 142 nametoaddr \
143 143 ncad_addr \
144 144 hbaapi \
145 145 smhba \
146 146 sun_fc \
147 147 sun_sas \
148 148 gss_mechs/mech_krb5 .WAIT \
149 149 libkrb5 .WAIT \
150 150 krb5 .WAIT \
151 151 libsmbfs \
↓ open down ↓ |
151 lines elided |
↑ open up ↑ |
152 152 libfcoe \
153 153 libsrpt \
154 154 libstmf \
155 155 libstmfproxy \
156 156 libnsctl \
157 157 libunistat \
158 158 libdscfg \
159 159 librdc \
160 160 libinstzones \
161 161 libpkg \
162 - libpcidb
162 + libpcidb \
163 + libfsd
163 164
164 165 SUBDIRS += \
165 166 passwdutil \
166 167 pam_modules \
167 168 crypt_modules \
168 169 libadt_jni \
169 170 abi \
170 171 auditd_plugins \
171 172 libvolmgt \
172 173 libdevice \
173 174 libdevid \
174 175 libdhcpsvc \
175 176 libc_db \
176 177 libndmp \
177 178 libsec \
178 179 libtnfprobe \
179 180 libtnf \
180 181 libtnfctl \
181 182 libdhcpagent \
182 183 libdhcpdu \
183 184 libdhcputil \
184 185 libxnet \
185 186 libipsecutil
186 187 $(CLOSED_BUILD)SUBDIRS += \
187 188 $(CLOSED)/lib/libike
188 189 SUBDIRS += \
189 190 nsswitch \
190 191 print \
191 192 libuutil \
192 193 libscf \
193 194 libinetsvc \
194 195 librestart \
195 196 libsched \
196 197 libelfsign \
197 198 pkcs11 .WAIT \
198 199 libpctx .WAIT \
199 200 libcpc \
200 201 watchmalloc \
201 202 extendedFILE \
202 203 madv \
203 204 mpss \
204 205 libdisasm \
205 206 libwrap \
206 207 libxcurses \
207 208 libxcurses2 \
208 209 libbrand .WAIT \
209 210 libzonecfg \
210 211 libzoneinfo \
211 212 libzonestat \
212 213 libtsnet \
213 214 libtsol \
214 215 gss_mechs/mech_spnego \
215 216 gss_mechs/mech_dummy \
216 217 gss_mechs/mech_dh \
217 218 rpcsec_gss \
218 219 libraidcfg .WAIT \
219 220 librcm .WAIT \
220 221 libcfgadm .WAIT \
221 222 libpicl .WAIT \
222 223 libpicltree .WAIT \
223 224 raidcfg_plugins \
224 225 cfgadm_plugins \
225 226 libmail \
226 227 lvm \
227 228 libsmedia \
228 229 libipp \
229 230 libdiskmgt \
230 231 liblgrp \
231 232 libfsmgt \
232 233 fm \
233 234 libavl \
234 235 libcmdutils \
235 236 libcontract \
236 237 ../cmd/sendmail/libmilter \
237 238 sasl_plugins \
238 239 udapl \
239 240 libzpool \
240 241 libzfs_core \
241 242 libzfs \
242 243 libbe \
243 244 pylibbe \
244 245 libzfs_jni \
245 246 pyzfs \
246 247 pysolaris \
247 248 libmapid \
248 249 brand \
249 250 policykit \
250 251 hal \
251 252 libshare \
252 253 libsqlite \
253 254 libidmap \
254 255 libadutils \
255 256 libipmi \
256 257 libexacct/demo \
257 258 libvrrpadm \
258 259 libvscan \
259 260 libgrubmgmt \
260 261 smbsrv \
261 262 libilb \
262 263 scsi \
263 264 libima \
264 265 libsun_ima \
265 266 mpapi \
266 267 librstp \
267 268 libreparse \
268 269 libhotplug \
269 270 libfruutils .WAIT \
270 271 libfru \
271 272 $($(MACH)_SUBDIRS)
272 273
273 274 i386_SUBDIRS= \
274 275 libntfs \
275 276 libparted \
276 277 libfdisk \
277 278 libsaveargs
278 279
279 280 sparc_SUBDIRS= .WAIT \
280 281 efcode \
281 282 libds \
282 283 libdscp \
283 284 libprtdiag .WAIT \
284 285 libprtdiag_psr \
285 286 libpri \
286 287 librsc \
287 288 storage \
288 289 libpcp \
289 290 libtsalarm \
290 291 libv12n
291 292
292 293 FM_sparc_DEPLIBS= libpri
293 294
294 295 fm: \
295 296 libexacct \
296 297 libipmi \
297 298 libzfs \
298 299 scsi \
299 300 $(FM_$(MACH)_DEPLIBS)
300 301
301 302 #
302 303 # Create a special version of $(SUBDIRS) with no .WAIT's, for use with the
303 304 # clean and clobber targets (for more information, see those targets, below).
304 305 #
305 306 NOWAIT_SUBDIRS= $(SUBDIRS:.WAIT=)
306 307
307 308 DCSUBDIRS = \
308 309 lvm
309 310
310 311 MSGSUBDIRS= \
311 312 abi \
312 313 auditd_plugins \
313 314 brand \
314 315 cfgadm_plugins \
315 316 gss_mechs/mech_dh \
316 317 gss_mechs/mech_krb5 \
317 318 krb5 \
318 319 libast \
319 320 libbsm \
320 321 libc \
321 322 libcfgadm \
322 323 libcmd \
323 324 libcontract \
324 325 libcurses \
325 326 libdhcpsvc \
326 327 libdhcputil \
327 328 libipsecutil \
328 329 libdiskmgt \
329 330 libdladm \
330 331 libdll \
331 332 libgrubmgmt \
332 333 libgss \
333 334 libidmap \
334 335 libipmp \
335 336 libilb \
336 337 libinetutil \
337 338 libinstzones \
338 339 libipadm \
339 340 libnsl \
340 341 libnwam \
341 342 libpam \
342 343 libpicl \
343 344 libpool \
344 345 libpkg \
345 346 libpp \
346 347 libscf \
347 348 libsasl \
348 349 libldap5 \
349 350 libsecdb \
350 351 libshare \
351 352 libshell \
352 353 libsldap \
353 354 libslp \
354 355 libsmbfs \
355 356 libsmedia \
356 357 libsum \
357 358 libtsol \
358 359 libuutil \
359 360 libvrrpadm \
360 361 libvscan \
361 362 libwanboot \
362 363 libwanbootutil \
363 364 libzfs \
364 365 libzonecfg \
365 366 lvm \
366 367 madv \
367 368 mpss \
368 369 pam_modules \
369 370 pyzfs \
370 371 pysolaris \
371 372 rpcsec_gss \
372 373 libreparse
373 374 MSGSUBDIRS += \
374 375 $($(MACH)_MSGSUBDIRS)
375 376
376 377 sparc_MSGSUBDIRS= \
377 378 libprtdiag \
378 379 libprtdiag_psr
379 380
380 381 i386_MSGSUBDIRS= libfdisk
381 382
382 383 HDRSUBDIRS= \
383 384 auditd_plugins \
384 385 libast \
385 386 libbrand \
386 387 libbsm \
387 388 libc \
388 389 libcmd \
389 390 libcmdutils \
390 391 libcommputil \
391 392 libcontract \
392 393 libcpc \
393 394 libctf \
394 395 libcurses \
395 396 libtermcap \
396 397 libcryptoutil \
397 398 libdevice \
398 399 libdevid \
399 400 libdevinfo \
400 401 libdiskmgt \
401 402 libdladm \
402 403 libdll \
403 404 libdlpi \
404 405 libdhcpagent \
405 406 libdhcpsvc \
406 407 libdhcputil \
407 408 libdisasm \
408 409 libdns_sd \
409 410 libdscfg \
410 411 libdtrace \
411 412 libdtrace_jni \
412 413 libelfsign \
413 414 libeti \
414 415 libfru \
415 416 libfstyp \
416 417 libgen \
417 418 libipadm \
418 419 libipsecutil \
419 420 libinetsvc \
420 421 libinetutil \
421 422 libinstzones \
422 423 libipmi \
423 424 libipmp \
424 425 libipp \
425 426 libiscsit \
426 427 libkstat \
427 428 libkvm \
428 429 libmail \
429 430 libmd \
430 431 libmtmalloc \
431 432 libndmp \
432 433 libnvpair \
433 434 libnsctl \
434 435 libnsl \
435 436 libnwam \
436 437 libpam \
437 438 libpcidb \
438 439 libpctx \
439 440 libpicl \
440 441 libpicltree \
441 442 libpool \
442 443 libpp \
443 444 libproc \
444 445 libraidcfg \
445 446 librcm \
446 447 librdc \
447 448 libscf \
448 449 libsip \
449 450 libsmbios \
450 451 librestart \
451 452 librpcsvc \
452 453 librsm \
453 454 librstp \
454 455 libsasl \
455 456 libsec \
456 457 libshell \
457 458 libslp \
458 459 libsmedia \
459 460 libsocket \
460 461 libsqlite \
461 462 libfcoe \
462 463 libsrpt \
463 464 libstmf \
464 465 libstmfproxy \
465 466 libsum \
466 467 libsysevent \
467 468 libtecla \
468 469 libtnf \
469 470 libtnfctl \
470 471 libtnfprobe \
471 472 libtsnet \
472 473 libtsol \
473 474 libvrrpadm \
474 475 libvolmgt \
475 476 libumem \
476 477 libunistat \
477 478 libuutil \
478 479 libwanboot \
479 480 libwanbootutil \
480 481 libwrap \
481 482 libxcurses2 \
482 483 libzfs \
483 484 libzfs_core \
484 485 libzfs_jni \
485 486 libzoneinfo \
486 487 libzonestat \
487 488 hal \
488 489 policykit \
489 490 lvm \
490 491 pkcs11 \
491 492 passwdutil \
492 493 ../cmd/sendmail/libmilter \
493 494 fm \
494 495 udapl \
495 496 libmapid \
496 497 libkrb5 \
497 498 libsmbfs \
498 499 libshare \
499 500 libidmap \
500 501 libvscan \
↓ open down ↓ |
328 lines elided |
↑ open up ↑ |
501 502 libgrubmgmt \
502 503 smbsrv \
503 504 libilb \
504 505 scsi \
505 506 hbaapi \
506 507 smhba \
507 508 libima \
508 509 libsun_ima \
509 510 mpapi \
510 511 libreparse \
512 + libfsd \
511 513 $($(MACH)_HDRSUBDIRS)
512 514
513 515 $(CLOSED_BUILD)HDRSUBDIRS += \
514 516 $(CLOSED)/lib/libike
515 517
516 518 i386_HDRSUBDIRS= \
517 519 libparted \
518 520 libfdisk \
519 521 libsaveargs
520 522
521 523 sparc_HDRSUBDIRS= \
522 524 libds \
523 525 libdscp \
524 526 libpri \
525 527 libv12n \
526 528 storage
527 529
528 530 all := TARGET= all
529 531 check := TARGET= check
530 532 clean := TARGET= clean
531 533 clobber := TARGET= clobber
532 534 install := TARGET= install
533 535 install_h := TARGET= install_h
534 536 lint := TARGET= lint
535 537 _dc := TARGET= _dc
536 538 _msg := TARGET= _msg
537 539
538 540 .KEEP_STATE:
539 541
540 542 #
541 543 # For the all and install targets, we clearly must respect library
542 544 # dependencies so that the libraries link correctly. However, for
543 545 # the remaining targets (check, clean, clobber, install_h, lint, _dc
544 546 # and _msg), libraries do not have any dependencies on one another
545 547 # and thus respecting dependencies just slows down the build.
546 548 # As such, for these rules, we use pattern replacement to explicitly
547 549 # avoid triggering the dependency information. Note that for clean,
548 550 # clobber and lint, we must use $(NOWAIT_SUBDIRS) rather than
549 551 # $(SUBDIRS), to prevent `.WAIT' from expanding to `.WAIT-nodepend'.
550 552 #
551 553
552 554 all: $(SUBDIRS)
553 555
554 556 install: $(SUBDIRS) .WAIT install_extra
555 557
556 558 # extra libraries kept in other source areas
557 559 install_extra:
558 560 @cd ../cmd/sgs; pwd; $(MAKE) install_lib
559 561 @pwd
560 562
561 563 clean clobber lint: $(NOWAIT_SUBDIRS:%=%-nodepend)
562 564
563 565 install_h check: $(HDRSUBDIRS:%=%-nodepend)
564 566
565 567 _msg: $(MSGSUBDIRS:%=%-nodepend) .WAIT _dc
566 568
567 569 _dc: $(DCSUBDIRS:%=%-nodepend)
568 570
569 571 #
570 572 # Library interdependencies are called out explicitly here
571 573 #
572 574 auditd_plugins: libbsm libnsl libsecdb
573 575 gss_mechs/mech_krb5: libgss libnsl libsocket libresolv pkcs11
574 576 libadt_jni: libbsm
575 577 libast: libsocket
576 578 libadutils: libldap5 libresolv libsocket libnsl
577 579 nsswitch: libadutils libidmap
578 580 libbe: libzfs
579 581 libbsm: libtsol
580 582 libcmd: libsum libast libsocket libnsl
581 583 libcmdutils: libavl
582 584 libcontract: libnvpair
583 585 libdevid: libdevinfo
584 586 libdevinfo: libnvpair libsec
585 587 libdhcpagent: libsocket libdhcputil libuuid libdlpi libcontract
586 588 libdhcpsvc: libinetutil
587 589 libdhcputil: libnsl libgen libinetutil libdlpi
588 590 libdladm: libdevinfo libinetutil libsocket libscf librcm libnvpair \
589 591 libexacct libnsl libkstat libcurses
590 592 libdll: libast
591 593 libdlpi: libinetutil libdladm
592 594 libds: libsysevent
593 595 libdscfg: libnsctl libunistat libsocket libnsl
594 596 libdtrace: libproc libgen libctf
595 597 libdtrace_jni: libuutil libdtrace
596 598 libefi: libuuid
597 599 libfstyp: libnvpair
598 600 libelfsign: libcryptoutil libkmf
599 601 libidmap: libadutils libldap5 libavl libsldap libuutil
600 602 libipadm: libnsl libinetutil libsocket libdlpi libnvpair libdhcpagent \
601 603 libdladm libsecdb
602 604 libiscsit: libc libnvpair libstmf libuuid libnsl
603 605 libkmf: libcryptoutil pkcs11
604 606 libnsl: libmd5
605 607 libmapid: libresolv
606 608 librdc: libsocket libnsl libnsctl libunistat libdscfg
607 609 libuuid: libdlpi
608 610 $(CLOSED_BUILD)libike: libipsecutil libxnet libcryptoutil
609 611 libinetutil: libsocket
610 612 libipsecutil: libtecla libsocket
611 613 libinstzones: libzonecfg libcontract
612 614 libpkg: libwanboot libscf libadm
613 615 libnwam: libscf
614 616 libsecdb: libnsl
615 617 libsasl: libgss libsocket pkcs11 libmd
616 618 sasl_plugins: pkcs11 libgss libsocket libsasl
617 619 libsctp: libsocket
618 620 libshell: libast libcmd libdll libsocket libsecdb
619 621 libsip: libmd5
620 622 libsmbfs: libcmdutils libsocket libnsl libkrb5
621 623 libsocket: libnsl
622 624 libstmfproxy: libstmf libsocket libnsl libpthread
623 625 libsum: libast
624 626 libsysevent: libsecdb
625 627 libldap5: libsasl libsocket libnsl libmd
626 628 libsldap: libldap5 libtsol libnsl libc libscf libresolv
627 629 libpool: libnvpair libexacct
628 630 libpp: libast
629 631 libzonecfg: libc libsocket libnsl libuuid libnvpair libsysevent libsec \
630 632 libbrand libpool libscf
631 633 libproc: ../cmd/sgs/librtld_db ../cmd/sgs/libelf libctf libsaveargs
632 634 libproject: libpool libproc libsecdb
633 635 libtermcap: libcurses
634 636 libtsnet: libnsl libtsol libsecdb
635 637 libwrap: libnsl libsocket
636 638 libwanboot: libnvpair libresolv libnsl libsocket libdevinfo libinetutil \
637 639 libdhcputil
638 640 libwanbootutil: libnsl
639 641 pam_modules: libproject passwdutil smbsrv
640 642 libscf: libuutil libmd libgen libsmbios libnsl
641 643 libinetsvc: libscf
642 644 librestart: libuutil libscf
643 645 libsaveargs: libdisasm
644 646 ../cmd/sgs/libdl: ../cmd/sgs/libconv
645 647 ../cmd/sgs/libelf: ../cmd/sgs/libconv
646 648 pkcs11: libcryptoutil
647 649 print: libldap5
648 650 udapl/udapl_tavor: udapl/libdat
649 651 libzfs: libdevid libgen libnvpair libuutil \
650 652 libadm libavl libefi libidmap libmd libzfs_core
651 653 libzfs_core: libnvpair
652 654 libzfs_jni: libdiskmgt libnvpair libzfs
653 655 libzpool: libavl libumem libnvpair libcmdutils
654 656 libsec: libavl libidmap
655 657 brand: libc libsocket
656 658 libshare: libscf libzfs libuuid libfsmgt libsecdb libumem libsmbfs
657 659 libexacct/demo: libexacct libproject libsocket libnsl
658 660 libtsalarm: libpcp
659 661 smbsrv: libsocket libnsl libmd libxnet libpthread librt \
660 662 libshare libidmap pkcs11 libsqlite libcryptoutil \
661 663 libreparse libcmdutils
662 664 libv12n: libds libuuid
663 665 libvrrpadm: libsocket libdladm libscf
664 666 libvscan: libscf
665 667 libfru: libfruutils
666 668 scsi: libnvpair libfru
667 669 mpapi: libpthread libdevinfo libsysevent libnvpair
668 670 sun_fc: libdevinfo libsysevent libnvpair
669 671 libsun_ima: libdevinfo libsysevent libnsl
670 672 sun_sas: libdevinfo libsysevent libnvpair libkstat libdevid
671 673 libgrubmgmt: libdevinfo libzfs libfstyp
672 674 pylibbe: libbe libzfs
673 675 pyzfs: libnvpair libzfs
674 676 pysolaris: libsec libidmap
675 677 libreparse: libnvpair
676 678 libhotplug: libnvpair
677 679 cfgadm_plugins: libhotplug
678 680 libilb: libsocket
679 681 $(INTEL_BUILD)libdiskmgt:libfdisk
680 682
681 683 #
682 684 # The reason this rule checks for the existence of the
683 685 # Makefile is that some of the directories do not exist
684 686 # in certain situations (e.g., exportable source builds,
685 687 # OpenSolaris).
686 688 #
687 689 $(SUBDIRS): FRC
688 690 @if [ -f $@/Makefile ]; then \
689 691 cd $@; pwd; $(MAKE) $(TARGET); \
690 692 else \
691 693 true; \
692 694 fi
693 695
694 696 $(SUBDIRS:%=%-nodepend):
695 697 @if [ -f $(@:%-nodepend=%)/Makefile ]; then \
696 698 cd $(@:%-nodepend=%); pwd; $(MAKE) $(TARGET); \
697 699 else \
698 700 true; \
699 701 fi
700 702
701 703 FRC:
↓ open down ↓ |
181 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX