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