4 # The contents of this file are subject to the terms of the
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 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 #
25 #
26
27 # libc build rules
28
29 #
30 # This first rule picks up optimized sources for libc variants.
31 #
32 pics/%.o: $(OPTIMIZED_LIBCBASE)/gen/%.s
33 $(BUILD.s)
34 $(POST_PROCESS_O)
35
36 pics/%.o: $(LIBCBASE)/crt/%.c
37 $(COMPILE.c) -o $@ $<
38 $(POST_PROCESS_O)
39
40 pics/%.o: $(LIBCBASE)/crt/%.s
41 $(BUILD.s)
42 $(POST_PROCESS_O)
43
76 pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/fp/%.s
77 $(BUILD.s)
78 $(POST_PROCESS_O)
79
80 pics/%.o: $(LIBCBASE)/sys/%.c
81 $(COMPILE.c) -o $@ $<
82 $(POST_PROCESS_O)
83
84 pics/%.o: $(LIBCBASE)/../common/sys/%.s
85 $(BUILD.s)
86 $(POST_PROCESS_O)
87
88 pics/%.o: $(LIBCBASE)/sys/%.s
89 $(BUILD.s)
90 $(POST_PROCESS_O)
91
92 pics/%.o: $(LIBCBASE)/../$(MACH)/sys/%.s
93 $(BUILD.s)
94 $(POST_PROCESS_O)
95
96 pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/sys/%.c
97 $(COMPILE.c) -o $@ $<
98 $(POST_PROCESS_O)
99
100 pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/sys/%.s
101 $(BUILD.s)
102 $(POST_PROCESS_O)
103
104 # rules to build large file aware objects (xxx64.o from xxx.s or xxx.c)
105
106 pics/%64.o: $(LIBCBASE)/../common/sys/%.s
107 $(BUILD.s)
108 $(POST_PROCESS_O)
109
110 pics/%64.o: $(LIBCBASE)/sys/%.s
111 $(BUILD.s)
112 $(POST_PROCESS_O)
113
114 pics/%64.o: $(LIBCBASE)/gen/%.c
115 $(COMPILE.c) -o $@ $<
|
4 # The contents of this file are subject to the terms of the
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 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
24 # Copyright 2016 Joyent, Inc.
25 #
26 #
27
28 # libc build rules
29
30 #
31 # This first rule picks up optimized sources for libc variants.
32 #
33 pics/%.o: $(OPTIMIZED_LIBCBASE)/gen/%.s
34 $(BUILD.s)
35 $(POST_PROCESS_O)
36
37 pics/%.o: $(LIBCBASE)/crt/%.c
38 $(COMPILE.c) -o $@ $<
39 $(POST_PROCESS_O)
40
41 pics/%.o: $(LIBCBASE)/crt/%.s
42 $(BUILD.s)
43 $(POST_PROCESS_O)
44
77 pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/fp/%.s
78 $(BUILD.s)
79 $(POST_PROCESS_O)
80
81 pics/%.o: $(LIBCBASE)/sys/%.c
82 $(COMPILE.c) -o $@ $<
83 $(POST_PROCESS_O)
84
85 pics/%.o: $(LIBCBASE)/../common/sys/%.s
86 $(BUILD.s)
87 $(POST_PROCESS_O)
88
89 pics/%.o: $(LIBCBASE)/sys/%.s
90 $(BUILD.s)
91 $(POST_PROCESS_O)
92
93 pics/%.o: $(LIBCBASE)/../$(MACH)/sys/%.s
94 $(BUILD.s)
95 $(POST_PROCESS_O)
96
97 pics/%.o: $(LIBCBASE)/../$(MACH)/sys/%.c
98 $(COMPILE.c) -o $@ $<
99 $(POST_PROCESS_O)
100
101 pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/sys/%.c
102 $(COMPILE.c) -o $@ $<
103 $(POST_PROCESS_O)
104
105 pics/%.o: $(LIBCBASE)/../$(TARGET_ARCH)/sys/%.s
106 $(BUILD.s)
107 $(POST_PROCESS_O)
108
109 # rules to build large file aware objects (xxx64.o from xxx.s or xxx.c)
110
111 pics/%64.o: $(LIBCBASE)/../common/sys/%.s
112 $(BUILD.s)
113 $(POST_PROCESS_O)
114
115 pics/%64.o: $(LIBCBASE)/sys/%.s
116 $(BUILD.s)
117 $(POST_PROCESS_O)
118
119 pics/%64.o: $(LIBCBASE)/gen/%.c
120 $(COMPILE.c) -o $@ $<
|