xref: /titanic_50/usr/src/uts/intel/Makefile.rules (revision f22acdfff536d452df49dd85c5ecd42092b8fcad)
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 2005 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/ia32/%.c
48	$(COMPILE.c) -o $@ $<
49	$(CTFCONVERT_O)
50
51$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/dtrace/%.c
52	$(COMPILE.c) -o $@ $<
53	$(CTFCONVERT_O)
54
55$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/dtrace/%.s
56	$(COMPILE.s) -o $@ $<
57
58$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/fs/proc/%.c
59	$(COMPILE.c) -o $@ $<
60	$(CTFCONVERT_O)
61
62$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/fs/xmemfs/%.c
63	$(COMPILE.c) -o $@ $<
64	$(CTFCONVERT_O)
65
66$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/ml/%.s
67	$(COMPILE.s) -o $@ $<
68
69$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/os/%.c
70	$(COMPILE.c) -o $@ $<
71	$(CTFCONVERT_O)
72
73$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/promif/%.c
74	$(COMPILE.c) -o $@ $<
75	$(CTFCONVERT_O)
76
77$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/syscall/%.c
78	$(COMPILE.c) -o $@ $<
79	$(CTFCONVERT_O)
80
81$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/%.c
82	$(COMPILE.c) -o $@ $<
83	$(CTFCONVERT_O)
84
85$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/aac/%.c
86	$(COMPILE.c) -o $@ $<
87	$(CTFCONVERT_O)
88
89$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/amr/%.c
90	$(COMPILE.c) -o $@ $<
91	$(CTFCONVERT_O)
92
93$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/lsimega/%.c
94	$(COMPILE.c) -o $@ $<
95	$(CTFCONVERT_O)
96
97$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/scsi/targets/%.c
98	$(COMPILE.c) -o $@ $<
99	$(CTFCONVERT_O)
100
101$(OBJS_DIR)/%.o:                $(UTSBASE)/intel/io/e1000g/%.c
102	$(COMPILE.c) -o $@ $<
103	$(CTFCONVERT_O)
104
105$(OBJS_DIR)/%.o:  $(DRVDIR)/%.c $(ADPU_HEADERS) $(DRVDIR)/adpu320.h \
106		  $(DRVDIR)/release.h
107	$(COMPILE.c) -o $@ $<
108	$(CTFCONVERT_O)
109
110$(OBJS_DIR)/%.o:  $(CHIMDIR)/hwm/%.c $(ADPU_HEADERS)
111	$(COMPILE.c) -o $@ $<
112	$(CTFCONVERT_O)
113
114$(OBJS_DIR)/%.o:  $(CHIMDIR)/rsm/%.c $(ADPU_HEADERS)
115	$(COMPILE.c) -o $@ $<
116	$(CTFCONVERT_O)
117
118$(OBJS_DIR)/%.o:  $(CHIMDIR)/xlm/%.c $(ADPU_HEADERS)
119	$(COMPILE.c) -o $@ $<
120	$(CTFCONVERT_O)
121
122$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/vgatext/%.c
123	$(COMPILE.c) -o $@ $<
124	$(CTFCONVERT_O)
125
126$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/os/%.c
127	$(COMPILE.c) -o $@ $<
128	$(CTFCONVERT_O)
129
130$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/pcbe/%.c
131	$(COMPILE.c) -o $@ $<
132	$(CTFCONVERT_O)
133
134$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/promif/%.c
135	$(COMPILE.c) -o $@ $<
136	$(CTFCONVERT_O)
137
138$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/syscall/%.c
139	$(COMPILE.c) -o $@ $<
140	$(CTFCONVERT_O)
141
142$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/pci_pci/%.c
143	$(COMPILE.c) -o $@ $<
144	$(CTFCONVERT_O)
145
146$(OBJS_DIR)/%.o:		$(UTSBASE)/common/os/%.c
147	$(COMPILE.c) -o $@ $<
148	$(CTFCONVERT_O)
149
150#
151#	Section 1b: Lint `object' build rules.
152#
153$(LINTS_DIR)/%.ln:		$(SRC)/common/fs/%.c
154	@($(LHEAD) $(LINT.c) $< $(LTAIL))
155
156$(LINTS_DIR)/%.ln:		$(SRC)/common/util/ia32/%.c
157	@($(LHEAD) $(LINT.c) $< $(LTAIL))
158
159$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.c
160	@($(LHEAD) $(LINT.c) $< $(LTAIL))
161
162$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.s
163	@($(LHEAD) $(LINT.s) $< $(LTAIL))
164
165$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/proc/%.c
166	@($(LHEAD) $(LINT.c) $< $(LTAIL))
167
168$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/xmemfs/%.c
169	@($(LHEAD) $(LINT.c) $< $(LTAIL))
170
171$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/ml/%.s
172	@($(LHEAD) $(LINT.s) $< $(LTAIL))
173
174$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/os/%.c
175	@($(LHEAD) $(LINT.c) $< $(LTAIL))
176
177$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/promif/%.c
178	@($(LHEAD) $(LINT.c) $< $(LTAIL))
179
180$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/syscall/%.c
181	@($(LHEAD) $(LINT.c) $< $(LTAIL))
182
183$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/%.c
184	@($(LHEAD) $(LINT.c) $< $(LTAIL))
185
186$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/aac/%.c
187	@($(LHEAD) $(LINT.c) $< $(LTAIL))
188
189$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/amr/%.c
190	@($(LHEAD) $(LINT.c) $< $(LTAIL))
191
192$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/lsimega/%.c
193	@($(LHEAD) $(LINT.c) $< $(LTAIL))
194
195$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/scsi/targets/%.c
196	@($(LHEAD) $(LINT.c) $< $(LTAIL))
197
198$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/vgatext/%.c
199	@($(LHEAD) $(LINT.c) $< $(LTAIL))
200
201$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/os/%.c
202	@($(LHEAD) $(LINT.c) $< $(LTAIL))
203
204$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/pcbe/%.c
205	@($(LHEAD) $(LINT.c) $< $(LTAIL))
206
207$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/promif/%.c
208	@($(LHEAD) $(LINT.c) $< $(LTAIL))
209
210$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/syscall/%.c
211	@($(LHEAD) $(LINT.c) $< $(LTAIL))
212
213$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/pci_pci/%.c
214	@($(LHEAD) $(LINT.c) $< $(LTAIL))
215
216$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/os/%.c
217	@($(LHEAD) $(LINT.c) $< $(LTAIL))
218