xref: /titanic_50/usr/src/uts/sun/Makefile.rules (revision 4ab75253616c6d68e967c10221bb663c0bfa99df)
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*4ab75253Smrj# Common Development and Distribution License (the "License").
6*4ab75253Smrj# 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#
21*4ab75253Smrj
227c478bd9Sstevel@tonic-gate#
2375d01c9aSsm142603# Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
247c478bd9Sstevel@tonic-gate# Use is subject to license terms.
257c478bd9Sstevel@tonic-gate#
267c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
277c478bd9Sstevel@tonic-gate#
287c478bd9Sstevel@tonic-gate# uts/sun/Makefile.rules
297c478bd9Sstevel@tonic-gate#
307c478bd9Sstevel@tonic-gate#	This Makefile defines all build rules for the directory uts/sun and
317c478bd9Sstevel@tonic-gate# its children. These are the source files which are common to all sun
327c478bd9Sstevel@tonic-gate# implementations.
337c478bd9Sstevel@tonic-gate#
347c478bd9Sstevel@tonic-gate#	The following two-level ordering must be maintained in this file.
357c478bd9Sstevel@tonic-gate#	  Lines are sorted first in order of decreasing specificity based on
367c478bd9Sstevel@tonic-gate#	  the first directory component.  That is, sun4u rules come before
377c478bd9Sstevel@tonic-gate#	  sparc rules come before common rules.
387c478bd9Sstevel@tonic-gate#
397c478bd9Sstevel@tonic-gate#	  Lines whose initial directory components are equal are sorted
407c478bd9Sstevel@tonic-gate#	  alphabetically by the remaining components.
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gate#
437c478bd9Sstevel@tonic-gate#	Section 1a: C object build rules
447c478bd9Sstevel@tonic-gate#
457c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/audio/sada/drv/audiocs/%.c
467c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
477c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
487c478bd9Sstevel@tonic-gate
4975d01c9aSsm142603$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/audio/sada/drv/audio1575/%.c
5075d01c9aSsm142603	$(COMPILE.c) -o $@ $<
5175d01c9aSsm142603	$(CTFCONVERT_O)
5275d01c9aSsm142603
537c478bd9Sstevel@tonic-gate$(OBJS_DIR)/eri.o	:=	CFLAGS += -dalign
547c478bd9Sstevel@tonic-gate$(OBJS_DIR)/hme.o	:=	CFLAGS += -dalign
557c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/%.c
567c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
577c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
587c478bd9Sstevel@tonic-gate
597c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/ttymux/%.c
607c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
617c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/adapters/%.c
647c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
657c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
667c478bd9Sstevel@tonic-gate
677c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/adapters/ghd/%.c
687c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
697c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
707c478bd9Sstevel@tonic-gate
717c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/conf/%.c
727c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
737c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
747c478bd9Sstevel@tonic-gate
757c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/impl/%.c
767c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
777c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
787c478bd9Sstevel@tonic-gate
797c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/targets/%.c
807c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
817c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gate$(OBJS_DIR)/esp.o	:=	CFLAGS += -dalign
847c478bd9Sstevel@tonic-gate$(OBJS_DIR)/fas.o	:=	CFLAGS += -dalign
857c478bd9Sstevel@tonic-gate$(OBJS_DIR)/fas_callbacks.o :=	CFLAGS += -dalign
867c478bd9Sstevel@tonic-gate$(OBJS_DIR)/ifp.o	:=	CFLAGS += -dalign
877c478bd9Sstevel@tonic-gate$(OBJS_DIR)/isp.o	:=	CFLAGS += -dalign
887c478bd9Sstevel@tonic-gate$(OBJS_DIR)/sf.o	:=	CFLAGS += -dalign
897c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/scsi/adapters/%.c
907c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
917c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
927c478bd9Sstevel@tonic-gate
937c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/scsi/targets/%.c
947c478bd9Sstevel@tonic-gate	$(COMPILE.c) -I. -o $@ $<
957c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/scsi/adapters/%.c
987c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
997c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gate#
1027c478bd9Sstevel@tonic-gate#	Section 1b: Lint `object' build rules
1037c478bd9Sstevel@tonic-gate#
1047c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/%.c
1057c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1067c478bd9Sstevel@tonic-gate
1077c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/audio/sada/drv/audiocs/%.c
1087c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1097c478bd9Sstevel@tonic-gate
11075d01c9aSsm142603$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/audio/sada/drv/audio1575/%.c
11175d01c9aSsm142603	@($(LHEAD) $(LINT.c) $< $(LTAIL))
11275d01c9aSsm142603
1137c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/scsi/adapters/%.c
1147c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1157c478bd9Sstevel@tonic-gate
1167c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/scsi/targets/%.c
1177c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) -I. $< $(LTAIL))
1187c478bd9Sstevel@tonic-gate
1197c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/targets/%.c
1207c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1217c478bd9Sstevel@tonic-gate
1227c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/adapters/%.c
1237c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1247c478bd9Sstevel@tonic-gate
1257c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/adapters/ghd/%.c
1267c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1277c478bd9Sstevel@tonic-gate
1287c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/impl/%.c
1297c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1307c478bd9Sstevel@tonic-gate
1317c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/conf/%.c
1327c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1337c478bd9Sstevel@tonic-gate
1347c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/scsi/adapters/%.c
1357c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1367c478bd9Sstevel@tonic-gate
1377c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/ttymux/%.c
1387c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
139