xref: /titanic_50/usr/src/uts/sun/Makefile.rules (revision 75d01c9ab5ef6f1bbac9f9d4eb379d5c38583d82)
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
57c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
67c478bd9Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
77c478bd9Sstevel@tonic-gate# with the License.
87c478bd9Sstevel@tonic-gate#
97c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
107c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
117c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
127c478bd9Sstevel@tonic-gate# and limitations under the License.
137c478bd9Sstevel@tonic-gate#
147c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
157c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
167c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
177c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
187c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
197c478bd9Sstevel@tonic-gate#
207c478bd9Sstevel@tonic-gate# CDDL HEADER END
217c478bd9Sstevel@tonic-gate#
227c478bd9Sstevel@tonic-gate#
23*75d01c9aSsm142603# 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/legacy/dbri/%.c
467c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
477c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
487c478bd9Sstevel@tonic-gate
497c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/audio/sada/drv/audiocs/%.c
507c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
517c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
527c478bd9Sstevel@tonic-gate
53*75d01c9aSsm142603$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/audio/sada/drv/audio1575/%.c
54*75d01c9aSsm142603	$(COMPILE.c) -o $@ $<
55*75d01c9aSsm142603	$(CTFCONVERT_O)
56*75d01c9aSsm142603
577c478bd9Sstevel@tonic-gate$(OBJS_DIR)/eri.o	:=	CFLAGS += -dalign
587c478bd9Sstevel@tonic-gate$(OBJS_DIR)/hme.o	:=	CFLAGS += -dalign
597c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/%.c
607c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
617c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
627c478bd9Sstevel@tonic-gate
637c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/ttymux/%.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/%.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/adapters/ghd/%.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/conf/%.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/impl/%.c
807c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
817c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/targets/%.c
847c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
857c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
867c478bd9Sstevel@tonic-gate
877c478bd9Sstevel@tonic-gate$(OBJS_DIR)/esp.o	:=	CFLAGS += -dalign
887c478bd9Sstevel@tonic-gate$(OBJS_DIR)/fas.o	:=	CFLAGS += -dalign
897c478bd9Sstevel@tonic-gate$(OBJS_DIR)/fas_callbacks.o :=	CFLAGS += -dalign
907c478bd9Sstevel@tonic-gate$(OBJS_DIR)/ifp.o	:=	CFLAGS += -dalign
917c478bd9Sstevel@tonic-gate$(OBJS_DIR)/isp.o	:=	CFLAGS += -dalign
927c478bd9Sstevel@tonic-gate$(OBJS_DIR)/sf.o	:=	CFLAGS += -dalign
937c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/scsi/adapters/%.c
947c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
957c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
967c478bd9Sstevel@tonic-gate
977c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/scsi/targets/%.c
987c478bd9Sstevel@tonic-gate	$(COMPILE.c) -I. -o $@ $<
997c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/scsi/adapters/%.c
1027c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
1037c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
1047c478bd9Sstevel@tonic-gate
1057c478bd9Sstevel@tonic-gate#
1067c478bd9Sstevel@tonic-gate#	Section 1b: Lint `object' build rules
1077c478bd9Sstevel@tonic-gate#
1087c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/%.c
1097c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1107c478bd9Sstevel@tonic-gate
1117c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/audio/legacy/dbri/%.c
1127c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1137c478bd9Sstevel@tonic-gate
1147c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/audio/sada/drv/audiocs/%.c
1157c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1167c478bd9Sstevel@tonic-gate
117*75d01c9aSsm142603$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/audio/sada/drv/audio1575/%.c
118*75d01c9aSsm142603	@($(LHEAD) $(LINT.c) $< $(LTAIL))
119*75d01c9aSsm142603
1207c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/scsi/adapters/%.c
1217c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1227c478bd9Sstevel@tonic-gate
1237c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/scsi/targets/%.c
1247c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) -I. $< $(LTAIL))
1257c478bd9Sstevel@tonic-gate
1267c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/targets/%.c
1277c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1287c478bd9Sstevel@tonic-gate
1297c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/adapters/%.c
1307c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1317c478bd9Sstevel@tonic-gate
1327c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/adapters/ghd/%.c
1337c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1347c478bd9Sstevel@tonic-gate
1357c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/impl/%.c
1367c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1377c478bd9Sstevel@tonic-gate
1387c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/conf/%.c
1397c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1407c478bd9Sstevel@tonic-gate
1417c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/scsi/adapters/%.c
1427c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
1437c478bd9Sstevel@tonic-gate
1447c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/ttymux/%.c
1457c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
146