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