1#
2# CDDL HEADER START
3#
4# The contents of this file are subject to the terms of the
5# Common Development and Distribution License, Version 1.0 only
6# (the "License").  You may not use this file except in compliance
7# with the License.
8#
9# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10# or http://www.opensolaris.org/os/licensing.
11# See the License for the specific language governing permissions
12# and limitations under the License.
13#
14# When distributing Covered Code, include this CDDL HEADER in each
15# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16# If applicable, add the following below this CDDL HEADER, with the
17# fields enclosed by brackets "[]" replaced with your own identifying
18# information: Portions Copyright [yyyy] [name of copyright owner]
19#
20# CDDL HEADER END
21#
22#
23# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
24# Use is subject to license terms.
25#
26# ident	"%Z%%M%	%I%	%E% SMI"
27#
28
29include $(SRC)/cmd/wbem/Makefile.wbem
30
31OBJECTS	=	Solaris_NFSShare.o \
32		Solaris_NFSShareSecurity.o \
33		Solaris_PersistentShare.o \
34		Solaris_ShareService.o
35
36LINT_OBJS =	$(OBJECTS:%.o=%.ln)
37
38WBEM_PROV =	cmd/wbem/provider/c
39
40GENERAL =	$(ROOTWBEMINC) \
41		$(SRC)/lib/libfsmgt/common \
42		$(SRC)/$(WBEM_PROV)/include \
43		$(SRC)/$(WBEM_PROV)/filesystems/common/cmdgeneration \
44		$(SRC)/$(WBEM_PROV)/filesystems/wbem_nfs/include \
45		$(SRC)/$(WBEM_PROV)/filesystems/wbem_nfs/common
46
47
48CPPFLAGS	+= -I. $(GENERAL:%=-I%) -D_REENTRANT -DPIC -D_TS_ERRNO
49
50CFLAGS		+= $(XREGSFLAG) $(C_BIGPICFLAGS)
51
52LINTFLAGS	+= -um
53LINTLIBS	= $(LDLIBS.cmd)
54
55POFILE		= _nfs_share.po
56MSGFILES	= $(OBJECTS:%.o=%.i)
57
58CLOBBERFILES	+= $(POFILE)
59
60.KEEP_STATE:
61
62all:		$(OBJECTS)
63check:
64		$(CSTYLE) -p -P $(OBJECTS:%.o=%.c) *.h
65		$(HDRCHK) *.h
66clean:
67		$(RM) $(OBJECTS) $(LINT_OBJS) $(MSGFILES)
68
69install:	all
70lint:		$(LINT_OBJS)
71		$(LINT.c) $(LINTFLAGS) $(LINT_OBJS) $(LINTLIBS)
72
73catalog:	$(POFILE)
74
75$(POFILE):	$(MSGFILES)
76	$(BUILDPO.msgfiles)
77
78include $(SRC)/cmd/Makefile.targ
79include $(SRC)/Makefile.msg.targ
80