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