Merge remote-tracking branch 'origin/master'
[unleashed/lotheac.git] / usr / src / cmd / fs.d / nfs / showmount / Makefile
blob947394fc36f2bf22475c9e1b9e1202896c2966b7
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License, Version 1.0 only
6 # (the "License"). You may not use this file except in compliance
7 # with the License.
9 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 # or http://www.opensolaris.org/os/licensing.
11 # See the License for the specific language governing permissions
12 # and limitations under the License.
14 # When distributing Covered Code, include this CDDL HEADER in each
15 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 # If applicable, add the following below this CDDL HEADER, with the
17 # fields enclosed by brackets "[]" replaced with your own identifying
18 # information: Portions Copyright [yyyy] [name of copyright owner]
20 # CDDL HEADER END
23 # Copyright (c) 1989 by Sun Microsystems, Inc.
25 # Copyright (c) 2018, Joyent, Inc.
27 FSTYPE= nfs
28 LIBPROG= showmount
29 ATTMK= $(LIBPROG)
31 OTHERINSTALL= $(ROOTUSRSBIN)/$(LIBPROG)
32 LINKVALUE= ../lib/fs/$(FSTYPE)/$(LIBPROG)
34 include ../../Makefile.fstype
36 OBJS= $(LIBPROG).o
37 SRCS= $(OBJS:%.o=%.c)
40 # Message catalog
42 POFILE= showmount.po
44 LDLIBS += -lrpcsvc
46 CERRWARN += -Wno-implicit-function-declaration
47 CERRWARN += -Wno-parentheses
48 CERRWARN += -Wno-unused-variable
49 CERRWARN += -Wno-uninitialized
51 # not linted
52 SMATCH=off
54 $(LIBPROG): $(OBJS)
55 $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
56 $(POST_PROCESS)
59 $(ROOTUSRSBIN)/$(LIBPROG):
60 $(RM) $@; $(SYMLINK) $(LINKVALUE) $@
63 # message catalog
66 catalog: $(POFILE)
68 $(POFILE): $(SRCS)
69 $(RM) $@
70 $(COMPILE.cpp) $(SRCS) > $(POFILE).i
71 $(XGETTEXT) $(XGETFLAGS) $(POFILE).i
72 sed "/^domain/d" messages.po > $@
73 $(RM) messages.po $(POFILE).i
75 clean:
76 $(RM) $(OBJS)