xref: /titanic_50/usr/src/lib/libshare/Makefile.com (revision 24424a35444c8487648be681d47bee4f57af0ffc)
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#
216185db85Sdougm#
226185db85Sdougm# ident	"%Z%%M%	%I%	%E% SMI"
236185db85Sdougm#
24*24424a35Sdougm# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
256185db85Sdougm# Use is subject to license terms.
266185db85Sdougm#
276185db85SdougmLIBRARY =	libshare.a
286185db85SdougmVERS =		.1
296185db85SdougmNFSLIB_DIR =	$(SRC)/cmd/fs.d/nfs/lib
306185db85Sdougm
316185db85SdougmLIBOBJS =	libshare.o libsharecore.o scfutil.o libshare_zfs.o \
326185db85Sdougm		plugin.o parser.o issubdir.o
336185db85SdougmOTHOBJS =	sharetab.o nfs_sec.o
346185db85SdougmOBJECTS =	$(LIBOBJS) $(OTHOBJS)
356185db85Sdougm
366185db85Sdougminclude ../../Makefile.lib
37*24424a35SdougmSRCDIR =	../common
386185db85Sdougm
39*24424a35SdougmLIBSRCS =	$(LIBOBJS:%.o=$(SRCDIR)/%.c)
40*24424a35Sdougm# we don't want to lint the sharetab and nfs_sec files
41*24424a35Sdougmlintcheck := SRCS = $(LIBSRCS)
426185db85Sdougm
436185db85SdougmLIBS =		$(DYNLIB) $(LINTLIB)
441cea05afSdougmLDLIBS +=	-lc -lnsl -lscf -lzfs -luuid
455359815fSdougmall install := LDLIBS += -lxml2
466185db85Sdougm$(LINTLIB) :=	SRCS = $(SRCDIR)/$(LINTSRC)
476185db85Sdougm
486185db85Sdougm#add nfs/lib directory as part of the include path
49*24424a35SdougmCFLAGS +=	$(CCVERBOSE)
50*24424a35SdougmCPPFLAGS +=	-D_REENTRANT -I$(NFSLIB_DIR) -I/usr/include/libxml2 \
51*24424a35Sdougm		-I$(SRCDIR)
526185db85Sdougm
536185db85Sdougm.KEEP_STATE:
546185db85Sdougm
556185db85Sdougmall: $(LIBS)
566185db85Sdougm
57*24424a35Sdougmlint: lintcheck
586185db85Sdougm
596185db85Sdougmpics/%.o:	$(NFSLIB_DIR)/%.c
606185db85Sdougm	$(COMPILE.c) -o $@ $<
616185db85Sdougm	$(POST_PROCESS_O)
626185db85Sdougm
636185db85Sdougminclude ../../Makefile.targ
64