5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
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 2013 Garrett D'Amore <garrett@damore.org>
25 # Copyright 2014 Nexenta Systems, Inc. All rights reserved.
26 #
27
28 #
29 # uts/common/Makefile.rules
30 #
31 # This Makefile defines all the file build rules for the directory
32 # uts/common and its children. These are the source files which may
33 # be considered common to all SunOS systems.
34 #
35 # The following two-level ordering must be maintained in this file.
36 # Lines are sorted first in order of decreasing specificity based on
37 # the first directory component. That is, sun4u rules come before
38 # sparc rules come before common rules.
39 #
40 # Lines whose initial directory components are equal are sorted
41 # alphabetically by the remaining components.
42
43 #
44 # Section 1a: C objects build rules
45 #
190 $(OBJS_DIR)/%.o: $(UTSBASE)/common/exec/intp/%.c
191 $(COMPILE.c) -o $@ $<
192 $(CTFCONVERT_O)
193
194 $(OBJS_DIR)/%.o: $(UTSBASE)/common/exec/shbin/%.c
195 $(COMPILE.c) -o $@ $<
196 $(CTFCONVERT_O)
197
198 $(OBJS_DIR)/%.o: $(UTSBASE)/common/exec/java/%.c
199 $(COMPILE.c) -o $@ $<
200 $(CTFCONVERT_O)
201
202 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/%.c
203 $(COMPILE.c) -o $@ $<
204 $(CTFCONVERT_O)
205
206 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/autofs/%.c
207 $(COMPILE.c) -o $@ $<
208 $(CTFCONVERT_O)
209
210 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/cachefs/%.c
211 $(COMPILE.c) -o $@ $<
212 $(CTFCONVERT_O)
213
214 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/dcfs/%.c
215 $(COMPILE.c) -o $@ $<
216 $(CTFCONVERT_O)
217
218 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/devfs/%.c
219 $(COMPILE.c) -o $@ $<
220 $(CTFCONVERT_O)
221
222 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/ctfs/%.c
223 $(COMPILE.c) -o $@ $<
224 $(CTFCONVERT_O)
225
226 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/doorfs/%.c
227 $(COMPILE.c) -o $@ $<
228 $(CTFCONVERT_O)
229
230 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/dev/%.c
231 $(COMPILE.c) -o $@ $<
232 $(CTFCONVERT_O)
233
1722 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1723
1724 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/exec/elf/%.c
1725 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1726
1727 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/exec/intp/%.c
1728 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1729
1730 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/exec/shbin/%.c
1731 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1732
1733 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/exec/java/%.c
1734 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1735
1736 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/%.c
1737 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1738
1739 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/autofs/%.c
1740 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1741
1742 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/cachefs/%.c
1743 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1744
1745 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/ctfs/%.c
1746 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1747
1748 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/doorfs/%.c
1749 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1750
1751 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/dcfs/%.c
1752 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1753
1754 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/devfs/%.c
1755 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1756
1757 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/dev/%.c
1758 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1759
1760 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/fd/%.c
1761 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1762
1763 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/fifofs/%.c
1764 @($(LHEAD) $(LINT.c) $< $(LTAIL))
|
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
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 2013 Garrett D'Amore <garrett@damore.org>
25 # Copyright 2015 Nexenta Systems, Inc. All rights reserved.
26 #
27
28 #
29 # uts/common/Makefile.rules
30 #
31 # This Makefile defines all the file build rules for the directory
32 # uts/common and its children. These are the source files which may
33 # be considered common to all SunOS systems.
34 #
35 # The following two-level ordering must be maintained in this file.
36 # Lines are sorted first in order of decreasing specificity based on
37 # the first directory component. That is, sun4u rules come before
38 # sparc rules come before common rules.
39 #
40 # Lines whose initial directory components are equal are sorted
41 # alphabetically by the remaining components.
42
43 #
44 # Section 1a: C objects build rules
45 #
190 $(OBJS_DIR)/%.o: $(UTSBASE)/common/exec/intp/%.c
191 $(COMPILE.c) -o $@ $<
192 $(CTFCONVERT_O)
193
194 $(OBJS_DIR)/%.o: $(UTSBASE)/common/exec/shbin/%.c
195 $(COMPILE.c) -o $@ $<
196 $(CTFCONVERT_O)
197
198 $(OBJS_DIR)/%.o: $(UTSBASE)/common/exec/java/%.c
199 $(COMPILE.c) -o $@ $<
200 $(CTFCONVERT_O)
201
202 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/%.c
203 $(COMPILE.c) -o $@ $<
204 $(CTFCONVERT_O)
205
206 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/autofs/%.c
207 $(COMPILE.c) -o $@ $<
208 $(CTFCONVERT_O)
209
210 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/dcfs/%.c
211 $(COMPILE.c) -o $@ $<
212 $(CTFCONVERT_O)
213
214 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/devfs/%.c
215 $(COMPILE.c) -o $@ $<
216 $(CTFCONVERT_O)
217
218 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/ctfs/%.c
219 $(COMPILE.c) -o $@ $<
220 $(CTFCONVERT_O)
221
222 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/doorfs/%.c
223 $(COMPILE.c) -o $@ $<
224 $(CTFCONVERT_O)
225
226 $(OBJS_DIR)/%.o: $(UTSBASE)/common/fs/dev/%.c
227 $(COMPILE.c) -o $@ $<
228 $(CTFCONVERT_O)
229
1718 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1719
1720 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/exec/elf/%.c
1721 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1722
1723 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/exec/intp/%.c
1724 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1725
1726 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/exec/shbin/%.c
1727 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1728
1729 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/exec/java/%.c
1730 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1731
1732 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/%.c
1733 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1734
1735 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/autofs/%.c
1736 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1737
1738 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/ctfs/%.c
1739 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1740
1741 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/doorfs/%.c
1742 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1743
1744 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/dcfs/%.c
1745 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1746
1747 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/devfs/%.c
1748 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1749
1750 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/dev/%.c
1751 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1752
1753 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/fd/%.c
1754 @($(LHEAD) $(LINT.c) $< $(LTAIL))
1755
1756 $(LINTS_DIR)/%.ln: $(UTSBASE)/common/fs/fifofs/%.c
1757 @($(LHEAD) $(LINT.c) $< $(LTAIL))
|