xref: /illumos-gate/usr/src/cmd/fs.d/nfs/nfsref/Makefile (revision 5661bb76)
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#
25*5661bb76SJohn Levon# Copyright (c) 2018, Joyent, Inc.
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
377014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable
387014882cSRichard Lowe
39*5661bb76SJohn Levon# not linted
40*5661bb76SJohn LevonSMATCH=off
41*5661bb76SJohn Levon
422f172c55SRobert ThurlowLDLIBS += -lreparse -lnvpair -lnsl -lumem
432f172c55SRobert Thurlow
442f172c55SRobert Thurlow$(PROG):	$(OBJS)
452f172c55SRobert Thurlow		$(LINK.c) -o $@ $(LDLIBS) $(OBJS)
462f172c55SRobert Thurlow		$(POST_PROCESS)
472f172c55SRobert Thurlow
482f172c55SRobert ThurlowFILEMODE=       0555
492f172c55SRobert Thurlow
502f172c55SRobert Thurlow.KEEP_STATE:
512f172c55SRobert Thurlow
522f172c55SRobert Thurlowall:		$(PROG)
532f172c55SRobert Thurlow
542f172c55SRobert Thurlowref_subr.o:	../lib/ref_subr.c
552f172c55SRobert Thurlow	$(COMPILE.c) ../lib/ref_subr.c
562f172c55SRobert Thurlow
572f172c55SRobert Thurlowinstall:	all $(ROOTUSRSBINPROG)
582f172c55SRobert Thurlow
592f172c55SRobert Thurlowcatalog: $(POFILE)
602f172c55SRobert Thurlow
612f172c55SRobert Thurlow$(POFILE): $(SRCS)
622f172c55SRobert Thurlow	$(RM) $@
632f172c55SRobert Thurlow	$(COMPILE.cpp) $(SRCS)   > $(POFILE).i
642f172c55SRobert Thurlow	$(XGETTEXT)     $(XGETFLAGS) $(POFILE).i
652f172c55SRobert Thurlow	sed "/^domain/d"        messages.po     > $@
662f172c55SRobert Thurlow	$(RM) $(POFILE).i messages.po
672f172c55SRobert Thurlow
682f172c55SRobert Thurlowlint:
692f172c55SRobert Thurlow	$(LINT.c) $(SRCS) $(LDLIBS)
702f172c55SRobert Thurlow
712f172c55SRobert Thurlowclean:
722f172c55SRobert Thurlow	$(RM) $(OBJS)
732f172c55SRobert Thurlow
742f172c55SRobert Thurlowinclude ../../../Makefile.targ