xref: /titanic_44/usr/src/uts/intel/Makefile.rules (revision ee519a1f9541a20bb76ef306dfc8e5616f8a5e26)
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/scsi/targets/%.c
93	$(COMPILE.c) -o $@ $<
94	$(CTFCONVERT_O)
95
96$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/vgatext/%.c
97	$(COMPILE.c) -o $@ $<
98	$(CTFCONVERT_O)
99
100$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/os/%.c
101	$(COMPILE.c) -o $@ $<
102	$(CTFCONVERT_O)
103
104$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/pcbe/%.c
105	$(COMPILE.c) -o $@ $<
106	$(CTFCONVERT_O)
107
108$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/promif/%.c
109	$(COMPILE.c) -o $@ $<
110	$(CTFCONVERT_O)
111
112$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/syscall/%.c
113	$(COMPILE.c) -o $@ $<
114	$(CTFCONVERT_O)
115
116$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/pci_pci/%.c
117	$(COMPILE.c) -o $@ $<
118	$(CTFCONVERT_O)
119
120$(OBJS_DIR)/%.o:		$(UTSBASE)/common/os/%.c
121	$(COMPILE.c) -o $@ $<
122	$(CTFCONVERT_O)
123
124#
125#	Section 1b: Lint `object' build rules.
126#
127$(LINTS_DIR)/%.ln:		$(SRC)/common/fs/%.c
128	@($(LHEAD) $(LINT.c) $< $(LTAIL))
129
130$(LINTS_DIR)/%.ln:		$(SRC)/common/util/i386/%.s
131	@($(LHEAD) $(LINT.s) $< $(LTAIL))
132
133$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.c
134	@($(LHEAD) $(LINT.c) $< $(LTAIL))
135
136$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.s
137	@($(LHEAD) $(LINT.s) $< $(LTAIL))
138
139$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/proc/%.c
140	@($(LHEAD) $(LINT.c) $< $(LTAIL))
141
142$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/xmemfs/%.c
143	@($(LHEAD) $(LINT.c) $< $(LTAIL))
144
145$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/ml/%.s
146	@($(LHEAD) $(LINT.s) $< $(LTAIL))
147
148$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/os/%.c
149	@($(LHEAD) $(LINT.c) $< $(LTAIL))
150
151$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/promif/%.c
152	@($(LHEAD) $(LINT.c) $< $(LTAIL))
153
154$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/syscall/%.c
155	@($(LHEAD) $(LINT.c) $< $(LTAIL))
156
157$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/%.c
158	@($(LHEAD) $(LINT.c) $< $(LTAIL))
159
160$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/aac/%.c
161	@($(LHEAD) $(LINT.c) $< $(LTAIL))
162
163$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/amr/%.c
164	@($(LHEAD) $(LINT.c) $< $(LTAIL))
165
166$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/scsi/targets/%.c
167	@($(LHEAD) $(LINT.c) $< $(LTAIL))
168
169$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/vgatext/%.c
170	@($(LHEAD) $(LINT.c) $< $(LTAIL))
171
172$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/os/%.c
173	@($(LHEAD) $(LINT.c) $< $(LTAIL))
174
175$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/pcbe/%.c
176	@($(LHEAD) $(LINT.c) $< $(LTAIL))
177
178$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/promif/%.c
179	@($(LHEAD) $(LINT.c) $< $(LTAIL))
180
181$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/syscall/%.c
182	@($(LHEAD) $(LINT.c) $< $(LTAIL))
183
184$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/pci_pci/%.c
185	@($(LHEAD) $(LINT.c) $< $(LTAIL))
186
187$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/os/%.c
188	@($(LHEAD) $(LINT.c) $< $(LTAIL))
189