xref: /titanic_50/usr/src/uts/sun/Makefile.rules (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1*7c478bd9Sstevel@tonic-gate#
2*7c478bd9Sstevel@tonic-gate# CDDL HEADER START
3*7c478bd9Sstevel@tonic-gate#
4*7c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the
5*7c478bd9Sstevel@tonic-gate# Common Development and Distribution License, Version 1.0 only
6*7c478bd9Sstevel@tonic-gate# (the "License").  You may not use this file except in compliance
7*7c478bd9Sstevel@tonic-gate# with the License.
8*7c478bd9Sstevel@tonic-gate#
9*7c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10*7c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing.
11*7c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions
12*7c478bd9Sstevel@tonic-gate# and limitations under the License.
13*7c478bd9Sstevel@tonic-gate#
14*7c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each
15*7c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16*7c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the
17*7c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying
18*7c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner]
19*7c478bd9Sstevel@tonic-gate#
20*7c478bd9Sstevel@tonic-gate# CDDL HEADER END
21*7c478bd9Sstevel@tonic-gate#
22*7c478bd9Sstevel@tonic-gate#
23*7c478bd9Sstevel@tonic-gate# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
24*7c478bd9Sstevel@tonic-gate# Use is subject to license terms.
25*7c478bd9Sstevel@tonic-gate#
26*7c478bd9Sstevel@tonic-gate# ident	"%Z%%M%	%I%	%E% SMI"
27*7c478bd9Sstevel@tonic-gate#
28*7c478bd9Sstevel@tonic-gate# uts/sun/Makefile.rules
29*7c478bd9Sstevel@tonic-gate#
30*7c478bd9Sstevel@tonic-gate#	This Makefile defines all build rules for the directory uts/sun and
31*7c478bd9Sstevel@tonic-gate# its children. These are the source files which are common to all sun
32*7c478bd9Sstevel@tonic-gate# implementations.
33*7c478bd9Sstevel@tonic-gate#
34*7c478bd9Sstevel@tonic-gate#	The following two-level ordering must be maintained in this file.
35*7c478bd9Sstevel@tonic-gate#	  Lines are sorted first in order of decreasing specificity based on
36*7c478bd9Sstevel@tonic-gate#	  the first directory component.  That is, sun4u rules come before
37*7c478bd9Sstevel@tonic-gate#	  sparc rules come before common rules.
38*7c478bd9Sstevel@tonic-gate#
39*7c478bd9Sstevel@tonic-gate#	  Lines whose initial directory components are equal are sorted
40*7c478bd9Sstevel@tonic-gate#	  alphabetically by the remaining components.
41*7c478bd9Sstevel@tonic-gate
42*7c478bd9Sstevel@tonic-gate#
43*7c478bd9Sstevel@tonic-gate#	Section 1a: C object build rules
44*7c478bd9Sstevel@tonic-gate#
45*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/audio/legacy/dbri/%.c
46*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
47*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
48*7c478bd9Sstevel@tonic-gate
49*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/audio/sada/drv/audiocs/%.c
50*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
51*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
52*7c478bd9Sstevel@tonic-gate
53*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/eri.o	:=	CFLAGS += -dalign
54*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/hme.o	:=	CFLAGS += -dalign
55*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/%.c
56*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
57*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
58*7c478bd9Sstevel@tonic-gate
59*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/ttymux/%.c
60*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
61*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
62*7c478bd9Sstevel@tonic-gate
63*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/adapters/%.c
64*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
65*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
66*7c478bd9Sstevel@tonic-gate
67*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/adapters/ghd/%.c
68*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
69*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
70*7c478bd9Sstevel@tonic-gate
71*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/conf/%.c
72*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
73*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
74*7c478bd9Sstevel@tonic-gate
75*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/impl/%.c
76*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
77*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
78*7c478bd9Sstevel@tonic-gate
79*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/dada/targets/%.c
80*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
81*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
82*7c478bd9Sstevel@tonic-gate
83*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/esp.o	:=	CFLAGS += -dalign
84*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/fas.o	:=	CFLAGS += -dalign
85*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/fas_callbacks.o :=	CFLAGS += -dalign
86*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/ifp.o	:=	CFLAGS += -dalign
87*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/isp.o	:=	CFLAGS += -dalign
88*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/sf.o	:=	CFLAGS += -dalign
89*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/scsi/adapters/%.c
90*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
91*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
92*7c478bd9Sstevel@tonic-gate
93*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/sun/io/scsi/targets/%.c
94*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -I. -o $@ $<
95*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
96*7c478bd9Sstevel@tonic-gate
97*7c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o:		$(UTSBASE)/common/io/scsi/adapters/%.c
98*7c478bd9Sstevel@tonic-gate	$(COMPILE.c) -o $@ $<
99*7c478bd9Sstevel@tonic-gate	$(CTFCONVERT_O)
100*7c478bd9Sstevel@tonic-gate
101*7c478bd9Sstevel@tonic-gate#
102*7c478bd9Sstevel@tonic-gate#	Section 1b: Lint `object' build rules
103*7c478bd9Sstevel@tonic-gate#
104*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/%.c
105*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
106*7c478bd9Sstevel@tonic-gate
107*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/audio/legacy/dbri/%.c
108*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
109*7c478bd9Sstevel@tonic-gate
110*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/audio/sada/drv/audiocs/%.c
111*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
112*7c478bd9Sstevel@tonic-gate
113*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/scsi/adapters/%.c
114*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
115*7c478bd9Sstevel@tonic-gate
116*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/scsi/targets/%.c
117*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) -I. $< $(LTAIL))
118*7c478bd9Sstevel@tonic-gate
119*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/targets/%.c
120*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
121*7c478bd9Sstevel@tonic-gate
122*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/adapters/%.c
123*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
124*7c478bd9Sstevel@tonic-gate
125*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/adapters/ghd/%.c
126*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
127*7c478bd9Sstevel@tonic-gate
128*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/impl/%.c
129*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
130*7c478bd9Sstevel@tonic-gate
131*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/dada/conf/%.c
132*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
133*7c478bd9Sstevel@tonic-gate
134*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/common/io/scsi/adapters/%.c
135*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
136*7c478bd9Sstevel@tonic-gate
137*7c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln:		$(UTSBASE)/sun/io/ttymux/%.c
138*7c478bd9Sstevel@tonic-gate	@($(LHEAD) $(LINT.c) $< $(LTAIL))
139