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 59acbbeafSnn# Common Development and Distribution License (the "License"). 69acbbeafSnn# 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# 217c478bd9Sstevel@tonic-gate# 22f657cd55SCheng Sean Ye# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 237c478bd9Sstevel@tonic-gate# Use is subject to license terms. 240250bb16SJohn Levon# Copyright 2019 Joyent, Inc. 25a6ab12d6SYuri Pankov# Copyright 2017 Nexenta Systems, Inc. 267c478bd9Sstevel@tonic-gate# 27e4b86885SCheng Sean Ye 287c478bd9Sstevel@tonic-gate# 297c478bd9Sstevel@tonic-gate# This Makefile defines all file modules and build rules for the 307c478bd9Sstevel@tonic-gate# directory uts/intel and its children. These are the source files which 317c478bd9Sstevel@tonic-gate# are specific to the intel processor. 327c478bd9Sstevel@tonic-gate# 337c478bd9Sstevel@tonic-gate# The following two-level ordering must be maintained in this file. 347c478bd9Sstevel@tonic-gate# Lines are sorted first in order of decreasing specificity based on 357c478bd9Sstevel@tonic-gate# the first directory component. That is, sun4u rules come before 367c478bd9Sstevel@tonic-gate# sparc rules come before common rules. 377c478bd9Sstevel@tonic-gate# 387c478bd9Sstevel@tonic-gate# Lines whose initial directory components are equal are sorted 397c478bd9Sstevel@tonic-gate# alphabetically by the remaining components. 407c478bd9Sstevel@tonic-gate 41ae115bc7Smrj# 42ae115bc7Smrj# Need a way to distinguish between the ia32 and amd64 subdirs. 43ae115bc7Smrj# 449b0bb795SJohn LevonSUBARCH_DIR = amd64 45ae115bc7Smrj 467c478bd9Sstevel@tonic-gate# 477c478bd9Sstevel@tonic-gate# Section 1a: C object build rules 487c478bd9Sstevel@tonic-gate# 497c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(SRC)/common/fs/%.c 507c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 517c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 527c478bd9Sstevel@tonic-gate 53ae115bc7Smrj$(OBJS_DIR)/%.o: $(UTSBASE)/common/io/power/%.c 54ae115bc7Smrj $(COMPILE.c) -o $@ $< 55ae115bc7Smrj $(CTFCONVERT_O) 56ae115bc7Smrj 579acbbeafSnn$(OBJS_DIR)/%.o: $(UTSBASE)/intel/brand/sn1/%.s 589acbbeafSnn $(COMPILE.s) -o $@ $< 599acbbeafSnn 60e71ca95cSGerald Jelinek$(OBJS_DIR)/%.o: $(UTSBASE)/intel/brand/solaris10/%.s 61e71ca95cSGerald Jelinek $(COMPILE.s) -o $@ $< 62e71ca95cSGerald Jelinek 637c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/intel/dtrace/%.c 647c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 657c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/intel/dtrace/%.s 687c478bd9Sstevel@tonic-gate $(COMPILE.s) -o $@ $< 697c478bd9Sstevel@tonic-gate 707c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/intel/fs/proc/%.c 717c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 727c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 737c478bd9Sstevel@tonic-gate 74f0089e39SRichard Lowe$(OBJS_DIR)/%.o: $(UTSBASE)/intel/os/%.c 757c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 767c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 777c478bd9Sstevel@tonic-gate 787c478bd9Sstevel@tonic-gate$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/%.c 797c478bd9Sstevel@tonic-gate $(COMPILE.c) -o $@ $< 807c478bd9Sstevel@tonic-gate $(CTFCONVERT_O) 817c478bd9Sstevel@tonic-gate 82ae115bc7Smrj$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/acpica/%.c 83ae115bc7Smrj $(COMPILE.c) -o $@ $< 84ae115bc7Smrj $(CTFCONVERT_O) 85ae115bc7Smrj 86ae115bc7Smrj$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/acpica/%.s 87ae115bc7Smrj $(COMPILE.s) -o $@ $< 88ae115bc7