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)/%) 429a016c63SstevelROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 439a016c63SstevelCONF_SRCDIR = $(UTSBASE)/common/io/scsi/targets 449a016c63Sstevel 459a016c63Sstevel# 469a016c63Sstevel# Include common rules. 479a016c63Sstevel# 489a016c63Sstevelinclude $(UTSBASE)/intel/Makefile.intel 499a016c63Sstevel 509a016c63Sstevel# 519a016c63Sstevel# Define targets. 529a016c63Sstevel# 539a016c63SstevelALL_TARGET = $(BINARY) $(SRC_CONFILE) 549a016c63SstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 559a016c63Sstevel 569a016c63Sstevel# 579a016c63Sstevel# Note dependancy on misc/scsi. 589a016c63Sstevel# 59*82d0151aSRichard LoweLDFLAGS += -Nmisc/scsi 609a016c63Sstevel 61bb25c06cSjg# 620aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor 630aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage. 64bb25c06cSjg# Please do not carry these forward to new Makefiles. 65bb25c06cSjg# 66bb25c06cSjg 677014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 68d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 697014882cSRichard Lowe 709a016c63Sstevel# 719a016c63Sstevel# Default build targets. 729a016c63Sstevel# 739a016c63Sstevel.KEEP_STATE: 749a016c63Sstevel 759a016c63Ssteveldef: $(DEF_DEPS) 769a016c63Sstevel 779a016c63Sstevelall: $(ALL_DEPS) 789a016c63Sstevel 799a016c63Sstevelclean: $(CLEAN_DEPS) 809a016c63Sstevel 819a016c63Sstevelclobber: $(CLOBBER_DEPS) 829a016c63Sstevel 839a016c63Sstevelinstall: $(INSTALL_DEPS) 849a016c63Sstevel 859a016c63Sstevel# 869a016c63Sstevel# Include common targets. 879a016c63Sstevel# 889a016c63Sstevelinclude $(UTSBASE)/intel/Makefile.targ 89