1*275c9da8Seschrock# 2*275c9da8Seschrock# CDDL HEADER START 3*275c9da8Seschrock# 4*275c9da8Seschrock# The contents of this file are subject to the terms of the 5*275c9da8Seschrock# Common Development and Distribution License (the "License"). 6*275c9da8Seschrock# You may not use this file except in compliance with the License. 7*275c9da8Seschrock# 8*275c9da8Seschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*275c9da8Seschrock# or http://www.opensolaris.org/os/licensing. 10*275c9da8Seschrock# See the License for the specific language governing permissions 11*275c9da8Seschrock# and limitations under the License. 12*275c9da8Seschrock# 13*275c9da8Seschrock# When distributing Covered Code, include this CDDL HEADER in each 14*275c9da8Seschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*275c9da8Seschrock# If applicable, add the following below this CDDL HEADER, with the 16*275c9da8Seschrock# fields enclosed by brackets "[]" replaced with your own identifying 17*275c9da8Seschrock# information: Portions Copyright [yyyy] [name of copyright owner] 18*275c9da8Seschrock# 19*275c9da8Seschrock# CDDL HEADER END 20*275c9da8Seschrock# 21*275c9da8Seschrock 22*275c9da8Seschrock# 23*275c9da8Seschrock# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24*275c9da8Seschrock# Use is subject to license terms. 25*275c9da8Seschrock# 26*275c9da8Seschrock# ident "%Z%%M% %I% %E% SMI" 27*275c9da8Seschrock 28*275c9da8SeschrockLIBRARY = libscsi.a 29*275c9da8SeschrockVERS = .1 30*275c9da8Seschrock 31*275c9da8SeschrockOBJECTS = \ 32*275c9da8Seschrock scsi_engine.o \ 33*275c9da8Seschrock scsi_errno.o \ 34*275c9da8Seschrock scsi_status.o \ 35*275c9da8Seschrock scsi_subr.o 36*275c9da8Seschrock 37*275c9da8Seschrockinclude ../../../Makefile.lib 38*275c9da8Seschrockinclude ../../Makefile.defs 39*275c9da8Seschrock 40*275c9da8SeschrockSRCS = $(OBJECTS:%.o=../common/%.c) 41*275c9da8SeschrockC99MODE = $(C99_ENABLE) 42*275c9da8SeschrockCPPFLAGS += -I../common -I. -D_REENTRANT 43*275c9da8Seschrock$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 44*275c9da8SeschrockCFLAGS += $(CCVERBOSE) 45*275c9da8SeschrockLDLIBS += \ 46*275c9da8Seschrock -lumem \ 47*275c9da8Seschrock -lc 48*275c9da8SeschrockLIBS = $(DYNLIB) $(LINTLIB) 49*275c9da8SeschrockROOTLIBDIR = $(ROOTSCSILIBDIR) 50*275c9da8SeschrockROOTLIBDIR64 = $(ROOTSCSILIBDIR)/$(MACH64) 51*275c9da8Seschrock 52*275c9da8SeschrockCLEANFILES += \ 53*275c9da8Seschrock ../common/scsi_errno.c 54*275c9da8Seschrock 55*275c9da8Seschrock$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 56*275c9da8Seschrock 57*275c9da8Seschrock.KEEP_STATE: 58*275c9da8Seschrock 59*275c9da8Seschrockall : $(LIBS) 60*275c9da8Seschrock 61*275c9da8Seschrocklint : lintcheck 62*275c9da8Seschrock 63*275c9da8Seschrock../common/scsi_errno.c: ../common/mkerrno.sh ../common/libscsi.h 64*275c9da8Seschrock sh ../common/mkerrno.sh < ../common/libscsi.h > $@ 65*275c9da8Seschrock 66*275c9da8Seschrockpics/%.o: ../common/%.c 67*275c9da8Seschrock $(COMPILE.c) -o $@ $< 68*275c9da8Seschrock $(POST_PROCESS_O) 69*275c9da8Seschrock 70*275c9da8Seschrockinclude ../../../Makefile.targ 71*275c9da8Seschrockinclude ../../Makefile.rootdirs 72