xref: /onnv-gate/usr/src/cmd/fs.d/nfs/nfsref/Makefile (revision 11291:80bdcd03e626)
1*11291SRobert.Thurlow@Sun.COM#
2*11291SRobert.Thurlow@Sun.COM# CDDL HEADER START
3*11291SRobert.Thurlow@Sun.COM#
4*11291SRobert.Thurlow@Sun.COM# The contents of this file are subject to the terms of the
5*11291SRobert.Thurlow@Sun.COM# Common Development and Distribution License (the "License").
6*11291SRobert.Thurlow@Sun.COM# You may not use this file except in compliance with the License.
7*11291SRobert.Thurlow@Sun.COM#
8*11291SRobert.Thurlow@Sun.COM# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*11291SRobert.Thurlow@Sun.COM# or http://www.opensolaris.org/os/licensing.
10*11291SRobert.Thurlow@Sun.COM# See the License for the specific language governing permissions
11*11291SRobert.Thurlow@Sun.COM# and limitations under the License.
12*11291SRobert.Thurlow@Sun.COM#
13*11291SRobert.Thurlow@Sun.COM# When distributing Covered Code, include this CDDL HEADER in each
14*11291SRobert.Thurlow@Sun.COM# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*11291SRobert.Thurlow@Sun.COM# If applicable, add the following below this CDDL HEADER, with the
16*11291SRobert.Thurlow@Sun.COM# fields enclosed by brackets "[]" replaced with your own identifying
17*11291SRobert.Thurlow@Sun.COM# information: Portions Copyright [yyyy] [name of copyright owner]
18*11291SRobert.Thurlow@Sun.COM#
19*11291SRobert.Thurlow@Sun.COM# CDDL HEADER END
20*11291SRobert.Thurlow@Sun.COM#
21*11291SRobert.Thurlow@Sun.COM#
22*11291SRobert.Thurlow@Sun.COM# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*11291SRobert.Thurlow@Sun.COM# Use is subject to license terms.
24*11291SRobert.Thurlow@Sun.COM#
25*11291SRobert.Thurlow@Sun.COM# cmd/fs.d/nfs/nfsref/Makefile
26*11291SRobert.Thurlow@Sun.COM
27*11291SRobert.Thurlow@Sun.COMPROG=		nfsref
28*11291SRobert.Thurlow@Sun.COM
29*11291SRobert.Thurlow@Sun.COMPOFILE=		nfsref.po
30*11291SRobert.Thurlow@Sun.COM
31*11291SRobert.Thurlow@Sun.COMinclude		../../../Makefile.cmd
32*11291SRobert.Thurlow@Sun.COM
33*11291SRobert.Thurlow@Sun.COMCFLAGS +=	$(CCVERBOSE) -I../lib
34*11291SRobert.Thurlow@Sun.COMOBJS=	nfsref.o ref_subr.o
35*11291SRobert.Thurlow@Sun.COMSRCS=	nfsref.c
36*11291SRobert.Thurlow@Sun.COM
37*11291SRobert.Thurlow@Sun.COMLDLIBS += -lreparse -lnvpair -lnsl -lumem
38*11291SRobert.Thurlow@Sun.COM
39*11291SRobert.Thurlow@Sun.COM$(PROG):	$(OBJS)
40*11291SRobert.Thurlow@Sun.COM		$(LINK.c) -o $@ $(LDLIBS) $(OBJS)
41*11291SRobert.Thurlow@Sun.COM		$(POST_PROCESS)
42*11291SRobert.Thurlow@Sun.COM
43*11291SRobert.Thurlow@Sun.COMFILEMODE=       0555
44*11291SRobert.Thurlow@Sun.COM
45*11291SRobert.Thurlow@Sun.COM.KEEP_STATE:
46*11291SRobert.Thurlow@Sun.COM
47*11291SRobert.Thurlow@Sun.COMall:		$(PROG)
48*11291SRobert.Thurlow@Sun.COM
49*11291SRobert.Thurlow@Sun.COMref_subr.o:	../lib/ref_subr.c
50*11291SRobert.Thurlow@Sun.COM	$(COMPILE.c) ../lib/ref_subr.c
51*11291SRobert.Thurlow@Sun.COM
52*11291SRobert.Thurlow@Sun.COMinstall:	all $(ROOTUSRSBINPROG)
53*11291SRobert.Thurlow@Sun.COM
54*11291SRobert.Thurlow@Sun.COMcatalog: $(POFILE)
55*11291SRobert.Thurlow@Sun.COM
56*11291SRobert.Thurlow@Sun.COM$(POFILE): $(SRCS)
57*11291SRobert.Thurlow@Sun.COM	$(RM) $@
58*11291SRobert.Thurlow@Sun.COM	$(COMPILE.cpp) $(SRCS)   > $(POFILE).i
59*11291SRobert.Thurlow@Sun.COM	$(XGETTEXT)     $(XGETFLAGS) $(POFILE).i
60*11291SRobert.Thurlow@Sun.COM	sed "/^domain/d"        messages.po     > $@
61*11291SRobert.Thurlow@Sun.COM	$(RM) $(POFILE).i messages.po
62*11291SRobert.Thurlow@Sun.COM
63*11291SRobert.Thurlow@Sun.COMlint:
64*11291SRobert.Thurlow@Sun.COM	$(LINT.c) $(SRCS) $(LDLIBS)
65*11291SRobert.Thurlow@Sun.COM
66*11291SRobert.Thurlow@Sun.COMclean:
67*11291SRobert.Thurlow@Sun.COM	$(RM) $(OBJS)
68*11291SRobert.Thurlow@Sun.COM
69*11291SRobert.Thurlow@Sun.COMinclude ../../../Makefile.targ
70