xref: /titanic_51/usr/src/cmd/fs.d/nfs/nfsref/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
12f172c55SRobert Thurlow#
22f172c55SRobert Thurlow# CDDL HEADER START
32f172c55SRobert Thurlow#
42f172c55SRobert Thurlow# The contents of this file are subject to the terms of the
52f172c55SRobert Thurlow# Common Development and Distribution License (the "License").
62f172c55SRobert Thurlow# You may not use this file except in compliance with the License.
72f172c55SRobert Thurlow#
82f172c55SRobert Thurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
92f172c55SRobert Thurlow# or http://www.opensolaris.org/os/licensing.
102f172c55SRobert Thurlow# See the License for the specific language governing permissions
112f172c55SRobert Thurlow# and limitations under the License.
122f172c55SRobert Thurlow#
132f172c55SRobert Thurlow# When distributing Covered Code, include this CDDL HEADER in each
142f172c55SRobert Thurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
152f172c55SRobert Thurlow# If applicable, add the following below this CDDL HEADER, with the
162f172c55SRobert Thurlow# fields enclosed by brackets "[]" replaced with your own identifying
172f172c55SRobert Thurlow# information: Portions Copyright [yyyy] [name of copyright owner]
182f172c55SRobert Thurlow#
192f172c55SRobert Thurlow# CDDL HEADER END
202f172c55SRobert Thurlow#
212f172c55SRobert Thurlow#
222f172c55SRobert Thurlow# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
232f172c55SRobert Thurlow# Use is subject to license terms.
242f172c55SRobert Thurlow#
252f172c55SRobert Thurlow# cmd/fs.d/nfs/nfsref/Makefile
262f172c55SRobert Thurlow
272f172c55SRobert ThurlowPROG=		nfsref
282f172c55SRobert Thurlow
292f172c55SRobert ThurlowPOFILE=		nfsref.po
302f172c55SRobert Thurlow
312f172c55SRobert Thurlowinclude		../../../Makefile.cmd
322f172c55SRobert Thurlow
332f172c55SRobert ThurlowCFLAGS +=	$(CCVERBOSE) -I../lib
342f172c55SRobert ThurlowOBJS=	nfsref.o ref_subr.o
352f172c55SRobert ThurlowSRCS=	nfsref.c
362f172c55SRobert Thurlow
37*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
38*7014882cSRichard Lowe
392f172c55SRobert ThurlowLDLIBS += -lreparse -lnvpair -lnsl -lumem
402f172c55SRobert Thurlow
412f172c55SRobert Thurlow$(PROG):	$(OBJS)
422f172c55SRobert Thurlow		$(LINK.c) -o $@ $(LDLIBS) $(OBJS)
432f172c55SRobert Thurlow		$(POST_PROCESS)
442f172c55SRobert Thurlow
452f172c55SRobert ThurlowFILEMODE=       0555
462f172c55SRobert Thurlow
472f172c55SRobert Thurlow.KEEP_STATE:
482f172c55SRobert Thurlow
492f172c55SRobert Thurlowall:		$(PROG)
502f172c55SRobert Thurlow
512f172c55SRobert Thurlowref_subr.o:	../lib/ref_subr.c
522f172c55SRobert Thurlow	$(COMPILE.c) ../lib/ref_subr.c
532f172c55SRobert Thurlow
542f172c55SRobert Thurlowinstall:	all $(ROOTUSRSBINPROG)
552f172c55SRobert Thurlow
562f172c55SRobert Thurlowcatalog: $(POFILE)
572f172c55SRobert Thurlow
582f172c55SRobert Thurlow$(POFILE): $(SRCS)
592f172c55SRobert Thurlow	$(RM) $@
602f172c55SRobert Thurlow	$(COMPILE.cpp) $(SRCS)   > $(POFILE).i
612f172c55SRobert Thurlow	$(XGETTEXT)     $(XGETFLAGS) $(POFILE).i
622f172c55SRobert Thurlow	sed "/^domain/d"        messages.po     > $@
632f172c55SRobert Thurlow	$(RM) $(POFILE).i messages.po
642f172c55SRobert Thurlow
652f172c55SRobert Thurlowlint:
662f172c55SRobert Thurlow	$(LINT.c) $(SRCS) $(LDLIBS)
672f172c55SRobert Thurlow
682f172c55SRobert Thurlowclean:
692f172c55SRobert Thurlow	$(RM) $(OBJS)
702f172c55SRobert Thurlow
712f172c55SRobert Thurlowinclude ../../../Makefile.targ
72