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