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