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# 255661bb76SJohn 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 37*a5f20e89SToomas SoomeCSTD= $(CSTD_GNU99) 38*a5f20e89SToomas Soome 397014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-variable 407014882cSRichard Lowe 415661bb76SJohn Levon# not linted 425661bb76SJohn LevonSMATCH=off 435661bb76SJohn Levon 442f172c55SRobert ThurlowLDLIBS += -lreparse -lnvpair -lnsl -lumem 452f172c55SRobert Thurlow 462f172c55SRobert Thurlow$(PROG): $(OBJS) 472f172c55SRobert Thurlow $(LINK.c) -o $@ $(LDLIBS) $(OBJS) 482f172c55SRobert Thurlow $(POST_PROCESS) 492f172c55SRobert Thurlow 502f172c55SRobert ThurlowFILEMODE= 0555 512f172c55SRobert Thurlow 522f172c55SRobert Thurlow.KEEP_STATE: 532f172c55SRobert Thurlow 542f172c55SRobert Thurlowall: $(PROG) 552f172c55SRobert Thurlow 562f172c55SRobert Thurlowref_subr.o: ../lib/ref_subr.c 572f172c55SRobert Thurlow $(COMPILE.c) ../lib/ref_subr.c 582f172c55SRobert Thurlow 592f172c55SRobert Thurlowinstall: all $(ROOTUSRSBINPROG) 602f172c55SRobert Thurlow 612f172c55SRobert Thurlowcatalog: $(POFILE) 622f172c55SRobert Thurlow 632f172c55SRobert Thurlow$(POFILE): $(SRCS) 642f172c55SRobert Thurlow $(RM) $@ 652f172c55SRobert Thurlow $(COMPILE.cpp) $(SRCS) > $(POFILE).i 662f172c55SRobert Thurlow $(XGETTEXT) $(XGETFLAGS) $(POFILE).i 672f172c55SRobert Thurlow sed "/^domain/d" messages.po > $@ 682f172c55SRobert Thurlow $(RM) $(POFILE).i messages.po 692f172c55SRobert Thurlow 702f172c55SRobert Thurlowclean: 712f172c55SRobert Thurlow $(RM) $(OBJS) 722f172c55SRobert Thurlow 732f172c55SRobert Thurlowinclude ../../../Makefile.targ 74