xref: /titanic_41/usr/src/uts/intel/Makefile.rules (revision 8eea8e29cc4374d1ee24c25a07f45af132db3499)
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/scsi/targets/%.c
94	$(COMPILE.c) -o $@ $<
95	$(CTFCONVERT_O)
96
97$(OBJS_DIR)/%.o:                $(UTSBASE)/intel/io/e1000g/%.c
98	$(COMPILE.c) -o $@ $<
99	$(CTFCONVERT_O)
100
101$(OBJS_DIR)/%.o:  $(DRVDIR)/%.c $(ADPU_HEADERS) $(DRVDIR)/adpu320.h \
102		  $(DRVDIR)/release.h
103	$(COMPILE.c) -o $@ $<
104	$(CTFCONVERT_O)
105
106$(OBJS_DIR)/%.o:  $(CHIMDIR)/hwm/%.c $(ADPU_HEADERS)
107	$(COMPILE.c) -o $@ $<
108	$(CTFCONVERT_O)
109
110$(OBJS_DIR)/%.o:  $(CHIMDIR)/rsm/%.c $(ADPU_HEADERS)
111	$(COMPILE.c) -o $@ $<
112	$(CTFCONVERT_O)
113
114$(OBJS_DIR)/%.o:  $(CHIMDIR)/xlm/%.c $(ADPU_HEADERS)
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/io/pci_pci/%.c
139	$(COMPILE.c) -o $@ $<
140	$(CTFCONVERT_O)
141
142$(OBJS_DIR)/%.o:		$(UTSBASE)/common/os/%.c
143	$(COMPILE.c) -o $@ $<
144	$(CTFCONVERT_O)
145
146#
147#	Section 1b: Lint `object' build rules.
148#
149$(LINTS_DIR)/%.ln:		$(SRC)/common/fs/%.c
150	@($(LHEAD) $(LINT.c) $< $(LTAIL))
151
152$(LINTS_DIR)/%.ln:		$(SRC)/common/util/ia32/%.c
153	@($(LHEAD) $(LINT.c) $< $(LTAIL))
154
155$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.c
156	@($(LHEAD) $(LINT.c) $< $(LTAIL))
157
158$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.s
159	@($(LHEAD) $(LINT.s) $< $(LTAIL))
160
161$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/proc/%.c
162	@($(LHEAD) $(LINT.c) $< $(LTAIL))
163
164$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/xmemfs/%.c
165	@($(LHEAD) $(LINT.c) $< $(LTAIL))
166
167$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/ml/%.s
168	@($(LHEAD) $(LINT.s) $< $(LTAIL))
169
170$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/os/%.c
171	@($(LHEAD) $(LINT.c) $< $(LTAIL))
172
173$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/promif/%.c
174	@($(LHEAD) $(LINT.c) $< $(LTAIL))
175
176$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/syscall/%.c
177	@($(LHEAD) $(LINT.c) $< $(LTAIL))
178
179$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/%.c
180	@($(LHEAD) $(LINT.c) $< $(LTAIL))
181
182$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/aac/%.c
183	@($(LHEAD) $(LINT.c) $< $(LTAIL))
184
185$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/amr/%.c
186	@($(LHEAD) $(LINT.c) $< $(LTAIL))
187
188$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/scsi/targets/%.c
189	@($(LHEAD) $(LINT.c) $< $(LTAIL))
190
191$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/vgatext/%.c
192	@($(LHEAD) $(LINT.c) $< $(LTAIL))
193
194$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/os/%.c
195	@($(LHEAD) $(LINT.c) $< $(LTAIL))
196
197$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/pcbe/%.c
198	@($(LHEAD) $(LINT.c) $< $(LTAIL))
199
200$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/promif/%.c
201	@($(LHEAD) $(LINT.c) $< $(LTAIL))
202
203$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/syscall/%.c
204	@($(LHEAD) $(LINT.c) $< $(LTAIL))
205
206$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/pci_pci/%.c
207	@($(LHEAD) $(LINT.c) $< $(LTAIL))
208
209$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/os/%.c
210	@($(LHEAD) $(LINT.c) $< $(LTAIL))
211