xref: /titanic_52/usr/src/uts/intel/Makefile.rules (revision 0dee7919e2f2a6479d16b370af93747b9416b242)
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/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/lsimega/%.c
93	$(COMPILE.c) -o $@ $<
94	$(CTFCONVERT_O)
95
96$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/scsi/targets/%.c
97	$(COMPILE.c) -o $@ $<
98	$(CTFCONVERT_O)
99
100$(OBJS_DIR)/%.o:  $(DRVDIR)/%.c $(ADPU_HEADERS) $(DRVDIR)/adpu320.h \
101		  $(DRVDIR)/release.h
102	$(COMPILE.c) -o $@ $<
103	$(CTFCONVERT_O)
104
105$(OBJS_DIR)/%.o:  $(CHIMDIR)/hwm/%.c $(ADPU_HEADERS)
106	$(COMPILE.c) -o $@ $<
107	$(CTFCONVERT_O)
108
109$(OBJS_DIR)/%.o:  $(CHIMDIR)/rsm/%.c $(ADPU_HEADERS)
110	$(COMPILE.c) -o $@ $<
111	$(CTFCONVERT_O)
112
113$(OBJS_DIR)/%.o:  $(CHIMDIR)/xlm/%.c $(ADPU_HEADERS)
114	$(COMPILE.c) -o $@ $<
115	$(CTFCONVERT_O)
116
117$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/vgatext/%.c
118	$(COMPILE.c) -o $@ $<
119	$(CTFCONVERT_O)
120
121$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/os/%.c
122	$(COMPILE.c) -o $@ $<
123	$(CTFCONVERT_O)
124
125$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/pcbe/%.c
126	$(COMPILE.c) -o $@ $<
127	$(CTFCONVERT_O)
128
129$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/promif/%.c
130	$(COMPILE.c) -o $@ $<
131	$(CTFCONVERT_O)
132
133$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/syscall/%.c
134	$(COMPILE.c) -o $@ $<
135	$(CTFCONVERT_O)
136
137$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/pci_pci/%.c
138	$(COMPILE.c) -o $@ $<
139	$(CTFCONVERT_O)
140
141$(OBJS_DIR)/%.o:		$(UTSBASE)/common/os/%.c
142	$(COMPILE.c) -o $@ $<
143	$(CTFCONVERT_O)
144
145#
146#	Section 1b: Lint `object' build rules.
147#
148$(LINTS_DIR)/%.ln:		$(SRC)/common/fs/%.c
149	@($(LHEAD) $(LINT.c) $< $(LTAIL))
150
151$(LINTS_DIR)/%.ln:		$(SRC)/common/util/i386/%.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/lsimega/%.c
188	@($(LHEAD) $(LINT.c) $< $(LTAIL))
189
190$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/scsi/targets/%.c
191	@($(LHEAD) $(LINT.c) $< $(LTAIL))
192
193$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/vgatext/%.c
194	@($(LHEAD) $(LINT.c) $< $(LTAIL))
195
196$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/os/%.c
197	@($(LHEAD) $(LINT.c) $< $(LTAIL))
198
199$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/pcbe/%.c
200	@($(LHEAD) $(LINT.c) $< $(LTAIL))
201
202$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/promif/%.c
203	@($(LHEAD) $(LINT.c) $< $(LTAIL))
204
205$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/syscall/%.c
206	@($(LHEAD) $(LINT.c) $< $(LTAIL))
207
208$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/pci_pci/%.c
209	@($(LHEAD) $(LINT.c) $< $(LTAIL))
210
211$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/os/%.c
212	@($(LHEAD) $(LINT.c) $< $(LTAIL))
213