549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# CDDL HEADER START
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# The contents of this file are subject to the terms of the
549ec3fff108310966327d1dc9004551b63210b7dougm# Common Development and Distribution License (the "License").
549ec3fff108310966327d1dc9004551b63210b7dougm# You may not use this file except in compliance with the License.
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
549ec3fff108310966327d1dc9004551b63210b7dougm# or http://www.opensolaris.org/os/licensing.
549ec3fff108310966327d1dc9004551b63210b7dougm# See the License for the specific language governing permissions
549ec3fff108310966327d1dc9004551b63210b7dougm# and limitations under the License.
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# When distributing Covered Code, include this CDDL HEADER in each
549ec3fff108310966327d1dc9004551b63210b7dougm# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
549ec3fff108310966327d1dc9004551b63210b7dougm# If applicable, add the following below this CDDL HEADER, with the
549ec3fff108310966327d1dc9004551b63210b7dougm# fields enclosed by brackets "[]" replaced with your own identifying
549ec3fff108310966327d1dc9004551b63210b7dougm# information: Portions Copyright [yyyy] [name of copyright owner]
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm# CDDL HEADER END
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm#
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United States# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
549ec3fff108310966327d1dc9004551b63210b7dougm#
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmLIBRARY = libshare_nfs.a
549ec3fff108310966327d1dc9004551b63210b7dougmVERS = .1
549ec3fff108310966327d1dc9004551b63210b7dougmNFSLIB_DIR = $(SRC)/cmd/fs.d/nfs/lib
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmLIBOBJS = libshare_nfs.o
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United StatesOTHOBJS = nfs_sec.o nfslog_config.o nfslogtab.o smfcfg.o
549ec3fff108310966327d1dc9004551b63210b7dougmOBJECTS = $(LIBOBJS) $(OTHOBJS)
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougminclude ../../../Makefile.lib
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmROOTLIBDIR = $(ROOT)/usr/lib/fs/nfs
549ec3fff108310966327d1dc9004551b63210b7dougmROOTLIBDIR64 = $(ROOT)/usr/lib/fs/nfs/$(MACH64)
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmLIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
549ec3fff108310966327d1dc9004551b63210b7dougm# we don't want to lint the sources for OTHOBJS since they are pre-existing files
549ec3fff108310966327d1dc9004551b63210b7dougm# that are not lint free.
549ec3fff108310966327d1dc9004551b63210b7dougmlintcheck := SRCS = $(LIBSRCS)
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmLIBS = $(DYNLIB)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLDLIBS += -lshare -lnsl -lscf -lumem -lc -lxml2
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougm#add nfs/lib directory as part of the include path
549ec3fff108310966327d1dc9004551b63210b7dougmCFLAGS += $(CCVERBOSE)
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-switch
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-variable
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
494f7e12a62129ef191a15f9dfde6b7abe3bf510Keith M WesolowskiCPPFLAGS += -D_REENTRANT -I$(NFSLIB_DIR) \
494f7e12a62129ef191a15f9dfde6b7abe3bf510Keith M Wesolowski -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I$(SRCDIR)/../common
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougm.KEEP_STATE:
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmall: $(LIBS)
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougminstall: all
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougmlint: lintcheck
549ec3fff108310966327d1dc9004551b63210b7dougm
dd51520e127b452179a2ce4ea3bd8dee949f9afePavan Mettu - Oracle Corporation - Menlo Park United Statespics/%.o: $(NFSLIB_DIR)/%.c
549ec3fff108310966327d1dc9004551b63210b7dougm $(COMPILE.c) -o $@ $<
549ec3fff108310966327d1dc9004551b63210b7dougm $(POST_PROCESS_O)
549ec3fff108310966327d1dc9004551b63210b7dougm
549ec3fff108310966327d1dc9004551b63210b7dougminclude ../../../Makefile.targ