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# 25549ec3ffSdougm 26549ec3ffSdougmLIBRARY = libshare_nfs.a 27549ec3ffSdougmVERS = .1 28549ec3ffSdougmNFSLIB_DIR = $(SRC)/cmd/fs.d/nfs/lib 29549ec3ffSdougm 30549ec3ffSdougmLIBOBJS = libshare_nfs.o 31dd51520eSPavan Mettu - Oracle Corporation - Menlo Park United StatesOTHOBJS = nfs_sec.o nfslog_config.o nfslogtab.o smfcfg.o 32549ec3ffSdougmOBJECTS = $(LIBOBJS) $(OTHOBJS) 33549ec3ffSdougm 34549ec3ffSdougminclude ../../../Makefile.lib 35549ec3ffSdougm 36549ec3ffSdougmROOTLIBDIR = $(ROOT)/usr/lib/fs/nfs 37549ec3ffSdougmROOTLIBDIR64 = $(ROOT)/usr/lib/fs/nfs/$(MACH64) 38549ec3ffSdougm 39549ec3ffSdougmLIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c) 40549ec3ffSdougm# we don't want to lint the sources for OTHOBJS since they are pre-existing files 41549ec3ffSdougm# that are not lint free. 42549ec3ffSdougmlintcheck := SRCS = $(LIBSRCS) 43549ec3ffSdougm 44549ec3ffSdougmLIBS = $(DYNLIB) 454bff34e3SthurlowLDLIBS += -lshare -lnsl -lscf -lumem -lc -lxml2 46549ec3ffSdougm 47549ec3ffSdougm#add nfs/lib directory as part of the include path 48549ec3ffSdougmCFLAGS += $(CCVERBOSE) 497014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 507014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 517014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 527014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 53*494f7e12SKeith M WesolowskiCPPFLAGS += -D_REENTRANT -I$(NFSLIB_DIR) \ 54*494f7e12SKeith M Wesolowski -I$(ADJUNCT_PROTO)/usr/include/libxml2 -I$(SRCDIR)/../common 55549ec3ffSdougm 56549ec3ffSdougm.KEEP_STATE: 57549ec3ffSdougm 58549ec3ffSdougmall: $(LIBS) 59549ec3ffSdougm 60549ec3ffSdougminstall: all 61549ec3ffSdougm 62549ec3ffSdougmlint: lintcheck 63549ec3ffSdougm 64549ec3ffSdougmpics/%.o: $(NFSLIB_DIR)/%.c 65549ec3ffSdougm $(COMPILE.c) -o $@ $< 66549ec3ffSdougm $(POST_PROCESS_O) 67549ec3ffSdougm 68549ec3ffSdougminclude ../../../Makefile.targ 69