1# 2# CDDL HEADER START 3# 4# The contents of this file are subject to the terms of the 5# Common Development and Distribution License (the "License"). 6# You may not use this file except in compliance with the License. 7# 8# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9# or http://www.opensolaris.org/os/licensing. 10# See the License for the specific language governing permissions 11# and limitations under the License. 12# 13# When distributing Covered Code, include this CDDL HEADER in each 14# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15# If applicable, add the following below this CDDL HEADER, with the 16# fields enclosed by brackets "[]" replaced with your own identifying 17# information: Portions Copyright [yyyy] [name of copyright owner] 18# 19# CDDL HEADER END 20# 21# 22# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 23# Use is subject to license terms. 24# 25# ident "%Z%%M% %I% %E% SMI" 26# 27# This Makefile defines all file modules and build rules for the 28# directory uts/intel and its children. These are the source files which 29# are specific to the intel processor. 30# 31# The following two-level ordering must be maintained in this file. 32# Lines are sorted first in order of decreasing specificity based on 33# the first directory component. That is, sun4u rules come before 34# sparc rules come before common rules. 35# 36# Lines whose initial directory components are equal are sorted 37# alphabetically by the remaining components. 38 39# 40# Section 1a: C object build rules 41# 42$(OBJS_DIR)/%.o: $(SRC)/common/fs/%.c 43 $(COMPILE.c) -o $@ $< 44 $(CTFCONVERT_O) 45 46$(OBJS_DIR)/%.o: $(SRC)/common/util/i386/%.s 47 $(COMPILE.s) -o $@ $< 48 49$(OBJS_DIR)/%.o: $(UTSBASE)/intel/brand/sn1/%.s 50 $(COMPILE.s) -o $@ $< 51 52$(OBJS_DIR)/%.o: $(UTSBASE)/intel/dtrace/%.c 53 $(COMPILE.c) -o $@ $< 54 $(CTFCONVERT_O) 55 56$(OBJS_DIR)/%.o: $(UTSBASE)/intel/dtrace/%.s 57 $(COMPILE.s) -o $@ $< 58 59$(OBJS_DIR)/%.o: $(UTSBASE)/intel/fs/proc/%.c 60 $(COMPILE.c) -o $@ $< 61 $(CTFCONVERT_O) 62 63$(OBJS_DIR)/%.o: $(UTSBASE)/intel/fs/xmemfs/%.c 64 $(COMPILE.c) -o $@ $< 65 $(CTFCONVERT_O) 66 67$(OBJS_DIR)/%.o: $(UTSBASE)/intel/ia32/ml/%.s 68 $(COMPILE.s) -o $@ $< 69 70$(OBJS_DIR)/%.o: $(UTSBASE)/intel/ia32/os/%.c 71 $(COMPILE.c) -o $@ $< 72 $(CTFCONVERT_O) 73 74$(OBJS_DIR)/%.o: $(UTSBASE)/intel/ia32/promif/%.c 75 $(COMPILE.c) -o $@ $< 76 $(CTFCONVERT_O) 77 78$(OBJS_DIR)/%.o: $(UTSBASE)/intel/ia32/syscall/%.c 79 $(COMPILE.c) -o $@ $< 80 $(CTFCONVERT_O) 81 82$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/%.c 83 $(COMPILE.c) -o $@ $< 84 $(CTFCONVERT_O) 85 86$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/aac/%.c 87 $(COMPILE.c) -o $@ $< 88 $(CTFCONVERT_O) 89 90$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/amr/%.c 91 $(COMPILE.c) -o $@ $< 92 $(CTFCONVERT_O) 93 94$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/dktp/controller/ata/%.c 95 $(COMPILE.c) -o $@ $< 96 $(CTFCONVERT_O) 97 98$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/dktp/dcdev/%.c 99 $(COMPILE.c) -o $@ $< 100 $(CTFCONVERT_O) 101 102$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/dktp/disk/%.c 103 $(COMPILE.c) -o $@ $< 104 $(CTFCONVERT_O) 105 106$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/dktp/drvobj/%.c 107 $(COMPILE.c) -o $@ $< 108 $(CTFCONVERT_O) 109 110$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/dktp/hba/ghd/%.c 111 $(COMPILE.c) -o $@ $< 112 $(CTFCONVERT_O) 113 114$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/scsi/targets/%.c 115 $(COMPILE.c) -o $@ $< 116 $(CTFCONVERT_O) 117 118$(OBJS_DIR)/%.o: $(UTSBASE)/intel/io/vgatext/%.c 119 $(COMPILE.c) -o $@ $< 120 $(CTFCONVERT_O) 121 122$(OBJS_DIR)/%.o: $(UTSBASE)/intel/os/%.c 123 $(COMPILE.c) -o $@ $< 124 $(CTFCONVERT_O) 125 126$(OBJS_DIR)/%.o: $(UTSBASE)/intel/pcbe/%.c 127 $(COMPILE.c) -o $@ $< 128 $(CTFCONVERT_O) 129 130$(OBJS_DIR)/%.o: $(UTSBASE)/intel/promif/%.c 131 $(COMPILE.c) -o $@ $< 132 $(CTFCONVERT_O) 133 134$(OBJS_DIR)/%.o: $(UTSBASE)/intel/syscall/%.c 135 $(COMPILE.c) -o $@ $< 136 $(CTFCONVERT_O) 137 138$(OBJS_DIR)/%.o: $(UTSBASE)/common/io/pci_pci/%.c 139 $(COMPILE.c) -o $@ $< 140 $(CTFCONVERT_O) 141 142$(OBJS_DIR)/%.o: $(UTSBASE)/common/os/%.c 143 $(COMPILE.c) -o $@ $< 144 $(CTFCONVERT_O) 145 146# 147# Section 1b: Lint `object' build rules. 148# 149$(LINTS_DIR)/%.ln: $(SRC)/common/fs/%.c 150 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 151 152$(LINTS_DIR)/%.ln: $(SRC)/common/util/i386/%.s 153 @($(LHEAD) $(LINT.s) $< $(LTAIL)) 154 155$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/brand/sn1/%.s 156 @($(LHEAD) $(LINT.s) $< $(LTAIL)) 157 158$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/dtrace/%.c 159 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 160 161$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/dtrace/%.s 162 @($(LHEAD) $(LINT.s) $< $(LTAIL)) 163 164$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/fs/proc/%.c 165 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 166 167$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/fs/xmemfs/%.c 168 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 169 170$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/ia32/ml/%.s 171 @($(LHEAD) $(LINT.s) $< $(LTAIL)) 172 173$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/ia32/os/%.c 174 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 175 176$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/ia32/promif/%.c 177 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 178 179$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/ia32/syscall/%.c 180 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 181 182$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/%.c 183 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 184 185$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/aac/%.c 186 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 187 188$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/amr/%.c 189 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 190 191$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/dktp/controller/ata/%.c 192 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 193 194$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/dktp/dcdev/%.c 195 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 196 197$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/dktp/disk/%.c 198 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 199 200$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/dktp/drvobj/%.c 201 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 202 203$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/dktp/hba/ghd/%.c 204 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 205 206$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/scsi/targets/%.c 207 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 208 209$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/io/vgatext/%.c 210 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 211 212$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/os/%.c 213 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 214 215$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/pcbe/%.c 216 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 217 218$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/promif/%.c 219 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 220 221$(LINTS_DIR)/%.ln: $(UTSBASE)/intel/syscall/%.c 222 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 223 224$(LINTS_DIR)/%.ln: $(UTSBASE)/common/io/pci_pci/%.c 225 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 226 227$(LINTS_DIR)/%.ln: $(UTSBASE)/common/os/%.c 228 @($(LHEAD) $(LINT.c) $< $(LTAIL)) 229