1275c9da8Seschrock# 2275c9da8Seschrock# CDDL HEADER START 3275c9da8Seschrock# 4275c9da8Seschrock# The contents of this file are subject to the terms of the 5275c9da8Seschrock# Common Development and Distribution License (the "License"). 6275c9da8Seschrock# You may not use this file except in compliance with the License. 7275c9da8Seschrock# 8275c9da8Seschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9275c9da8Seschrock# or http://www.opensolaris.org/os/licensing. 10275c9da8Seschrock# See the License for the specific language governing permissions 11275c9da8Seschrock# and limitations under the License. 12275c9da8Seschrock# 13275c9da8Seschrock# When distributing Covered Code, include this CDDL HEADER in each 14275c9da8Seschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15275c9da8Seschrock# If applicable, add the following below this CDDL HEADER, with the 16275c9da8Seschrock# fields enclosed by brackets "[]" replaced with your own identifying 17275c9da8Seschrock# information: Portions Copyright [yyyy] [name of copyright owner] 18275c9da8Seschrock# 19275c9da8Seschrock# CDDL HEADER END 20275c9da8Seschrock# 21275c9da8Seschrock 22275c9da8Seschrock# 23275c9da8Seschrock# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24275c9da8Seschrock# Use is subject to license terms. 25275c9da8Seschrock# 26275c9da8Seschrock 27275c9da8SeschrockLIBRARY = libscsi.a 28275c9da8SeschrockVERS = .1 29275c9da8Seschrock 30275c9da8SeschrockOBJECTS = \ 31275c9da8Seschrock scsi_engine.o \ 32275c9da8Seschrock scsi_errno.o \ 33275c9da8Seschrock scsi_status.o \ 34275c9da8Seschrock scsi_subr.o 35275c9da8Seschrock 36275c9da8Seschrockinclude ../../../Makefile.lib 37275c9da8Seschrockinclude ../../Makefile.defs 38275c9da8Seschrock 39275c9da8SeschrockSRCS = $(OBJECTS:%.o=../common/%.c) 40275c9da8SeschrockC99MODE = $(C99_ENABLE) 41275c9da8SeschrockCPPFLAGS += -I../common -I. -D_REENTRANT 42275c9da8Seschrock$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 43275c9da8SeschrockCFLAGS += $(CCVERBOSE) 44*7014882cSRichard Lowe 45*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits 46*7014882cSRichard Lowe 47275c9da8SeschrockLDLIBS += \ 48275c9da8Seschrock -lumem \ 49275c9da8Seschrock -lc 50275c9da8SeschrockLIBS = $(DYNLIB) $(LINTLIB) 51275c9da8SeschrockROOTLIBDIR = $(ROOTSCSILIBDIR) 52275c9da8SeschrockROOTLIBDIR64 = $(ROOTSCSILIBDIR)/$(MACH64) 53275c9da8Seschrock 54275c9da8SeschrockCLEANFILES += \ 55275c9da8Seschrock ../common/scsi_errno.c 56275c9da8Seschrock 57275c9da8Seschrock$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 58275c9da8Seschrock 59275c9da8Seschrock.KEEP_STATE: 60275c9da8Seschrock 61275c9da8Seschrockall : $(LIBS) 62275c9da8Seschrock 63275c9da8Seschrocklint : lintcheck 64275c9da8Seschrock 65275c9da8Seschrock../common/scsi_errno.c: ../common/mkerrno.sh ../common/libscsi.h 66275c9da8Seschrock sh ../common/mkerrno.sh < ../common/libscsi.h > $@ 67275c9da8Seschrock 68275c9da8Seschrockpics/%.o: ../common/%.c 69275c9da8Seschrock $(COMPILE.c) -o $@ $< 70275c9da8Seschrock $(POST_PROCESS_O) 71275c9da8Seschrock 72275c9da8Seschrockinclude ../../../Makefile.targ 73275c9da8Seschrockinclude ../../Makefile.rootdirs 74