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 (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2016 Garrett D'Amore <garrett@damore.org>
25 # Copyright 2013 Saso Kiselkov. All rights reserved.
26 # Copyright 2016 Joyent, Inc.
27 # Copyright 2016 Nexenta Systems, Inc.
28 # Copyright (c) 2016 by Delphix. All rights reserved.
29 #
30
31 #
32 # uts/common/Makefile.rules
33 #
34 # This Makefile defines all the file build rules for the directory
35 # uts/common and its children. These are the source files which may
36 # be considered common to all SunOS systems.
37 #
38 # The following two-level ordering must be maintained in this file.
39 # Lines are sorted first in order of decreasing specificity based on
40 # the first directory component. That is, sun4u rules come before
41 # sparc rules come before common rules.
42 #
43 # Lines whose initial directory components are equal are sorted
44 # alphabetically by the remaining components.
45
46 #
47 # Section 1a: C objects build rules
437 $(CTFCONVERT_O)
438
439 $(OBJS_DIR)/%.o: $(KMECHKRB5_BASE)/krb5/krb/%.c
440 $(COMPILE.c) $(KGSSDFLAGS) -o $@ $<
441 $(CTFCONVERT_O)
442
443 $(OBJS_DIR)/%.o: $(KMECHKRB5_BASE)/krb5/os/%.c
444 $(COMPILE.c) $(KGSSDFLAGS) -o $@ $<
445 $(CTFCONVERT_O)
446
447 $(OBJS_DIR)/ser_sctx.o := CPPFLAGS += -DPROVIDE_KERNEL_IMPORT=1
448
449 $(OBJS_DIR)/%.o: $(KMECHKRB5_BASE)/mech/%.c
450 $(COMPILE.c) $(KGSSDFLAGS) -o $@ $<
451 $(CTFCONVERT_O)
452
453 $(OBJS_DIR)/%.o: $(KMECHKRB5_BASE)/profile/%.c
454 $(COMPILE.c) $(KGSSDFLAGS) -o $@ $<
455 $(CTFCONVERT_O)
456
457 $(OBJS_DIR)/%.o: $(UTSBASE)/common/avs/ncall/%.c
458 $(COMPILE.c) -o $@ $<
459 $(CTFCONVERT_O)
460
461 $(OBJS_DIR)/%.o: $(UTSBASE)/common/avs/ns/dsw/%.c
462 $(COMPILE.c) -o $@ $<
463 $(CTFCONVERT_O)
464
465 $(OBJS_DIR)/%.o: $(UTSBASE)/common/avs/ns/nsctl/%.c
466 $(COMPILE.c) -o $@ $<
467 $(CTFCONVERT_O)
468
469 $(OBJS_DIR)/%.o: $(UTSBASE)/common/avs/ns/rdc/%.c
470 $(COMPILE.c) -o $@ $<
471 $(CTFCONVERT_O)
472
473 $(OBJS_DIR)/%.o: $(UTSBASE)/common/avs/ns/sdbc/%.c
474 $(COMPILE.c) -o $@ $<
475 $(CTFCONVERT_O)
476
477 $(OBJS_DIR)/%.o: $(UTSBASE)/common/avs/ns/solaris/%.c
478 $(COMPILE.c) -o $@ $<
479 $(CTFCONVERT_O)
480
481 $(OBJS_DIR)/%.o: $(UTSBASE)/common/avs/ns/sv/%.c
482 $(COMPILE.c) -o $@ $<
483 $(CTFCONVERT_O)
484
485 $(OBJS_DIR)/%.o: $(UTSBASE)/common/avs/ns/unistat/%.c
486 $(COMPILE.c) -o $@ $<
487 $(CTFCONVERT_O)
488
489 $(OBJS_DIR)/%.o: $(UTSBASE)/common/idmap/%.c
490 $(COMPILE.c) -o $@ $<
491 $(CTFCONVERT_O)
492
493 $(OBJS_DIR)/%.o: $(UTSBASE)/common/inet/%.c
494 $(COMPILE.c) -o $@ $<
495 $(CTFCONVERT_O)
496
497 $(OBJS_DIR)/%.o: $(UTSBASE)/common/inet/arp/%.c
498 $(COMPILE.c) -o $@ $<
499 $(CTFCONVERT_O)
500
501 $(OBJS_DIR)/%.o: $(UTSBASE)/common/inet/ip/%.c
502 $(COMPILE.c) -o $@ $<
503 $(CTFCONVERT_O)
504
505 $(OBJS_DIR)/%.o: $(UTSBASE)/common/inet/ipnet/%.c
506 $(COMPILE.c) -o $@ $<
507 $(CTFCONVERT_O)
508
1712 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1713
1714 $(LINTS_DIR)/%.ln: $(COMMONBASE)/ctf/%.c
1715 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1716
1717 $(LINTS_DIR)/%.ln: $(COMMONBASE)/pci/%.c
1718 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1719
1720 $(LINTS_DIR)/%.ln: $(COMMONBASE)/devid/%.c
1721 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1722
1723 $(LINTS_DIR)/%.ln: $(COMMONBASE)/crypto/des/%.c
1724 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1725
1726 $(LINTS_DIR)/%.ln: $(COMMONBASE)/secflags/%.c
1727 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1728
1729 $(LINTS_DIR)/%.ln: $(COMMONBASE)/smbios/%.c
1730 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1731
1732 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/avs/ncall/%.c
1733 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1734
1735 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/avs/ns/dsw/%.c
1736 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1737
1738 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/avs/ns/nsctl/%.c
1739 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1740
1741 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/avs/ns/rdc/%.c
1742 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1743
1744 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/avs/ns/sdbc/%.c
1745 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1746
1747 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/avs/ns/solaris/%.c
1748 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1749
1750 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/avs/ns/sv/%.c
1751 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1752
1753 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/avs/ns/unistat/%.c
1754 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1755
1756 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/des/%.c
1757 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1758
1759 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/crypto/api/%.c
1760 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1761
1762 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/crypto/core/%.c
1763 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1764
1765 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/crypto/io/%.c
1766 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1767
1768 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/crypto/spi/%.c
1769 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1770
1771 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/disp/%.c
1772 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1773
1774 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/dtrace/%.c
1775 @($(LHEAD) $(LINT.c) $< $(LTAIL))
|
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 (c) 1991, 2010, Oracle and/or its affiliates. All rights reserved.
24 # Copyright 2016 Garrett D'Amore <garrett@damore.org>
25 # Copyright 2013 Saso Kiselkov. All rights reserved.
26 # Copyright 2016 Joyent, Inc.
27 # Copyright 2018 Nexenta Systems, Inc.
28 # Copyright (c) 2016 by Delphix. All rights reserved.
29 #
30
31 #
32 # uts/common/Makefile.rules
33 #
34 # This Makefile defines all the file build rules for the directory
35 # uts/common and its children. These are the source files which may
36 # be considered common to all SunOS systems.
37 #
38 # The following two-level ordering must be maintained in this file.
39 # Lines are sorted first in order of decreasing specificity based on
40 # the first directory component. That is, sun4u rules come before
41 # sparc rules come before common rules.
42 #
43 # Lines whose initial directory components are equal are sorted
44 # alphabetically by the remaining components.
45
46 #
47 # Section 1a: C objects build rules
437 $(CTFCONVERT_O)
438
439 $(OBJS_DIR)/%.o: $(KMECHKRB5_BASE)/krb5/krb/%.c
440 $(COMPILE.c) $(KGSSDFLAGS) -o $@ $<
441 $(CTFCONVERT_O)
442
443 $(OBJS_DIR)/%.o: $(KMECHKRB5_BASE)/krb5/os/%.c
444 $(COMPILE.c) $(KGSSDFLAGS) -o $@ $<
445 $(CTFCONVERT_O)
446
447 $(OBJS_DIR)/ser_sctx.o := CPPFLAGS += -DPROVIDE_KERNEL_IMPORT=1
448
449 $(OBJS_DIR)/%.o: $(KMECHKRB5_BASE)/mech/%.c
450 $(COMPILE.c) $(KGSSDFLAGS) -o $@ $<
451 $(CTFCONVERT_O)
452
453 $(OBJS_DIR)/%.o: $(KMECHKRB5_BASE)/profile/%.c
454 $(COMPILE.c) $(KGSSDFLAGS) -o $@ $<
455 $(CTFCONVERT_O)
456
457 $(OBJS_DIR)/%.o: $(UTSBASE)/common/idmap/%.c
458 $(COMPILE.c) -o $@ $<
459 $(CTFCONVERT_O)
460
461 $(OBJS_DIR)/%.o: $(UTSBASE)/common/inet/%.c
462 $(COMPILE.c) -o $@ $<
463 $(CTFCONVERT_O)
464
465 $(OBJS_DIR)/%.o: $(UTSBASE)/common/inet/arp/%.c
466 $(COMPILE.c) -o $@ $<
467 $(CTFCONVERT_O)
468
469 $(OBJS_DIR)/%.o: $(UTSBASE)/common/inet/ip/%.c
470 $(COMPILE.c) -o $@ $<
471 $(CTFCONVERT_O)
472
473 $(OBJS_DIR)/%.o: $(UTSBASE)/common/inet/ipnet/%.c
474 $(COMPILE.c) -o $@ $<
475 $(CTFCONVERT_O)
476
1680 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1681
1682 $(LINTS_DIR)/%.ln: $(COMMONBASE)/ctf/%.c
1683 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1684
1685 $(LINTS_DIR)/%.ln: $(COMMONBASE)/pci/%.c
1686 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1687
1688 $(LINTS_DIR)/%.ln: $(COMMONBASE)/devid/%.c
1689 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1690
1691 $(LINTS_DIR)/%.ln: $(COMMONBASE)/crypto/des/%.c
1692 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1693
1694 $(LINTS_DIR)/%.ln: $(COMMONBASE)/secflags/%.c
1695 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1696
1697 $(LINTS_DIR)/%.ln: $(COMMONBASE)/smbios/%.c
1698 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1699
1700 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/des/%.c
1701 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1702
1703 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/crypto/api/%.c
1704 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1705
1706 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/crypto/core/%.c
1707 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1708
1709 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/crypto/io/%.c
1710 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1711
1712 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/crypto/spi/%.c
1713 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1714
1715 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/disp/%.c
1716 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1717
1718 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/dtrace/%.c
1719 @($(LHEAD) $(LINT.c) $< $(LTAIL))
|