xref: /onnv-gate/usr/src/lib/scsi/libses/Makefile.defs (revision 12126:60364f3f65c7)
16316Seschrock#
26316Seschrock# CDDL HEADER START
36316Seschrock#
46316Seschrock# The contents of this file are subject to the terms of the
56316Seschrock# Common Development and Distribution License (the "License").
66316Seschrock# You may not use this file except in compliance with the License.
76316Seschrock#
86316Seschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
96316Seschrock# or http://www.opensolaris.org/os/licensing.
106316Seschrock# See the License for the specific language governing permissions
116316Seschrock# and limitations under the License.
126316Seschrock#
136316Seschrock# When distributing Covered Code, include this CDDL HEADER in each
146316Seschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
156316Seschrock# If applicable, add the following below this CDDL HEADER, with the
166316Seschrock# fields enclosed by brackets "[]" replaced with your own identifying
176316Seschrock# information: Portions Copyright [yyyy] [name of copyright owner]
186316Seschrock#
196316Seschrock# CDDL HEADER END
206316Seschrock#
216316Seschrock
226316Seschrock#
23*12126SHyon.Kim@Sun.COM# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
246316Seschrock#
256316Seschrock
266316SeschrockSRCS = $(OBJECTS:%.o=../common/%.c)
276316SeschrockC99MODE = $(C99_ENABLE)
286316SeschrockCPPFLAGS += -I../common -I. -D_REENTRANT
296316Seschrock$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
306316SeschrockCFLAGS += $(CCVERBOSE)
316316Seschrock
326316SeschrockROOTLIBDIR = $(ROOTSCSILIBDIR)
336316SeschrockROOTLIBDIR64 = $(ROOTSCSILIBDIR)/$(MACH64)
346316Seschrock
356316SeschrockDYNFLAGS32 += -R$(SCSILIBDIR)
366316SeschrockDYNFLAGS64 += -R$(SCSILIBDIR)/$(MACH64)
376316Seschrock
386316SeschrockLDLIBS32 += -L$(ROOTSCSILIBDIR)
396316SeschrockLDLIBS64 += -L$(ROOTSCSILIBDIR)/$(MACH64)
406316Seschrock
416316SeschrockLDLIBS += \
426316Seschrock	-lnvpair \
436316Seschrock	-lscsi \
44*12126SHyon.Kim@Sun.COM	-lumem \
456316Seschrock	-lc
466316Seschrock
476316SeschrockLIBS =		$(DYNLIB) $(LINTLIB)
486316Seschrock
496316SeschrockCLEANFILES += \
506316Seschrock	../common/ses_errno.c
516316Seschrock
526316Seschrock#
536316Seschrock# On SPARC, gcc emits DWARF assembler directives for TLS data that are not
546316Seschrock# understood by the Sun assembler.  Until this problem is fixed, we turn down
556316Seschrock# the amount of generated debugging information, which seems to do the trick.
566316Seschrock#
576316Seschrock$(SPARC_BLD)CTF_FLAGS += -_gcc=-g1
586316Seschrock
596316Seschrock$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
60