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# ident "%Z%%M% %I% %E% SMI" 23549ec3ffSdougm# 24*4bff34e3Sthurlow# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 25549ec3ffSdougm# Use is subject to license terms. 26549ec3ffSdougm# 27549ec3ffSdougm 28549ec3ffSdougmLIBRARY = libshare_nfs.a 29549ec3ffSdougmVERS = .1 30549ec3ffSdougmNFSLIB_DIR = $(SRC)/cmd/fs.d/nfs/lib 31549ec3ffSdougm 32549ec3ffSdougmLIBOBJS = libshare_nfs.o 33549ec3ffSdougmOTHOBJS = nfs_sec.o nfslog_config.o nfslogtab.o 34549ec3ffSdougmOBJECTS = $(LIBOBJS) $(OTHOBJS) 35549ec3ffSdougm 36549ec3ffSdougminclude ../../../Makefile.lib 37549ec3ffSdougm 38549ec3ffSdougmROOTLIBDIR = $(ROOT)/usr/lib/fs/nfs 39549ec3ffSdougmROOTLIBDIR64 = $(ROOT)/usr/lib/fs/nfs/$(MACH64) 40549ec3ffSdougm 41549ec3ffSdougmLIBSRCS = $(LIBOBJS:%.o=$(SRCDIR)/%.c) 42549ec3ffSdougm# we don't want to lint the sources for OTHOBJS since they are pre-existing files 43549ec3ffSdougm# that are not lint free. 44549ec3ffSdougmlintcheck := SRCS = $(LIBSRCS) 45549ec3ffSdougm 46549ec3ffSdougmLIBS = $(DYNLIB) 47*4bff34e3SthurlowLDLIBS += -lshare -lnsl -lscf -lumem -lc -lxml2 48549ec3ffSdougm 49549ec3ffSdougm#add nfs/lib directory as part of the include path 50549ec3ffSdougmCFLAGS += $(CCVERBOSE) 51549ec3ffSdougmCPPFLAGS += -D_REENTRANT -I$(NFSLIB_DIR) -I/usr/include/libxml2 \ 52549ec3ffSdougm -I$(SRCDIR)/../common 53549ec3ffSdougm 54549ec3ffSdougm.KEEP_STATE: 55549ec3ffSdougm 56549ec3ffSdougmall: $(LIBS) 57549ec3ffSdougm 58549ec3ffSdougminstall: all 59549ec3ffSdougm 60549ec3ffSdougmlint: lintcheck 61549ec3ffSdougm 62549ec3ffSdougmpics/%.o: $(NFSLIB_DIR)/%.c 63549ec3ffSdougm $(COMPILE.c) -o $@ $< 64549ec3ffSdougm $(POST_PROCESS_O) 65549ec3ffSdougm 66549ec3ffSdougminclude ../../../Makefile.targ 67