Makefile.defs revision 7014882c6a3672fd0e5d60200af8643ae53c5928
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# CDDL HEADER START
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# The contents of this file are subject to the terms of the
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# Common Development and Distribution License (the "License").
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# You may not use this file except in compliance with the License.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# or http://www.opensolaris.org/os/licensing.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# See the License for the specific language governing permissions
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# and limitations under the License.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# When distributing Covered Code, include this CDDL HEADER in each
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# If applicable, add the following below this CDDL HEADER, with the
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# fields enclosed by brackets "[]" replaced with your own identifying
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# information: Portions Copyright [yyyy] [name of copyright owner]
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock# CDDL HEADER END
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock#
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockSRCS = $(OBJECTS:%.o=../common/%.c)
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockC99MODE = $(C99_ENABLE)
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockCPPFLAGS += -I../common -I. -D_REENTRANT
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock$(NOT_RELEASE_BUILD)CPPFLAGS += -DDEBUG
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockCFLAGS += $(CCVERBOSE)
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-type-limits
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockROOTLIBDIR = $(ROOTSCSILIBDIR)
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockROOTLIBDIR64 = $(ROOTSCSILIBDIR)/$(MACH64)
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockDYNFLAGS32 += -R$(SCSILIBDIR)
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockDYNFLAGS64 += -R$(SCSILIBDIR)/$(MACH64)
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockLDLIBS32 += -L$(ROOTSCSILIBDIR)
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockLDLIBS64 += -L$(ROOTSCSILIBDIR)/$(MACH64)
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockLDLIBS += \
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock -lnvpair \
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock -lscsi \
ac88567a7a5bb7f01cf22cf366bc9d6203e24d7aHyon Kim -lumem \
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock -lc
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockLIBS = $(DYNLIB) $(LINTLIB)
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrockCLEANFILES += \
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock ../common/ses_errno.c
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock
275c9da86e89f8abf71135cf63d9fc23671b2e60eschrock$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)