xref: /titanic_54/usr/src/uts/intel/Makefile.rules (revision 9acbbeaf2a1ffe5c14b244867d427714fab43c5c)
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
5*9acbbeafSnn35248# Common Development and Distribution License (the "License").
6*9acbbeafSnn35248# 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#
22507c3241Smlf# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237c478bd9Sstevel@tonic-gate# Use is subject to license terms.
247c478bd9Sstevel@tonic-gate#
257c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
267c478bd9Sstevel@tonic-gate#
277c478bd9Sstevel@tonic-gate#	This Makefile defines all file modules and build rules for the
287c478bd9Sstevel@tonic-gate# directory uts/intel and its children. These are the source files which
297c478bd9Sstevel@tonic-gate# are specific to the intel processor.
307c478bd9Sstevel@tonic-gate#
317c478bd9Sstevel@tonic-gate#	The following two-level ordering must be maintained in this file.
327c478bd9Sstevel@tonic-gate#	  Lines are sorted first in order of decreasing specificity based on
337c478bd9Sstevel@tonic-gate#	  the first directory component.  That is, sun4u rules come before
347c478bd9Sstevel@tonic-gate#	  sparc rules come before common rules.
357c478bd9Sstevel@tonic-gate#
367c478bd9Sstevel@tonic-gate#	  Lines whose initial directory components are equal are sorted
377c478bd9Sstevel@tonic-gate#	  alphabetically by the remaining components.
387c478bd9Sstevel@tonic-gate
397c478bd9Sstevel@tonic-gate#
407c478bd9Sstevel@tonic-gate#	Section 1a: C object build rules
417c478bd9Sstevel@tonic-gate#
427c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(SRC)/common/fs/%.c
437c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
447c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
457c478bd9Sstevel@tonic-gate
4689518a1cSdmick$(OBJS_DIR)/%.o:		$(SRC)/common/util/i386/%.s
4789518a1cSdmick	$(COMPILE.s) -o $@ $<
487c478bd9Sstevel@tonic-gate
49*9acbbeafSnn35248$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/brand/sn1/%.s
50*9acbbeafSnn35248	$(COMPILE.s) -o $@ $<
51*9acbbeafSnn35248
527c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/dtrace/%.c
537c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
547c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/dtrace/%.s
577c478bd9Sstevel@tonic-gate	$(COMPILE.s) -o $@ $<
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/fs/proc/%.c
607c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
617c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/fs/xmemfs/%.c
647c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
657c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/ml/%.s
687c478bd9Sstevel@tonic-gate	$(COMPILE.s) -o $@ $<
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/os/%.c
717c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
727c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/promif/%.c
757c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
767c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/syscall/%.c
797c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
807c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/%.c
837c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
847c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/aac/%.c
877c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
887c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
897c478bd9Sstevel@tonic-gate
907c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/amr/%.c
917c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
927c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
937c478bd9Sstevel@tonic-gate
94507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/controller/ata/%.c
95507c3241Smlf	$(COMPILE.c) -o $@ $<
96507c3241Smlf	$(CTFCONVERT_O)
97507c3241Smlf
98507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/dcdev/%.c
99507c3241Smlf	$(COMPILE.c) -o $@ $<
100507c3241Smlf	$(CTFCONVERT_O)
101507c3241Smlf
102507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/disk/%.c
103507c3241Smlf	$(COMPILE.c) -o $@ $<
104507c3241Smlf	$(CTFCONVERT_O)
105507c3241Smlf
106507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/drvobj/%.c
107507c3241Smlf	$(COMPILE.c) -o $@ $<
108507c3241Smlf	$(CTFCONVERT_O)
109507c3241Smlf
110507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/hba/ghd/%.c
111507c3241Smlf	$(COMPILE.c) -o $@ $<
112507c3241Smlf	$(CTFCONVERT_O)
113507c3241Smlf
1147c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/scsi/targets/%.c
1157c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1167c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1177c478bd9Sstevel@tonic-gate
1187c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/vgatext/%.c
1197c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1207c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1217c478bd9Sstevel@tonic-gate
1227c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/os/%.c
1237c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1247c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1257c478bd9Sstevel@tonic-gate
1267c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/pcbe/%.c
1277c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1287c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1297c478bd9Sstevel@tonic-gate
1307c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/promif/%.c
1317c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1327c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1337c478bd9Sstevel@tonic-gate
1347c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/syscall/%.c
1357c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1367c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1377c478bd9Sstevel@tonic-gate
1387c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/pci_pci/%.c
1397c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1407c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1417c478bd9Sstevel@tonic-gate
1427c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/common/os/%.c
1437c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1447c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1457c478bd9Sstevel@tonic-gate
1467c478bd9Sstevel@tonic-gate#
1477c478bd9Sstevel@tonic-gate#	Section 1b: Lint `object' build rules.
1487c478bd9Sstevel@tonic-gate#
1497c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(SRC)/common/fs/%.c
1507c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1517c478bd9Sstevel@tonic-gate
15289518a1cSdmick$(LINTS_DIR)/%.ln:		$(SRC)/common/util/i386/%.s
15389518a1cSdmick	@($(LHEAD) $(LINT.s) $< $(LTAIL))
1547c478bd9Sstevel@tonic-gate
155*9acbbeafSnn35248$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/brand/sn1/%.s
156*9acbbeafSnn35248	@($(LHEAD) $(LINT.s) $< $(LTAIL))
157*9acbbeafSnn35248
1587c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.c
1597c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1607c478bd9Sstevel@tonic-gate
1617c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.s
1627c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.s) $< $(LTAIL))
1637c478bd9Sstevel@tonic-gate
1647c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/proc/%.c
1657c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1667c478bd9Sstevel@tonic-gate
1677c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/xmemfs/%.c
1687c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1697c478bd9Sstevel@tonic-gate
1707c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/ml/%.s
1717c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.s) $< $(LTAIL))
1727c478bd9Sstevel@tonic-gate
1737c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/os/%.c
1747c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1757c478bd9Sstevel@tonic-gate
1767c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/promif/%.c
1777c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1787c478bd9Sstevel@tonic-gate
1797c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/syscall/%.c
1807c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1817c478bd9Sstevel@tonic-gate
1827c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/%.c
1837c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1847c478bd9Sstevel@tonic-gate
1857c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/aac/%.c
1867c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1877c478bd9Sstevel@tonic-gate
1887c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/amr/%.c
1897c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1907c478bd9Sstevel@tonic-gate
191507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/controller/ata/%.c
192507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
193507c3241Smlf
194507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/dcdev/%.c
195507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
196507c3241Smlf
197507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/disk/%.c
198507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
199507c3241Smlf
200507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/drvobj/%.c
201507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
202507c3241Smlf
203507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/hba/ghd/%.c
204507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
205507c3241Smlf
2067c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/scsi/targets/%.c
2077c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2087c478bd9Sstevel@tonic-gate
2097c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/vgatext/%.c
2107c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2117c478bd9Sstevel@tonic-gate
2127c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/os/%.c
2137c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2147c478bd9Sstevel@tonic-gate
2157c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/pcbe/%.c
2167c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2177c478bd9Sstevel@tonic-gate
2187c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/promif/%.c
2197c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2207c478bd9Sstevel@tonic-gate
2217c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/syscall/%.c
2227c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2237c478bd9Sstevel@tonic-gate
2247c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/pci_pci/%.c
2257c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2267c478bd9Sstevel@tonic-gate
2277c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/os/%.c
2287c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
229