19a016c63Sstevel# 29a016c63Sstevel# CDDL HEADER START 39a016c63Sstevel# 49a016c63Sstevel# The contents of this file are subject to the terms of the 59a016c63Sstevel# Common Development and Distribution License (the "License"). 69a016c63Sstevel# You may not use this file except in compliance with the License. 79a016c63Sstevel# 89a016c63Sstevel# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 99a016c63Sstevel# or http://www.opensolaris.org/os/licensing. 109a016c63Sstevel# See the License for the specific language governing permissions 119a016c63Sstevel# and limitations under the License. 129a016c63Sstevel# 139a016c63Sstevel# When distributing Covered Code, include this CDDL HEADER in each 149a016c63Sstevel# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 159a016c63Sstevel# If applicable, add the following below this CDDL HEADER, with the 169a016c63Sstevel# fields enclosed by brackets "[]" replaced with your own identifying 179a016c63Sstevel# information: Portions Copyright [yyyy] [name of copyright owner] 189a016c63Sstevel# 199a016c63Sstevel# CDDL HEADER END 209a016c63Sstevel# 219a016c63Sstevel 229a016c63Sstevel# 239a016c63Sstevel# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 249a016c63Sstevel# Use is subject to license terms. 259a016c63Sstevel# 269a016c63Sstevel 279a016c63Sstevel# 289a016c63Sstevel# This makefile drives the production of the sgen driver. 299a016c63Sstevel# intel architecture dependent 309a016c63Sstevel# 319a016c63Sstevel 329a016c63Sstevel# 339a016c63Sstevel# Paths to the base of the uts directory trees 349a016c63Sstevel# 359a016c63SstevelUTSBASE = ../.. 369a016c63Sstevel 379a016c63Sstevel# 389a016c63Sstevel# Define the module and object file sets. 399a016c63Sstevel# 409a016c63SstevelMODULE = sgen 419a016c63SstevelOBJECTS = $(SGEN_OBJS:%=$(OBJS_DIR)/%) 429a016c63SstevelLINTS = $(SGEN_OBJS:%.o=$(LINTS_DIR)/%.ln) 439a016c63SstevelROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 449a016c63SstevelCONF_SRCDIR = $(UTSBASE)/common/io/scsi/targets 459a016c63Sstevel 469a016c63Sstevel# 479a016c63Sstevel# Include common rules. 489a016c63Sstevel# 499a016c63Sstevelinclude $(UTSBASE)/intel/Makefile.intel 509a016c63Sstevel 519a016c63Sstevel# 529a016c63Sstevel# Define targets. 539a016c63Sstevel# 549a016c63SstevelALL_TARGET = $(BINARY) $(SRC_CONFILE) 559a016c63SstevelLINT_TARGET = $(MODULE).lint 569a016c63SstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 579a016c63Sstevel 589a016c63Sstevel# 599a016c63Sstevel# Note dependancy on misc/scsi. 609a016c63Sstevel# 619a016c63SstevelLDFLAGS += -dy -N"misc/scsi" 629a016c63Sstevel 639a016c63Sstevel# 64bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 65bb25c06cSjg# to investigate and remove these for maximum lint coverage. 66bb25c06cSjg# Please do not carry these forward to new Makefiles. 67bb25c06cSjg# 68bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 69bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 70bb25c06cSjg 71*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 72*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 73*7014882cSRichard Lowe 74bb25c06cSjg# 759a016c63Sstevel# Default build targets. 769a016c63Sstevel# 779a016c63Sstevel.KEEP_STATE: 789a016c63Sstevel 799a016c63Ssteveldef: $(DEF_DEPS) 809a016c63Sstevel 819a016c63Sstevelall: $(ALL_DEPS) 829a016c63Sstevel 839a016c63Sstevelclean: $(CLEAN_DEPS) 849a016c63Sstevel 859a016c63Sstevelclobber: $(CLOBBER_DEPS) 869a016c63Sstevel 879a016c63Sstevellint: $(LINT_DEPS) 889a016c63Sstevel 899a016c63Sstevelmodlintlib: $(MODLINTLIB_DEPS) 909a016c63Sstevel 919a016c63Sstevelclean.lint: $(CLEAN_LINT_DEPS) 929a016c63Sstevel 939a016c63Sstevelinstall: $(INSTALL_DEPS) 949a016c63Sstevel 959a016c63Sstevel# 969a016c63Sstevel# Include common targets. 979a016c63Sstevel# 989a016c63Sstevelinclude $(UTSBASE)/intel/Makefile.targ 99