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*a4aa671eSarutz# Copyright 2007 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/conf/%.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/impl/%.c 687c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 697c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 707c478bd9Sstevel@tonic-gate 71*a4aa671eSarutz$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/dada/targets/%.c 72*a4aa671eSarutz $(COMPILE.c) -o $@ $< 73*a4aa671eSarutz $(CTFCONVERT_O) 74*a4aa671eSarutz 757c478bd9Sstevel@tonic-gate$(OBJS_DIR)/esp.o := CFLAGS += -dalign 767c478bd9Sstevel@tonic-gate$(OBJS_DIR)/fas.o := CFLAGS += -dalign 777c478bd9Sstevel@tonic-gate$(OBJS_DIR)/fas_callbacks.o := CFLAGS += -dalign 787c478bd9Sstevel@tonic-gate$(OBJS_DIR)/sf.o := CFLAGS += -dalign 797c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/scsi/adapters/%.c 807c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 817c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 827c478bd9Sstevel@tonic-gate 837c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/scsi/targets/%.c 847c478bd9Sstevel@tonic-gate $(COMPILE.c) -I. -o $@ $< 857c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 867c478bd9Sstevel@tonic-gate 877c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/common/io/scsi/adapters/%.c 887c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 897c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 907c478bd9Sstevel@tonic-gate 917c478bd9Sstevel@tonic-gate# 927c478bd9Sstevel@tonic-gate# Section 1b: Lint `object' build rules 937c478bd9Sstevel@tonic-gate# 947c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/%.c 957c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 967c478bd9Sstevel@tonic-gate 977c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/audio/sada/drv/audiocs/%.c 987c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 997c478bd9Sstevel@tonic-gate 10075d01c9aSsm142603$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/audio/sada/drv/audio1575/%.c 10175d01c9aSsm142603 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 10275d01c9aSsm142603 1037c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/scsi/adapters/%.c 1047c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1057c478bd9Sstevel@tonic-gate 1067c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/scsi/targets/%.c 1077c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) -I. $< $(LTAIL)) 1087c478bd9Sstevel@tonic-gate 1097c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/dada/impl/%.c 1107c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1117c478bd9Sstevel@tonic-gate 1127c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/dada/conf/%.c 1137c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1147c478bd9Sstevel@tonic-gate 115*a4aa671eSarutz$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/dada/targets/%.c 116*a4aa671eSarutz @($(LHEAD) $(LINT.c) $< $(LTAIL)) 117*a4aa671eSarutz 1187c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/scsi/adapters/%.c 1197c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1207c478bd9Sstevel@tonic-gate 1217c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/ttymux/%.c 1227c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 123