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