xref: /titanic_50/usr/src/uts/intel/Makefile.rules (revision 23b5c241225a8ade2b6b9f06ebb891ee459e3b02)
1#
2# CDDL HEADER START
3#
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 2006 Sun Microsystems, Inc.  All rights reserved.
23# Use is subject to license terms.
24#
25# ident	"%Z%%M%	%I%	%E% SMI"
26#
27#	This Makefile defines all file modules and build rules for the
28# directory uts/intel and its children. These are the source files which
29# are specific to the intel processor.
30#
31#	The following two-level ordering must be maintained in this file.
32#	  Lines are sorted first in order of decreasing specificity based on
33#	  the first directory component.  That is, sun4u rules come before
34#	  sparc rules come before common rules.
35#
36#	  Lines whose initial directory components are equal are sorted
37#	  alphabetically by the remaining components.
38
39#
40#	Section 1a: C object build rules
41#
42$(OBJS_DIR)/%.o:		$(SRC)/common/fs/%.c
43	$(COMPILE.c) -o $@ $<
44	$(CTFCONVERT_O)
45
46$(OBJS_DIR)/%.o:		$(SRC)/common/util/i386/%.s
47	$(COMPILE.s) -o $@ $<
48
49$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/brand/sn1/%.s
50	$(COMPILE.s) -o $@ $<
51
52$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/dtrace/%.c
53	$(COMPILE.c) -o $@ $<
54	$(CTFCONVERT_O)
55
56$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/dtrace/%.s
57	$(COMPILE.s) -o $@ $<
58
59$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/fs/proc/%.c
60	$(COMPILE.c) -o $@ $<
61	$(CTFCONVERT_O)
62
63$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/fs/xmemfs/%.c
64	$(COMPILE.c) -o $@ $<
65	$(CTFCONVERT_O)
66
67$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/ml/%.s
68	$(COMPILE.s) -o $@ $<
69
70$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/os/%.c
71	$(COMPILE.c) -o $@ $<
72	$(CTFCONVERT_O)
73
74$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/promif/%.c
75	$(COMPILE.c) -o $@ $<
76	$(CTFCONVERT_O)
77
78$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/syscall/%.c
79	$(COMPILE.c) -o $@ $<
80	$(CTFCONVERT_O)
81
82$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/%.c
83	$(COMPILE.c) -o $@ $<
84	$(CTFCONVERT_O)
85
86$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/aac/%.c
87	$(COMPILE.c) -o $@ $<
88	$(CTFCONVERT_O)
89
90$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/amr/%.c
91	$(COMPILE.c) -o $@ $<
92	$(CTFCONVERT_O)
93
94$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/controller/ata/%.c
95	$(COMPILE.c) -o $@ $<
96	$(CTFCONVERT_O)
97
98$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/dcdev/%.c
99	$(COMPILE.c) -o $@ $<
100	$(CTFCONVERT_O)
101
102$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/disk/%.c
103	$(COMPILE.c) -o $@ $<
104	$(CTFCONVERT_O)
105
106$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/drvobj/%.c
107	$(COMPILE.c) -o $@ $<
108	$(CTFCONVERT_O)
109
110$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/hba/ghd/%.c
111	$(COMPILE.c) -o $@ $<
112	$(CTFCONVERT_O)
113
114$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/scsi/targets/%.c
115	$(COMPILE.c) -o $@ $<
116	$(CTFCONVERT_O)
117
118$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/vgatext/%.c
119	$(COMPILE.c) -o $@ $<
120	$(CTFCONVERT_O)
121
122$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/os/%.c
123	$(COMPILE.c) -o $@ $<
124	$(CTFCONVERT_O)
125
126$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/pcbe/%.c
127	$(COMPILE.c) -o $@ $<
128	$(CTFCONVERT_O)
129
130$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/promif/%.c
131	$(COMPILE.c) -o $@ $<
132	$(CTFCONVERT_O)
133
134$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/syscall/%.c
135	$(COMPILE.c) -o $@ $<
136	$(CTFCONVERT_O)
137
138$(OBJS_DIR)/%.o:		$(UTSBASE)/common/os/%.c
139	$(COMPILE.c) -o $@ $<
140	$(CTFCONVERT_O)
141
142#
143#	Section 1b: Lint `object' build rules.
144#
145$(LINTS_DIR)/%.ln:		$(SRC)/common/fs/%.c
146	@($(LHEAD) $(LINT.c) $< $(LTAIL))
147
148$(LINTS_DIR)/%.ln:		$(SRC)/common/util/i386/%.s
149	@($(LHEAD) $(LINT.s) $< $(LTAIL))
150
151$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/brand/sn1/%.s
152	@($(LHEAD) $(LINT.s) $< $(LTAIL))
153
154$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.c
155	@($(LHEAD) $(LINT.c) $< $(LTAIL))
156
157$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.s
158	@($(LHEAD) $(LINT.s) $< $(LTAIL))
159
160$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/proc/%.c
161	@($(LHEAD) $(LINT.c) $< $(LTAIL))
162
163$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/xmemfs/%.c
164	@($(LHEAD) $(LINT.c) $< $(LTAIL))
165
166$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/ml/%.s
167	@($(LHEAD) $(LINT.s) $< $(LTAIL))
168
169$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/os/%.c
170	@($(LHEAD) $(LINT.c) $< $(LTAIL))
171
172$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/promif/%.c
173	@($(LHEAD) $(LINT.c) $< $(LTAIL))
174
175$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/syscall/%.c
176	@($(LHEAD) $(LINT.c) $< $(LTAIL))
177
178$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/%.c
179	@($(LHEAD) $(LINT.c) $< $(LTAIL))
180
181$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/aac/%.c
182	@($(LHEAD) $(LINT.c) $< $(LTAIL))
183
184$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/amr/%.c
185	@($(LHEAD) $(LINT.c) $< $(LTAIL))
186
187$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/controller/ata/%.c
188	@($(LHEAD) $(LINT.c) $< $(LTAIL))
189
190$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/dcdev/%.c
191	@($(LHEAD) $(LINT.c) $< $(LTAIL))
192
193$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/disk/%.c
194	@($(LHEAD) $(LINT.c) $< $(LTAIL))
195
196$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/drvobj/%.c
197	@($(LHEAD) $(LINT.c) $< $(LTAIL))
198
199$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/hba/ghd/%.c
200	@($(LHEAD) $(LINT.c) $< $(LTAIL))
201
202$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/scsi/targets/%.c
203	@($(LHEAD) $(LINT.c) $< $(LTAIL))
204
205$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/vgatext/%.c
206	@($(LHEAD) $(LINT.c) $< $(LTAIL))
207
208$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/os/%.c
209	@($(LHEAD) $(LINT.c) $< $(LTAIL))
210
211$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/pcbe/%.c
212	@($(LHEAD) $(LINT.c) $< $(LTAIL))
213
214$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/promif/%.c
215	@($(LHEAD) $(LINT.c) $< $(LTAIL))
216
217$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/syscall/%.c
218	@($(LHEAD) $(LINT.c) $< $(LTAIL))
219
220$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/os/%.c
221	@($(LHEAD) $(LINT.c) $< $(LTAIL))
222