xref: /titanic_52/usr/src/uts/intel/Makefile.rules (revision 4fceebdf03eeac0d7c58a4f70cc19b00a8c40a73)
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#
22*4fceebdfSblakej# Copyright 2007 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
499acbbeafSnn35248$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/brand/sn1/%.s
509acbbeafSnn35248	$(COMPILE.s) -o $@ $<
519acbbeafSnn35248
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/ia32/ml/%.s
647c478bd9Sstevel@tonic-gate	$(COMPILE.s) -o $@ $<
657c478bd9Sstevel@tonic-gate
667c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/os/%.c
677c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
687c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
697c478bd9Sstevel@tonic-gate
707c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/promif/%.c
717c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
727c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
737c478bd9Sstevel@tonic-gate
747c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/ia32/syscall/%.c
757c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
767c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
777c478bd9Sstevel@tonic-gate
787c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/%.c
797c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
807c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
817c478bd9Sstevel@tonic-gate
827c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/aac/%.c
837c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
847c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
857c478bd9Sstevel@tonic-gate
867c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/amr/%.c
877c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
887c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
897c478bd9Sstevel@tonic-gate
90507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/controller/ata/%.c
91507c3241Smlf	$(COMPILE.c) -o $@ $<
92507c3241Smlf	$(CTFCONVERT_O)
93507c3241Smlf
94507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/dcdev/%.c
95507c3241Smlf	$(COMPILE.c) -o $@ $<
96507c3241Smlf	$(CTFCONVERT_O)
97507c3241Smlf
98507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/disk/%.c
99507c3241Smlf	$(COMPILE.c) -o $@ $<
100507c3241Smlf	$(CTFCONVERT_O)
101507c3241Smlf
102507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/drvobj/%.c
103507c3241Smlf	$(COMPILE.c) -o $@ $<
104507c3241Smlf	$(CTFCONVERT_O)
105507c3241Smlf
106507c3241Smlf$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/dktp/hba/ghd/%.c
107507c3241Smlf	$(COMPILE.c) -o $@ $<
108507c3241Smlf	$(CTFCONVERT_O)
109507c3241Smlf
1107c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/scsi/targets/%.c
1117c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1127c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1137c478bd9Sstevel@tonic-gate
1147c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/io/vgatext/%.c
1157c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1167c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1177c478bd9Sstevel@tonic-gate
1187c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/os/%.c
1197c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1207c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1217c478bd9Sstevel@tonic-gate
1227c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/pcbe/%.c
1237c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1247c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1257c478bd9Sstevel@tonic-gate
1267c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/promif/%.c
1277c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1287c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1297c478bd9Sstevel@tonic-gate
1307c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/intel/syscall/%.c
1317c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1327c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1337c478bd9Sstevel@tonic-gate
1347c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/common/os/%.c
1357c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1367c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1377c478bd9Sstevel@tonic-gate
1387c478bd9Sstevel@tonic-gate#
1397c478bd9Sstevel@tonic-gate#	Section 1b: Lint `object' build rules.
1407c478bd9Sstevel@tonic-gate#
1417c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(SRC)/common/fs/%.c
1427c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1437c478bd9Sstevel@tonic-gate
14489518a1cSdmick$(LINTS_DIR)/%.ln:		$(SRC)/common/util/i386/%.s
14589518a1cSdmick	@($(LHEAD) $(LINT.s) $< $(LTAIL))
1467c478bd9Sstevel@tonic-gate
1479acbbeafSnn35248$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/brand/sn1/%.s
1489acbbeafSnn35248	@($(LHEAD) $(LINT.s) $< $(LTAIL))
1499acbbeafSnn35248
1507c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.c
1517c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1527c478bd9Sstevel@tonic-gate
1537c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/dtrace/%.s
1547c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.s) $< $(LTAIL))
1557c478bd9Sstevel@tonic-gate
1567c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/fs/proc/%.c
1577c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1587c478bd9Sstevel@tonic-gate
1597c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/ml/%.s
1607c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.s) $< $(LTAIL))
1617c478bd9Sstevel@tonic-gate
1627c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/os/%.c
1637c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1647c478bd9Sstevel@tonic-gate
1657c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/promif/%.c
1667c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1677c478bd9Sstevel@tonic-gate
1687c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/ia32/syscall/%.c
1697c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1707c478bd9Sstevel@tonic-gate
1717c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/%.c
1727c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1737c478bd9Sstevel@tonic-gate
1747c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/aac/%.c
1757c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1767c478bd9Sstevel@tonic-gate
1777c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/amr/%.c
1787c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1797c478bd9Sstevel@tonic-gate
180507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/controller/ata/%.c
181507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
182507c3241Smlf
183507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/dcdev/%.c
184507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
185507c3241Smlf
186507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/disk/%.c
187507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
188507c3241Smlf
189507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/drvobj/%.c
190507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
191507c3241Smlf
192507c3241Smlf$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/dktp/hba/ghd/%.c
193507c3241Smlf	@($(LHEAD) $(LINT.c) $< $(LTAIL))
194507c3241Smlf
1957c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/scsi/targets/%.c
1967c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1977c478bd9Sstevel@tonic-gate
1987c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/io/vgatext/%.c
1997c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2007c478bd9Sstevel@tonic-gate
2017c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/os/%.c
2027c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2037c478bd9Sstevel@tonic-gate
2047c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/pcbe/%.c
2057c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2067c478bd9Sstevel@tonic-gate
2077c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/promif/%.c
2087c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2097c478bd9Sstevel@tonic-gate
2107c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/intel/syscall/%.c
2117c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
2127c478bd9Sstevel@tonic-gate
2137c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/os/%.c
2147c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
215