xref: /illumos-gate/usr/src/cmd/ndmpstat/Makefile (revision 8226594fdd4479be135127f43632f1f995074654)
1#
2# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
3# Use is subject to license terms.
4#
5# Copyright (c) 2018, Joyent, Inc.
6#
7
8#
9# BSD 3 Clause License
10#
11# Copyright (c) 2007, The Storage Networking Industry Association.
12#
13# Redistribution and use in source and binary forms, with or without
14# modification, are permitted provided that the following conditions
15# are met:
16# 	- Redistributions of source code must retain the above copyright
17#	  notice, this list of conditions and the following disclaimer.
18#
19# 	- Redistributions in binary form must reproduce the above copyright
20#	  notice, this list of conditions and the following disclaimer in
21#	  the documentation and/or other materials provided with the
22#	  distribution.
23#
24#	- Neither the name of The Storage Networking Industry Association (SNIA)
25#	  nor the names of its contributors may be used to endorse or promote
26#	  products derived from this software without specific prior written
27#	  permission.
28#
29# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
30# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
33# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
34# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
35# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
36# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
37# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
38# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
39# POSSIBILITY OF SUCH DAMAGE.
40#
41
42include ../Makefile.cmd
43
44PROG=		ndmpstat
45OBJS=		ndmpstat_main.o
46SRCS =		$(OBJS:.o=.c)
47POFILES=	ndmpstat_main.po
48POFILE=		ndmpstat.po
49
50LDLIBS += -lndmp
51
52SMOFF += signed
53
54.KEEP_STATE:
55
56all: $(PROG)
57
58$(PROG): $(OBJS)
59	$(LINK.c) -o $@ $(OBJS) $(LDLIBS)
60	$(POST_PROCESS)
61
62install: all $(ROOTUSRSBINPROG)
63
64$(POFILE): $(POFILES)
65	$(RM) $@
66	$(CAT) $(POFILES) > $@
67
68clean:
69	$(RM) $(OBJS) $(POFILES)
70
71lint:	lint_SRCS
72
73include ../Makefile.targ
74