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*275c9da8SeschrockSRCS = $(OBJECTS:%.o=../common/%.c) 29*275c9da8SeschrockC99MODE = $(C99_ENABLE) 30*275c9da8SeschrockCPPFLAGS += -I../common -I. -D_REENTRANT 31*275c9da8Seschrock$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG 32*275c9da8SeschrockCFLAGS += $(CCVERBOSE) 33*275c9da8Seschrock 34*275c9da8SeschrockROOTLIBDIR = $(ROOTSCSILIBDIR) 35*275c9da8SeschrockROOTLIBDIR64 = $(ROOTSCSILIBDIR)/$(MACH64) 36*275c9da8Seschrock 37*275c9da8SeschrockDYNFLAGS32 += -R$(SCSILIBDIR) 38*275c9da8SeschrockDYNFLAGS64 += -R$(SCSILIBDIR)/$(MACH64) 39*275c9da8Seschrock 40*275c9da8SeschrockLDLIBS32 += -L$(ROOTSCSILIBDIR) 41*275c9da8SeschrockLDLIBS64 += -L$(ROOTSCSILIBDIR)/$(MACH64) 42*275c9da8Seschrock 43*275c9da8SeschrockLDLIBS += \ 44*275c9da8Seschrock -lnvpair \ 45*275c9da8Seschrock -lscsi \ 46*275c9da8Seschrock -lc 47*275c9da8Seschrock 48*275c9da8SeschrockLIBS = $(DYNLIB) $(LINTLIB) 49*275c9da8Seschrock 50*275c9da8SeschrockCLEANFILES += \ 51*275c9da8Seschrock ../common/ses_errno.c 52*275c9da8Seschrock 53*275c9da8Seschrock# 54*275c9da8Seschrock# On SPARC, gcc emits DWARF assembler directives for TLS data that are not 55*275c9da8Seschrock# understood by the Sun assembler. Until this problem is fixed, we turn down 56*275c9da8Seschrock# the amount of generated debugging information, which seems to do the trick. 57*275c9da8Seschrock# 58*275c9da8Seschrock$(SPARC_BLD)CTF_FLAGS += -_gcc=-g1 59*275c9da8Seschrock 60*275c9da8Seschrock$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC) 61