xref: /titanic_41/usr/src/cmd/fs.d/nfs/share/Makefile (revision 9512fe850e98fdd448c638ca63fdd92a8a510255)
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#ident	"%Z%%M%	%I%	%E% SMI"
24#
25#
26# Copyright 1993-1999,2003 Sun Microsystems, Inc.  All rights reserved.
27# Use is subject to license terms.
28#
29
30FSTYPE=		nfs
31LIBPROG=	share
32ATTMK=		$(LIBPROG)
33
34COMMON=		nfs_sec.o sharetab.o nfslog_config.o nfslogtab.o
35LOCAL=		$(LIBPROG).o issubdir.o
36OBJS=		$(LOCAL) $(COMMON)
37SRCS=		$(LOCAL:%.o=%.c) $(COMMON:%.o=../lib/%.c)
38OTHERINSTALL=	$(ROOTETC)/dfs/fstypes
39
40#
41# Message catalog
42#
43POFILE= share.po
44
45
46catalog: $(POFILE)
47
48$(POFILE): $(SRCS)
49	$(RM) $@
50	$(COMPILE.cpp) $(SRCS)   > $(POFILE).i
51	$(XGETTEXT) $(XGETFLAGS)        $(POFILE).i
52	sed "/^domain/d"        messages.po     > $@
53	$(RM) $(POFILE).i messages.po
54
55include		../../Makefile.fstype
56
57LDLIBS +=	-lnsl
58#
59# uncomment to test vol fh
60#
61#CFLAGS +=	-DVOLATILE_FH_TEST
62
63$(ROOTETC)/dfs/fstypes :=	FILEMODE= 644
64$(ROOTETC)/dfs/fstypes :=	OWNER= root
65$(ROOTETC)/dfs/fstypes :=	GROUP= root
66
67$(ROOTETC)/dfs/%: %
68	$(INS.file)
69
70$(LIBPROG):	$(OBJS)
71		$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
72		$(POST_PROCESS)
73
74nfs_sec.o:	../lib/nfs_sec.c
75		$(COMPILE.c) ../lib/nfs_sec.c
76
77sharetab.o:	../lib/sharetab.c
78		$(COMPILE.c) ../lib/sharetab.c
79
80nfslog_config.o:	../lib/nfslog_config.c
81		$(COMPILE.c) ../lib/nfslog_config.c
82
83nfslogtab.o:	../lib/nfslogtab.c
84		$(COMPILE.c) ../lib/nfslogtab.c
85
86lint:	lint_SRCS
87
88clean:
89	$(RM) $(OBJS)
90