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