1549ec3ffSdougm#
2549ec3ffSdougm# CDDL HEADER START
3549ec3ffSdougm#
4549ec3ffSdougm# The contents of this file are subject to the terms of the
5549ec3ffSdougm# Common Development and Distribution License (the "License").
6549ec3ffSdougm# You may not use this file except in compliance with the License.
7549ec3ffSdougm#
8549ec3ffSdougm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9549ec3ffSdougm# or http://www.opensolaris.org/os/licensing.
10549ec3ffSdougm# See the License for the specific language governing permissions
11549ec3ffSdougm# and limitations under the License.
12549ec3ffSdougm#
13549ec3ffSdougm# When distributing Covered Code, include this CDDL HEADER in each
14549ec3ffSdougm# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15549ec3ffSdougm# If applicable, add the following below this CDDL HEADER, with the
16549ec3ffSdougm# fields enclosed by brackets "[]" replaced with your own identifying
17549ec3ffSdougm# information: Portions Copyright [yyyy] [name of copyright owner]
18549ec3ffSdougm#
19549ec3ffSdougm# CDDL HEADER END
20549ec3ffSdougm#
21549ec3ffSdougm#
22549ec3ffSdougm#
23dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United States# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
24549ec3ffSdougm#
2505ede3dbSJohn Levon# Copyright (c) 2018, Joyent, Inc.
26549ec3ffSdougm
27549ec3ffSdougmLIBRARY =	libshare_nfs.a
28549ec3ffSdougmVERS =		.1
29549ec3ffSdougmNFSLIB_DIR	= $(SRC)/cmd/fs.d/nfs/lib
30549ec3ffSdougm
31549ec3ffSdougmLIBOBJS =	libshare_nfs.o
32dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesOTHOBJS =	nfs_sec.o nfslog_config.o nfslogtab.o smfcfg.o
33549ec3ffSdougmOBJECTS =	$(LIBOBJS) $(OTHOBJS)
34549ec3ffSdougm
35549ec3ffSdougminclude ../../../Makefile.lib
36549ec3ffSdougm
37549ec3ffSdougmROOTLIBDIR =	$(ROOT)/usr/lib/fs/nfs
38549ec3ffSdougmROOTLIBDIR64 =	$(ROOT)/usr/lib/fs/nfs/$(MACH64)
39549ec3ffSdougm
40549ec3ffSdougmLIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c)
41549ec3ffSdougm
42549ec3ffSdougmLIBS =		$(DYNLIB)
434bff34e3SthurlowLDLIBS +=	-lshare -lnsl -lscf -lumem -lc -lxml2
445801b0f0SToomas SoomeNATIVE_LIBS +=	libxml2.so
45549ec3ffSdougm
46*a5f20e89SToomas SoomeCSTD =		$(CSTD_GNU99)
47*a5f20e89SToomas Soome
48549ec3ffSdougm#add nfs/lib directory as part of the include path
49549ec3ffSdougmCFLAGS +=	$(CCVERBOSE)
50494f7e12SKeith M WesolowskiCPPFLAGS +=	-D_REENTRANT -I$(NFSLIB_DIR) \
51494f7e12SKeith M Wesolowski		-I$(ADJUNCT_PROTO)/usr/include/libxml2 -I$(SRCDIR)/../common
52549ec3ffSdougm
53549ec3ffSdougm.KEEP_STATE:
54549ec3ffSdougm
55549ec3ffSdougmall: $(LIBS)
56549ec3ffSdougm
57549ec3ffSdougminstall: all
58549ec3ffSdougm
59dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United Statespics/%.o:  $(NFSLIB_DIR)/%.c
60549ec3ffSdougm	$(COMPILE.c) -o $@ $<
61549ec3ffSdougm	$(POST_PROCESS_O)
62549ec3ffSdougm
63549ec3ffSdougminclude ../../../Makefile.targ
64