xref: /titanic_50/usr/src/uts/sun/Makefile.rules (revision 0219346b07c8d846112a335f1543309c21e3d8da)
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
54ab75253Smrj# Common Development and Distribution License (the "License").
64ab75253Smrj# 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#
214ab75253Smrj
227c478bd9Sstevel@tonic-gate#
23*88447a05SGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate# uts/sun/Makefile.rules
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate#	This Makefile defines all build rules for the directory uts/sun and
297c478bd9Sstevel@tonic-gate# its children. These are the source files which are common to all sun
307c478bd9Sstevel@tonic-gate# implementations.
317c478bd9Sstevel@tonic-gate#
327c478bd9Sstevel@tonic-gate#	The following two-level ordering must be maintained in this file.
337c478bd9Sstevel@tonic-gate#	  Lines are sorted first in order of decreasing specificity based on
347c478bd9Sstevel@tonic-gate#	  the first directory component.  That is, sun4u rules come before
357c478bd9Sstevel@tonic-gate#	  sparc rules come before common rules.
367c478bd9Sstevel@tonic-gate#
377c478bd9Sstevel@tonic-gate#	  Lines whose initial directory components are equal are sorted
387c478bd9Sstevel@tonic-gate#	  alphabetically by the remaining components.
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gate#
417c478bd9Sstevel@tonic-gate#	Section 1a: C object build rules
427c478bd9Sstevel@tonic-gate#
43297a64e7Sgd78059
44297a64e7Sgd78059$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/%.c
45297a64e7Sgd78059	$(COMPILE.c) -o $@ $<
46297a64e7Sgd78059	$(CTFCONVERT_O)
47297a64e7Sgd78059
48*88447a05SGarrett D'Amore$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/audio/drv/audiocs/%.c
4975d01c9aSsm142603	$(COMPILE.c) -o $@ $<
5075d01c9aSsm142603	$(CTFCONVERT_O)
5175d01c9aSsm142603
52297a64e7Sgd78059$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/eri/%.c
537c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
547c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
557c478bd9Sstevel@tonic-gate
567c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/ttymux/%.c
577c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
587c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
597c478bd9Sstevel@tonic-gate
607c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/conf/%.c
617c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
627c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
637c478bd9Sstevel@tonic-gate
647c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/impl/%.c
657c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
667c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
677c478bd9Sstevel@tonic-gate
68a4aa671eSarutz$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/targets/%.c
69a4aa671eSarutz	$(COMPILE.c) -o $@ $<
70a4aa671eSarutz	$(CTFCONVERT_O)
71a4aa671eSarutz
727c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/scsi/adapters/%.c
737c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
747c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
757c478bd9Sstevel@tonic-gate
767c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/scsi/targets/%.c
777c478bd9Sstevel@tonic-gate	$(COMPILE.c) -I. -o $@ $<
787c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
797c478bd9Sstevel@tonic-gate
807c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/scsi/adapters/%.c
817c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
827c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
837c478bd9Sstevel@tonic-gate
847c478bd9Sstevel@tonic-gate#
857c478bd9Sstevel@tonic-gate#	Section 1b: Lint `object' build rules
867c478bd9Sstevel@tonic-gate#
877c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/%.c
887c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
897c478bd9Sstevel@tonic-gate
90*88447a05SGarrett D'Amore$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/audio/drv/audiocs/%.c
9175d01c9aSsm142603	@($(LHEAD) $(LINT.c) $< $(LTAIL))
9275d01c9aSsm142603
93297a64e7Sgd78059$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/eri/%.c
94297a64e7Sgd78059	@($(LHEAD) $(LINT.c) $< $(LTAIL))
95297a64e7Sgd78059
967c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/scsi/adapters/%.c
977c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
987c478bd9Sstevel@tonic-gate
997c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/scsi/targets/%.c
1007c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) -I. $< $(LTAIL))
1017c478bd9Sstevel@tonic-gate
1027c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/impl/%.c
1037c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/conf/%.c
1067c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1077c478bd9Sstevel@tonic-gate
108a4aa671eSarutz$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/targets/%.c
109a4aa671eSarutz	@($(LHEAD) $(LINT.c) $< $(LTAIL))
110a4aa671eSarutz
1117c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/scsi/adapters/%.c
1127c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1137c478bd9Sstevel@tonic-gate
1147c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/ttymux/%.c
1157c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
116