xref: /titanic_52/usr/src/uts/intel/Makefile.rules (revision c9df77d984161315e2f741c6ac78c396a2743fe6)
17c478bd9Sstevel@tonic-gate#
27c478bd9Sstevel@tonic-gate# CDDL HEADER START
37c478bd9Sstevel@tonic-gate#
47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
59acbbeafSnn35248# Common Development and Distribution License (the "License").
69acbbeafSnn35248# You may not use this file except in compliance with the License.
77c478bd9Sstevel@tonic-gate#
87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
117c478bd9Sstevel@tonic-gate# and limitations under the License.
127c478bd9Sstevel@tonic-gate#
137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
187c478bd9Sstevel@tonic-gate#
197c478bd9Sstevel@tonic-gate# CDDL HEADER END
207c478bd9Sstevel@tonic-gate#
217c478bd9Sstevel@tonic-gate#
22f657cd55SCheng Sean Ye# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
24989f2807SJerry Jelinek# Copyright 2012 Joyent, Inc.  All rights reserved.
25e0ef09beSYuri Pankov# Copyright 2017 Nexenta Systems, Inc.
267c478bd9Sstevel@tonic-gate#
27e4b86885SCheng Sean Ye
287c478bd9Sstevel@tonic-gate#
297c478bd9Sstevel@tonic-gate#	This Makefile defines all file modules and build rules for the
307c478bd9Sstevel@tonic-gate# directory uts/intel and its children. These are the source files which
317c478bd9Sstevel@tonic-gate# are specific to the intel processor.
327c478bd9Sstevel@tonic-gate#
337c478bd9Sstevel@tonic-gate#	The following two-level ordering must be maintained in this file.
347c478bd9Sstevel@tonic-gate#	  Lines are sorted first in order of decreasing specificity based on
357c478bd9Sstevel@tonic-gate#	  the first directory component.  That is, sun4u rules come before
367c478bd9Sstevel@tonic-gate#	  sparc rules come before common rules.
377c478bd9Sstevel@tonic-gate#
387c478bd9Sstevel@tonic-gate#	  Lines whose initial directory components are equal are sorted
397c478bd9Sstevel@tonic-gate#	  alphabetically by the remaining components.
407c478bd9Sstevel@tonic-gate
417c478bd9Sstevel@tonic-gate#
42ae115bc7Smrj# Need a way to distinguish between the ia32 and amd64 subdirs.
43ae115bc7Smrj#
44ae115bc7SmrjSUBARCH_DIR_32 = ia32
45ae115bc7SmrjSUBARCH_DIR_64 = amd64
46ae115bc7SmrjSUBARCH_DIR	= $(SUBARCH_DIR_$(CLASS))
47ae115bc7Smrj
48ae115bc7Smrj#
497c478bd9Sstevel@tonic-gate#	Section 1a: C object build rules
507c478bd9Sstevel@tonic-gate#
517c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(SRC)/common/fs/%.c
527c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
537c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
547c478bd9Sstevel@tonic-gate
55ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/power/%.c
56ae115bc7Smrj	$(COMPILE.c) -o $@ $<
57ae115bc7Smrj	$(CTFCONVERT_O)
58ae115bc7Smrj
5989518a1cSdmick$(OBJS_DIR)/%.o:		$(SRC)/common/util/i386/%.s
6089518a1cSdmick	$(COMPILE.s) -o $@ $<
617c478bd9Sstevel@tonic-gate
629acbbeafSnn35248$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/brand/sn1/%.s
639acbbeafSnn35248	$(COMPILE.s) -o $@ $<
649acbbeafSnn35248
65e71ca95cSGerald Jelinek$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/brand/solaris10/%.s
66e71ca95cSGerald Jelinek	$(COMPILE.s) -o $@ $<
67e71ca95cSGerald Jelinek
687c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/dtrace/%.c
697c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
707c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
717c478bd9Sstevel@tonic-gate
727c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/dtrace/%.s
737c478bd9Sstevel@tonic-gate	$(COMPILE.s) -o $@ $<
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/fs/proc/%.c
767c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
777c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/ml/%.s
807c478bd9Sstevel@tonic-gate	$(COMPILE.s) -o $@ $<
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/os/%.c
837c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
847c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/promif/%.c
877c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
887c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/syscall/%.c
917c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
927c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
937c478bd9Sstevel@tonic-gate
947c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/%.c
957c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
967c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
977c478bd9Sstevel@tonic-gate
98ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/%.c
99ae115bc7Smrj	$(COMPILE.c) -o $@ $<
100ae115bc7Smrj	$(CTFCONVERT_O)
101ae115bc7Smrj
102ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/%.s
103ae115bc7Smrj	$(COMPILE.s) -o $@ $<
104ae115bc7Smrj
105ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/debugger/%.c
106ae115bc7Smrj	$(COMPILE.c) -o $@ $<
107ae115bc7Smrj	$(CTFCONVERT_O)
108ae115bc7Smrj
109ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/events/%.c
110ae115bc7Smrj	$(COMPILE.c) -o $@ $<
111ae115bc7Smrj	$(CTFCONVERT_O)
112ae115bc7Smrj
113ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/hardware/%.c
114ae115bc7Smrj	$(COMPILE.c) -o $@ $<
115ae115bc7Smrj	$(CTFCONVERT_O)
116ae115bc7Smrj
117db2bae30SDana Myers$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/dispatcher/%.c
118ae115bc7Smrj	$(COMPILE.c) -o $@ $<
119ae115bc7Smrj	$(CTFCONVERT_O)
120ae115bc7Smrj
121db2bae30SDana Myers$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/executer/%.c
122ae115bc7Smrj	$(COMPILE.c) -o $@ $<
123ae115bc7Smrj	$(CTFCONVERT_O)
124ae115bc7Smrj
125db2bae30SDana Myers$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/parser/%.c
126ae115bc7Smrj	$(COMPILE.c) -o $@ $<
127ae115bc7Smrj	$(CTFCONVERT_O)
128ae115bc7Smrj
129ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/namespace/%.c
130ae115bc7Smrj	$(COMPILE.c) -o $@ $<
131ae115bc7Smrj	$(CTFCONVERT_O)
132ae115bc7Smrj
133ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/resources/%.c
134ae115bc7Smrj	$(COMPILE.c) -o $@ $<
135ae115bc7Smrj	$(CTFCONVERT_O)
136ae115bc7Smrj
137ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/tables/%.c
138ae115bc7Smrj	$(COMPILE.c) -o $@ $<
139ae115bc7Smrj	$(CTFCONVERT_O)
140ae115bc7Smrj
141ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/utilities/%.c
142ae115bc7Smrj	$(COMPILE.c) -o $@ $<
143ae115bc7Smrj	$(CTFCONVERT_O)
144ae115bc7Smrj
145ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/acpica/disassembler/%.c
146ae115bc7Smrj	$(COMPILE.c) -o $@ $<
147ae115bc7Smrj	$(CTFCONVERT_O)
148ae115bc7Smrj
14975ab5f91Slh155975$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/amd8111s/%.c
15075ab5f91Slh155975	$(COMPILE.c) -o $@ $<
15175ab5f91Slh155975	$(CTFCONVERT_O)
15275ab5f91Slh155975
1537c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/amr/%.c
1547c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1557c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1567c478bd9Sstevel@tonic-gate
15723c35297Sanish$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/hotplug/pcicfg/%.c
15823c35297Sanish	$(COMPILE.c) -o $@ $<
15923c35297Sanish	$(CTFCONVERT_O)
16023c35297Sanish
161989f2807SJerry Jelinek$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/ipmi/%.c
162989f2807SJerry Jelinek	$(COMPILE.c) -o $@ $<
163989f2807SJerry Jelinek	$(CTFCONVERT_O)
164989f2807SJerry Jelinek
165e4b86885SCheng Sean Ye$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/intel_nb5000/%.c
166e4b86885SCheng Sean Ye	$(COMPILE.c) -o $@ $<
167e4b86885SCheng Sean Ye	$(CTFCONVERT_O)
168e4b86885SCheng Sean Ye
169f657cd55SCheng Sean Ye$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/intel_nhm/%.c
170f657cd55SCheng Sean Ye	$(COMPILE.c) -o $@ $<
171f657cd55SCheng Sean Ye	$(CTFCONVERT_O)
172f657cd55SCheng Sean Ye
173e4b86885SCheng Sean Ye$(OBJS_DIR)/%.o:		$(SRC)/common/mc/mc-amd/%.c
174e4b86885SCheng Sean Ye	$(COMPILE.c) -o $@ $<
175e4b86885SCheng Sean Ye	$(CTFCONVERT_O)
176e4b86885SCheng Sean Ye
177e4b86885SCheng Sean Ye$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/mc-amd/%.c
178e4b86885SCheng Sean Ye	$(COMPILE.c) -o $@ $<
179e4b86885SCheng Sean Ye	$(CTFCONVERT_O)
180e4b86885SCheng Sean Ye
181ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/pci/%.c
182ae115bc7Smrj	$(COMPILE.c) -o $@ $<
183ae115bc7Smrj	$(CTFCONVERT_O)
184ae115bc7Smrj
185ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/pciex/%.c
186ae115bc7Smrj	$(COMPILE.c) -o $@ $<
187ae115bc7Smrj	$(CTFCONVERT_O)
188ae115bc7Smrj
189507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/controller/ata/%.c
190507c3241Smlf	$(COMPILE.c) -o $@ $<
191507c3241Smlf	$(CTFCONVERT_O)
192507c3241Smlf
193507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/dcdev/%.c
194507c3241Smlf	$(COMPILE.c) -o $@ $<
195507c3241Smlf	$(CTFCONVERT_O)
196507c3241Smlf
197507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/disk/%.c
198507c3241Smlf	$(COMPILE.c) -o $@ $<
199507c3241Smlf	$(CTFCONVERT_O)
200507c3241Smlf
201507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/drvobj/%.c
202507c3241Smlf	$(COMPILE.c) -o $@ $<
203507c3241Smlf	$(CTFCONVERT_O)
204507c3241Smlf
205507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/hba/ghd/%.c
206507c3241Smlf	$(COMPILE.c) -o $@ $<
207507c3241Smlf	$(CTFCONVERT_O)
208507c3241Smlf
209bdb9230aSGarrett D'Amore$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dnet/%.c
210bdb9230aSGarrett D'Amore	$(COMPILE.c) -o $@ $<
211bdb9230aSGarrett D'Amore	$(CTFCONVERT_O)
212bdb9230aSGarrett D'Amore
213508aff1aSJames C. McPherson$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/scsi/adapters/arcmsr/%.c
214508aff1aSJames C. McPherson	$(COMPILE.c) -o $@ $<
215508aff1aSJames C. McPherson	$(CTFCONVERT_O)
216508aff1aSJames C. McPherson
2177c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/scsi/targets/%.c
2187c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
2197c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
2207c478bd9Sstevel@tonic-gate
2217c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/vgatext/%.c
2227c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
2237c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
2247c478bd9Sstevel@tonic-gate
225*b0e1d44eSYuri Pankov$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/scsi/adapters/pvscsi/%.c
226*b0e1d44eSYuri Pankov	$(COMPILE.c) -o $@ $<
227*b0e1d44eSYuri Pankov	$(CTFCONVERT_O)
228*b0e1d44eSYuri Pankov
229fcf3ce44SJohn Forte$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/nskern/%.s
230fcf3ce44SJohn Forte	$(COMPILE.s) -o $@ $<
231fcf3ce44SJohn Forte
2327c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/os/%.c
2337c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
2347c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
2357c478bd9Sstevel@tonic-gate
2367c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/pcbe/%.c
2377c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
2387c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
2397c478bd9Sstevel@tonic-gate
2407c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/promif/%.c
2417c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
2427c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
2437c478bd9Sstevel@tonic-gate
2447c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/syscall/%.c
2457c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
2467c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
2477c478bd9Sstevel@tonic-gate
2487c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/common/os/%.c
2497c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
2507c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
2517c478bd9Sstevel@tonic-gate
252ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/kdi/%.c
253ae115bc7Smrj	$(COMPILE.c) -o $@ $<
254ae115bc7Smrj	$(CTFCONVERT_O)
255ae115bc7Smrj
256ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/kdi/%.s
257ae115bc7Smrj	$(COMPILE.s) -o $@ $<
258ae115bc7Smrj
259ae115bc7Smrj$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/kdi/$(SUBARCH_DIR)/%.s
260ae115bc7Smrj	$(COMPILE.s) -o $@ $<
261ae115bc7Smrj
262e7cbe64fSgw25295$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/zfs/%.c
263e7cbe64fSgw25295	$(COMPILE.c) -o $@ $<
264e7cbe64fSgw25295	$(CTFCONVERT_O)
265e7cbe64fSgw25295
266ae115bc7Smrj#
267ae115bc7Smrj# krtld compiled into unix
268ae115bc7Smrj#
269ae115bc7Smrj
270ae115bc7SmrjKRTLD_INC_PATH	= -I$(UTSBASE)/common/krtld -I$(UTSBASE)/intel/sys
271ae115bc7SmrjKRTLD_INC_PATH	+= -I$(UTSBASE)/intel/$(SUBARCH_DIR)/krtld
272ae115bc7Smrj
273ae115bc7SmrjKRTLD_CPPFLAGS_32	= -DELF_TARGET_386
274ae115bc7SmrjKRTLD_CPPFLAGS_64	= -DELF_TARGET_AMD64 -DMODDIR_SUFFIX=\"amd64\"
275ae115bc7SmrjKRTLD_CPPFLAGS		= $(KRTLD_CPPFLAGS_$(CLASS)) -D_KRTLD
276ae115bc7Smrj
277ae115bc7Smrj$(OBJS_DIR)/%.o:	$(UTSBASE)/common/krtld/%.c
278ae115bc7Smrj	$(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
279ae115bc7Smrj	$(CTFCONVERT_O)
280ae115bc7Smrj
281ae115bc7Smrj$(OBJS_DIR)/%.o:	$(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.c
282ae115bc7Smrj	$(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
283ae115bc7Smrj	$(CTFCONVERT_O)
284ae115bc7Smrj
285986fd29aSsetje#
286986fd29aSsetje# _DBOOT indicates that krtld is called from a dboot ELF section
287986fd29aSsetje#
288986fd29aSsetje$(OBJS_DIR)/kobj.o		:= CPPFLAGS += -D_DBOOT
289986fd29aSsetje
290ae115bc7Smrj$(OBJS_DIR)/%.o:	$(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.s
291ae115bc7Smrj	$(COMPILE.s) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
292ae115bc7Smrj	$(CTFCONVERT_O)
293ae115bc7Smrj
294ae115bc7Smrj$(OBJS_DIR)/%.o:	$(SRC)/common/util/$(SUBARCH_DIR)/%.c
295ae115bc7Smrj	$(COMPILE.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) -o $@ $<
296ae115bc7Smrj	$(CTFCONVERT_O)
297ae115bc7Smrj
298ae115bc7Smrj
2997c478bd9Sstevel@tonic-gate#
3007c478bd9Sstevel@tonic-gate#	Section 1b: Lint `object' build rules.
3017c478bd9Sstevel@tonic-gate#
3027c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(SRC)/common/fs/%.c
3037c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
3047c478bd9Sstevel@tonic-gate
30589518a1cSdmick$(LINTS_DIR)/%.ln:		$(SRC)/common/util/i386/%.s
30689518a1cSdmick	@($(LHEAD) $(LINT.s) $< $(LTAIL))
3077c478bd9Sstevel@tonic-gate
3089acbbeafSnn35248$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/brand/sn1/%.s
3099acbbeafSnn35248	@($(LHEAD) $(LINT.s) $< $(LTAIL))
3109acbbeafSnn35248
311e71ca95cSGerald Jelinek$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/brand/solaris10/%.s
312e71ca95cSGerald Jelinek	@($(LHEAD) $(LINT.s) $< $(LTAIL))
313e71ca95cSGerald Jelinek
3147c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.c
3157c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
3167c478bd9Sstevel@tonic-gate
3177c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.s
3187c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.s) $< $(LTAIL))
3197c478bd9Sstevel@tonic-gate
320e7cbe64fSgw25295$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/zfs/%.c
321e7cbe64fSgw25295	@($(LHEAD) $(LINT.c) $< $(LTAIL))
322e7cbe64fSgw25295
3237c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/proc/%.c
3247c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
3257c478bd9Sstevel@tonic-gate
3267c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/ml/%.s
3277c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.s) $< $(LTAIL))
3287c478bd9Sstevel@tonic-gate
3297c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/os/%.c
3307c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
3317c478bd9Sstevel@tonic-gate
3327c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/promif/%.c
3337c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
3347c478bd9Sstevel@tonic-gate
3357c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/syscall/%.c
3367c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
3377c478bd9Sstevel@tonic-gate
3387c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/%.c
3397c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
3407c478bd9Sstevel@tonic-gate
341ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/%.s
342ae115bc7Smrj	@($(LHEAD) $(LINT.s) $< $(LTAIL))
343ae115bc7Smrj
344ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/%.c
345ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
346ae115bc7Smrj
347ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/debugger/%.c
348ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
349ae115bc7Smrj
350ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/events/%.c
351ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
352ae115bc7Smrj
353ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/hardware/%.c
354ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
355ae115bc7Smrj
356db2bae30SDana Myers$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/dispatcher/%.c
357ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
358ae115bc7Smrj
359db2bae30SDana Myers$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/executer/%.c
360ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
361ae115bc7Smrj
362db2bae30SDana Myers$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/parser/%.c
363ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
364ae115bc7Smrj
365ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/namespace/%.c
366ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
367ae115bc7Smrj
368ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/resources/%.c
369ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
370ae115bc7Smrj
371ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/tables/%.c
372ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
373ae115bc7Smrj
374ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/utilities/%.c
375ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
376ae115bc7Smrj
377ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/acpica/disassembler/%.c
378ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
379ae115bc7Smrj
38075ab5f91Slh155975$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/amd8111s/%.c
38175ab5f91Slh155975	@($(LHEAD) $(LINT.c) $< $(LTAIL))
38275ab5f91Slh155975
3837c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/amr/%.c
3847c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
3857c478bd9Sstevel@tonic-gate
386508aff1aSJames C. McPherson$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/scsi/adapters/arcmsr/%.c
387508aff1aSJames C. McPherson	@($(LHEAD) $(LINT.c) $< $(LTAIL))
388508aff1aSJames C. McPherson
38923c35297Sanish$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/hotplug/pcicfg/%.c
39023c35297Sanish	@($(LHEAD) $(LINT.c) $< $(LTAIL))
39123c35297Sanish
39226947304SEvan Yan$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/hotplug/pci/%.c
39323c35297Sanish	@($(LHEAD) $(LINT.c) $< $(LTAIL))
39423c35297Sanish
395e4b86885SCheng Sean Ye$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/intel_nb5000/%.c
396e4b86885SCheng Sean Ye	@($(LHEAD) $(LINT.c) $< $(LTAIL))
397e4b86885SCheng Sean Ye
398f657cd55SCheng Sean Ye$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/intel_nhm/%.c
399f657cd55SCheng Sean Ye	@($(LHEAD) $(LINT.c) $< $(LTAIL))
400f657cd55SCheng Sean Ye
401989f2807SJerry Jelinek$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/ipmi/%.c
402989f2807SJerry Jelinek	@($(LHEAD) $(LINT.c) $< $(LTAIL))
403989f2807SJerry Jelinek
404e4b86885SCheng Sean Ye$(LINTS_DIR)/%.ln:		$(SRC)/common/mc/mc-amd/%.c
405e4b86885SCheng Sean Ye	@($(LHEAD) $(LINT.c) $< $(LTAIL))
406e4b86885SCheng Sean Ye
407e4b86885SCheng Sean Ye$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/mc-amd/%.c
408e4b86885SCheng Sean Ye	@($(LHEAD) $(LINT.c) $< $(LTAIL))
409e4b86885SCheng Sean Ye
410ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/pci/%.c
411ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
412ae115bc7Smrj
413ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/pciex/%.c
414ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
415ae115bc7Smrj
416507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/controller/ata/%.c
417507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
418507c3241Smlf
419507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/dcdev/%.c
420507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
421507c3241Smlf
422507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/disk/%.c
423507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
424507c3241Smlf
425507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/drvobj/%.c
426507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
427507c3241Smlf
428507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/hba/ghd/%.c
429507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
430507c3241Smlf
431bdb9230aSGarrett D'Amore$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dnet/%.c
432bdb9230aSGarrett D'Amore	@($(LHEAD) $(LINT.c) $< $(LTAIL))
433bdb9230aSGarrett D'Amore
4347c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/scsi/targets/%.c
4357c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
4367c478bd9Sstevel@tonic-gate
4377c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/vgatext/%.c
4387c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
4397c478bd9Sstevel@tonic-gate
440*b0e1d44eSYuri Pankov$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/scsi/adapters/pvscsi/%.c
441*b0e1d44eSYuri Pankov	@($(LHEAD) $(LINT.c) $< $(LTAIL))
442*b0e1d44eSYuri Pankov
4437c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/os/%.c
4447c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
4457c478bd9Sstevel@tonic-gate
4467c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/pcbe/%.c
4477c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
4487c478bd9Sstevel@tonic-gate
4497c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/promif/%.c
4507c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
4517c478bd9Sstevel@tonic-gate
4527c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/syscall/%.c
4537c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
4547c478bd9Sstevel@tonic-gate
4557c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/os/%.c
4567c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
457ae115bc7Smrj
458ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/kdi/%.c
459ae115bc7Smrj	@($(LHEAD) $(LINT.c) $< $(LTAIL))
460ae115bc7Smrj
461ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/kdi/%.s
462ae115bc7Smrj	@($(LHEAD) $(LINT.s) $< $(LTAIL))
463ae115bc7Smrj
464ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/kdi/$(SUBARCH_DIR)/%.s
465ae115bc7Smrj	@($(LHEAD) $(LINT.s) $< $(LTAIL))
466ae115bc7Smrj
467fcf3ce44SJohn Forte$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/nskern/%.s
468fcf3ce44SJohn Forte	@($(LHEAD) $(LINT.s) $< $(LTAIL))
469fcf3ce44SJohn Forte
470ae115bc7Smrj#
471ae115bc7Smrj# krtld lints
472ae115bc7Smrj#
473ae115bc7Smrj$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/krtld/%.c
474ae115bc7Smrj	@($(LHEAD) $(LINT.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) $< $(LTAIL))
475ae115bc7Smrj
476ae115bc7Smrj$(LINTS_DIR)/%.ln:	$(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.c
477ae115bc7Smrj	@($(LHEAD) $(LINT.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) $< $(LTAIL))
478ae115bc7Smrj
479ae115bc7Smrj$(LINTS_DIR)/%.ln:	$(UTSBASE)/intel/$(SUBARCH_DIR)/krtld/%.s
480ae115bc7Smrj	@($(LHEAD) $(LINT.s) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) $< $(LTAIL))
481ae115bc7Smrj
482ae115bc7Smrj$(LINTS_DIR)/%.ln:	$(SRC)/common/util/$(SUBARCH_DIR)/%.c
483ae115bc7Smrj	@($(LHEAD) $(LINT.c) $(KRTLD_INC_PATH) $(KRTLD_CPPFLAGS) $< $(LTAIL))
484ae115bc7Smrj
485986fd29aSsetje$(OBJS_DIR)/kobj.ln		:= CPPFLAGS += -D_DBOOT
486