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)/hme.o := CFLAGS += -dalign 45297a64e7Sgd78059$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/%.c 46297a64e7Sgd78059 $(COMPILE.c) -o $@ $< 47297a64e7Sgd78059 $(CTFCONVERT_O) 48297a64e7Sgd78059 49*88447a05SGarrett D'Amore$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/audio/drv/audiocs/%.c 5075d01c9aSsm142603 $(COMPILE.c) -o $@ $< 5175d01c9aSsm142603 $(CTFCONVERT_O) 5275d01c9aSsm142603 537c478bd9Sstevel@tonic-gate$(OBJS_DIR)/eri.o := CFLAGS += -dalign 54297a64e7Sgd78059$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/eri/%.c 557c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 567c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 577c478bd9Sstevel@tonic-gate 587c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/ttymux/%.c 597c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 607c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 617c478bd9Sstevel@tonic-gate 627c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/dada/conf/%.c 637c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 647c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 657c478bd9Sstevel@tonic-gate 667c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/dada/impl/%.c 677c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 687c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 697c478bd9Sstevel@tonic-gate 70a4aa671eSarutz$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/dada/targets/%.c 71a4aa671eSarutz $(COMPILE.c) -o $@ $< 72a4aa671eSarutz $(CTFCONVERT_O) 73a4aa671eSarutz 747c478bd9Sstevel@tonic-gate$(OBJS_DIR)/esp.o := CFLAGS += -dalign 757c478bd9Sstevel@tonic-gate$(OBJS_DIR)/fas.o := CFLAGS += -dalign 767c478bd9Sstevel@tonic-gate$(OBJS_DIR)/fas_callbacks.o := CFLAGS += -dalign 777c478bd9Sstevel@tonic-gate$(OBJS_DIR)/sf.o := CFLAGS += -dalign 787c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/scsi/adapters/%.c 797c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 807c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 817c478bd9Sstevel@tonic-gate 827c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/sun/io/scsi/targets/%.c 837c478bd9Sstevel@tonic-gate $(COMPILE.c) -I. -o $@ $< 847c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 857c478bd9Sstevel@tonic-gate 867c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/common/io/scsi/adapters/%.c 877c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 887c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 897c478bd9Sstevel@tonic-gate 907c478bd9Sstevel@tonic-gate# 917c478bd9Sstevel@tonic-gate# Section 1b: Lint `object' build rules 927c478bd9Sstevel@tonic-gate# 937c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/%.c 947c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 957c478bd9Sstevel@tonic-gate 96*88447a05SGarrett D'Amore$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/audio/drv/audiocs/%.c 9775d01c9aSsm142603 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 9875d01c9aSsm142603 99297a64e7Sgd78059$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/eri/%.c 100297a64e7Sgd78059 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 101297a64e7Sgd78059 1027c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/scsi/adapters/%.c 1037c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1047c478bd9Sstevel@tonic-gate 1057c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/scsi/targets/%.c 1067c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) -I. $< $(LTAIL)) 1077c478bd9Sstevel@tonic-gate 1087c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/dada/impl/%.c 1097c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1107c478bd9Sstevel@tonic-gate 1117c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/dada/conf/%.c 1127c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1137c478bd9Sstevel@tonic-gate 114a4aa671eSarutz$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/dada/targets/%.c 115a4aa671eSarutz @($(LHEAD) $(LINT.c) $< $(LTAIL)) 116a4aa671eSarutz 1177c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/scsi/adapters/%.c 1187c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 1197c478bd9Sstevel@tonic-gate 1207c478bd9Sstevel@tonic-gate$(LINTS_DIR)/%.ln: $(UTSBASE)/sun/io/ttymux/%.c 1217c478bd9Sstevel@tonic-gate @($(LHEAD) $(LINT.c) $< $(LTAIL)) 122