1*936b7af6Sjw149990# 2*936b7af6Sjw149990# CDDL HEADER START 3*936b7af6Sjw149990# 4*936b7af6Sjw149990# The contents of this file are subject to the terms of the 5*936b7af6Sjw149990# Common Development and Distribution License (the "License"). 6*936b7af6Sjw149990# You may not use this file except in compliance with the License. 7*936b7af6Sjw149990# 8*936b7af6Sjw149990# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*936b7af6Sjw149990# or http://www.opensolaris.org/os/licensing. 10*936b7af6Sjw149990# See the License for the specific language governing permissions 11*936b7af6Sjw149990# and limitations under the License. 12*936b7af6Sjw149990# 13*936b7af6Sjw149990# When distributing Covered Code, include this CDDL HEADER in each 14*936b7af6Sjw149990# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*936b7af6Sjw149990# If applicable, add the following below this CDDL HEADER, with the 16*936b7af6Sjw149990# fields enclosed by brackets "[]" replaced with your own identifying 17*936b7af6Sjw149990# information: Portions Copyright [yyyy] [name of copyright owner] 18*936b7af6Sjw149990# 19*936b7af6Sjw149990# CDDL HEADER END 20*936b7af6Sjw149990# 21*936b7af6Sjw149990 22*936b7af6Sjw149990# 23*936b7af6Sjw149990# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 24*936b7af6Sjw149990# Use is subject to license terms. 25*936b7af6Sjw149990# 26*936b7af6Sjw149990# ident "%Z%%M% %I% %E% SMI" 27*936b7af6Sjw149990# 28*936b7af6Sjw149990 29*936b7af6Sjw149990# 30*936b7af6Sjw149990# This makefile drives the production of the smp driver. 31*936b7af6Sjw149990# intel architecture dependent 32*936b7af6Sjw149990# 33*936b7af6Sjw149990 34*936b7af6Sjw149990# 35*936b7af6Sjw149990# Paths to the base of the uts directory trees 36*936b7af6Sjw149990# 37*936b7af6Sjw149990UTSBASE = ../.. 38*936b7af6Sjw149990 39*936b7af6Sjw149990# 40*936b7af6Sjw149990# Define the module and object file sets. 41*936b7af6Sjw149990# 42*936b7af6Sjw149990MODULE = smp 43*936b7af6Sjw149990OBJECTS = $(SMP_OBJS:%=$(OBJS_DIR)/%) 44*936b7af6Sjw149990LINTS = $(SMP_OBJS:%.o=$(LINTS_DIR)/%.ln) 45*936b7af6Sjw149990ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 46*936b7af6Sjw149990CONF_SRCDIR = $(UTSBASE)/common/io/scsi/targets 47*936b7af6Sjw149990 48*936b7af6Sjw149990# 49*936b7af6Sjw149990# Include common rules. 50*936b7af6Sjw149990# 51*936b7af6Sjw149990include $(UTSBASE)/intel/Makefile.intel 52*936b7af6Sjw149990 53*936b7af6Sjw149990# 54*936b7af6Sjw149990# Define targets. 55*936b7af6Sjw149990# 56*936b7af6Sjw149990ALL_TARGET = $(BINARY) $(SRC_CONFILE) 57*936b7af6Sjw149990LINT_TARGET = $(MODULE).lint 58*936b7af6Sjw149990INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 59*936b7af6Sjw149990 60*936b7af6Sjw149990# 61*936b7af6Sjw149990# Note dependancy on misc/scsi. 62*936b7af6Sjw149990# 63*936b7af6Sjw149990LDFLAGS += -dy -N"misc/scsi" 64*936b7af6Sjw149990 65*936b7af6Sjw149990# 66*936b7af6Sjw149990# Default build targets. 67*936b7af6Sjw149990# 68*936b7af6Sjw149990.KEEP_STATE: 69*936b7af6Sjw149990 70*936b7af6Sjw149990def: $(DEF_DEPS) 71*936b7af6Sjw149990 72*936b7af6Sjw149990all: $(ALL_DEPS) 73*936b7af6Sjw149990 74*936b7af6Sjw149990clean: $(CLEAN_DEPS) 75*936b7af6Sjw149990 76*936b7af6Sjw149990clobber: $(CLOBBER_DEPS) 77*936b7af6Sjw149990 78*936b7af6Sjw149990lint: $(LINT_DEPS) 79*936b7af6Sjw149990 80*936b7af6Sjw149990modlintlib: $(MODLINTLIB_DEPS) 81*936b7af6Sjw149990 82*936b7af6Sjw149990clean.lint: $(CLEAN_LINT_DEPS) 83*936b7af6Sjw149990 84*936b7af6Sjw149990install: $(INSTALL_DEPS) 85*936b7af6Sjw149990 86*936b7af6Sjw149990# 87*936b7af6Sjw149990# Include common targets. 88*936b7af6Sjw149990# 89*936b7af6Sjw149990include $(UTSBASE)/intel/Makefile.targ 90