xref: /illumos-gate/usr/src/lib/scsi/libses/Makefile.defs (revision 241c90a06e8d1708235651863df515a2d522a03a)
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#
23ac88567aSHyon Kim# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
24275c9da8Seschrock#
2544bf619dSJohn Levon# Copyright 2019 Joyent, Inc.
2644bf619dSJohn Levon#
27275c9da8Seschrock
28275c9da8SeschrockSRCS = $(OBJECTS:%.o=../common/%.c)
29bd0ce624SYuri PankovCSTD = $(CSTD_GNU99)
30275c9da8SeschrockCPPFLAGS += -I../common -I. -D_REENTRANT
31275c9da8Seschrock$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
32275c9da8SeschrockCFLAGS += $(CCVERBOSE)
33275c9da8Seschrock
347014882cSRichard LoweCERRWARN += -_gcc=-Wno-type-limits
35d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT)
367014882cSRichard Lowe
3705ede3dbSJohn LevonSMOFF += all_func_returns
3805ede3dbSJohn Levon
39275c9da8SeschrockROOTLIBDIR = $(ROOTSCSILIBDIR)
40275c9da8SeschrockROOTLIBDIR64 = $(ROOTSCSILIBDIR)/$(MACH64)
41275c9da8Seschrock
42275c9da8SeschrockDYNFLAGS32 += -R$(SCSILIBDIR)
43275c9da8SeschrockDYNFLAGS64 += -R$(SCSILIBDIR)/$(MACH64)
44275c9da8Seschrock
45275c9da8SeschrockLDLIBS32 += -L$(ROOTSCSILIBDIR)
46275c9da8SeschrockLDLIBS64 += -L$(ROOTSCSILIBDIR)/$(MACH64)
47275c9da8Seschrock
48275c9da8SeschrockLDLIBS += \
49275c9da8Seschrock	-lnvpair \
50275c9da8Seschrock	-lscsi \
51ac88567aSHyon Kim	-lumem \
52275c9da8Seschrock	-lc
53275c9da8Seschrock
54*241c90a0SRichard LoweLIBS =		$(DYNLIB)
55275c9da8Seschrock
56275c9da8SeschrockCLEANFILES += \
57275c9da8Seschrock	../common/ses_errno.c
58275c9da8Seschrock
59