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# 28*bb25c06cSjg#ident "%Z%%M% %I% %E% SMI" 299a016c63Sstevel# 309a016c63Sstevel# This makefile drives the production of the sgen driver. 319a016c63Sstevel# sparc architecture dependent 329a016c63Sstevel# 339a016c63Sstevel 349a016c63Sstevel# 359a016c63Sstevel# Path to the base of the uts directory tree (usually /usr/src/uts). 369a016c63Sstevel# 379a016c63SstevelUTSBASE = ../.. 389a016c63Sstevel 399a016c63Sstevel# 409a016c63Sstevel# Define the module and object file sets. 419a016c63Sstevel# 429a016c63SstevelMODULE = sgen 439a016c63SstevelOBJECTS = $(SGEN_OBJS:%=$(OBJS_DIR)/%) 449a016c63SstevelLINTS = $(SGEN_OBJS:%.o=$(LINTS_DIR)/%.ln) 459a016c63SstevelROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 469a016c63SstevelCONF_SRCDIR = $(UTSBASE)/common/io/scsi/targets 479a016c63Sstevel 489a016c63Sstevel# 499a016c63Sstevel# Include common rules. 509a016c63Sstevel# 519a016c63Sstevelinclude $(UTSBASE)/sparc/Makefile.sparc 529a016c63Sstevel 539a016c63Sstevel# 549a016c63Sstevel# Define targets. 559a016c63Sstevel# 569a016c63SstevelALL_TARGET = $(BINARY) $(SRC_CONFILE) 579a016c63SstevelLINT_TARGET = $(MODULE).lint 589a016c63SstevelINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE) 599a016c63Sstevel 609a016c63Sstevel# 619a016c63Sstevel# Note dependancy on misc/scsi. 629a016c63Sstevel# 639a016c63SstevelLDFLAGS += -dy -N"misc/scsi" 649a016c63Sstevel 659a016c63Sstevel# 669a016c63Sstevel# Overrides. 679a016c63Sstevel# 689a016c63SstevelCFLAGS += $(CCVERBOSE) 699a016c63Sstevel 709a016c63Sstevel# 71*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor 72*bb25c06cSjg# to investigate and remove these for maximum lint coverage. 73*bb25c06cSjg# Please do not carry these forward to new Makefiles. 74*bb25c06cSjg# 75*bb25c06cSjgLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 76*bb25c06cSjgLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV 77*bb25c06cSjg 78*bb25c06cSjg# 799a016c63Sstevel# Default build targets. 809a016c63Sstevel# 819a016c63Sstevel.KEEP_STATE: 829a016c63Sstevel 839a016c63Ssteveldef: $(DEF_DEPS) 849a016c63Sstevel 859a016c63Sstevelall: $(ALL_DEPS) 869a016c63Sstevel 879a016c63Sstevelclean: $(CLEAN_DEPS) 889a016c63Sstevel 899a016c63Sstevelclobber: $(CLOBBER_DEPS) 909a016c63Sstevel 919a016c63Sstevellint: $(LINT_DEPS) 929a016c63Sstevel 939a016c63Sstevelmodlintlib: $(MODLINTLIB_DEPS) 949a016c63Sstevel 959a016c63Sstevelclean.lint: $(CLEAN_LINT_DEPS) 969a016c63Sstevel 979a016c63Sstevelinstall: $(INSTALL_DEPS) 989a016c63Sstevel 999a016c63Sstevel# 1009a016c63Sstevel# Include common targets. 1019a016c63Sstevel# 1029a016c63Sstevelinclude $(UTSBASE)/sparc/Makefile.targ 103