xref: /titanic_44/usr/src/lib/libshare/Makefile.com (revision 494f7e12a62129ef191a15f9dfde6b7abe3bf510)
16185db85Sdougm#
26185db85Sdougm# CDDL HEADER START
36185db85Sdougm#
46185db85Sdougm# The contents of this file are subject to the terms of the
56185db85Sdougm# Common Development and Distribution License (the "License").
66185db85Sdougm# You may not use this file except in compliance with the License.
76185db85Sdougm#
86185db85Sdougm# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
96185db85Sdougm# or http://www.opensolaris.org/os/licensing.
106185db85Sdougm# See the License for the specific language governing permissions
116185db85Sdougm# and limitations under the License.
126185db85Sdougm#
136185db85Sdougm# When distributing Covered Code, include this CDDL HEADER in each
146185db85Sdougm# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
156185db85Sdougm# If applicable, add the following below this CDDL HEADER, with the
166185db85Sdougm# fields enclosed by brackets "[]" replaced with your own identifying
176185db85Sdougm# information: Portions Copyright [yyyy] [name of copyright owner]
186185db85Sdougm#
196185db85Sdougm# CDDL HEADER END
206185db85Sdougm#
21148c5f43SAlan Wright# Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
226185db85Sdougm#
236185db85SdougmLIBRARY =	libshare.a
246185db85SdougmVERS =		.1
256185db85SdougmNFSLIB_DIR =	$(SRC)/cmd/fs.d/nfs/lib
266185db85Sdougm
276185db85SdougmLIBOBJS =	libshare.o libsharecore.o scfutil.o libshare_zfs.o \
286185db85Sdougm		plugin.o parser.o issubdir.o
296185db85SdougmOTHOBJS =	sharetab.o nfs_sec.o
306185db85SdougmOBJECTS =	$(LIBOBJS) $(OTHOBJS)
316185db85Sdougm
326185db85Sdougminclude ../../Makefile.lib
3324424a35SdougmSRCDIR =	../common
346185db85Sdougm
3524424a35SdougmLIBSRCS =	$(LIBOBJS:%.o=$(SRCDIR)/%.c)
3624424a35Sdougm# we don't want to lint the sharetab and nfs_sec files
3724424a35Sdougmlintcheck := SRCS = $(LIBSRCS)
386185db85Sdougm
396185db85SdougmLIBS =		$(DYNLIB) $(LINTLIB)
40148c5f43SAlan WrightLDLIBS +=	-lc -lnsl -lscf -lzfs -luuid -lxml2 -lnvpair
416185db85Sdougm$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
426185db85Sdougm
436185db85Sdougm#add nfs/lib directory as part of the include path
4424424a35SdougmCFLAGS +=	$(CCVERBOSE)
457014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-parentheses
467014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-uninitialized
477014882cSRichard LoweCERRWARN +=	-_gcc=-Wno-switch
48*494f7e12SKeith M WesolowskiCPPFLAGS +=	-D_REENTRANT -I$(NFSLIB_DIR) \
49*494f7e12SKeith M Wesolowski		-I$(ADJUNCT_PROTO)/usr/include/libxml2
506185db85Sdougm
516185db85Sdougm.KEEP_STATE:
526185db85Sdougm
536185db85Sdougmall: $(LIBS)
546185db85Sdougm
5524424a35Sdougmlint: lintcheck
566185db85Sdougm
576185db85Sdougmpics/%.o:	$(NFSLIB_DIR)/%.c
586185db85Sdougm	$(COMPILE.c) -o $@ $<
596185db85Sdougm	$(POST_PROCESS_O)
606185db85Sdougm
616185db85Sdougminclude ../../Makefile.targ
62