Print this page
10080 smatch Makefile changes for usr/src/cmd
   1 #
   2 # Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
   3 # Use is subject to license terms.
   4 #


   5 
   6 #
   7 # BSD 3 Clause License
   8 #
   9 # Copyright (c) 2007, The Storage Networking Industry Association.
  10 #
  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.
  16 #
  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.
  21 #
  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


  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.
  38 #
  39 
  40 include ../Makefile.cmd
  41 
  42 PROG=           ndmpstat
  43 OBJS=           ndmpstat_main.o
  44 SRCS =          $(OBJS:.o=.c)
  45 POFILES=        ndmpstat_main.po
  46 POFILE=         ndmpstat.po
  47 
  48 LDLIBS += -lndmp
  49 


  50 .KEEP_STATE:
  51 
  52 all: $(PROG)
  53 
  54 $(PROG): $(OBJS)
  55         $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  56         $(POST_PROCESS)
  57 
  58 install: all $(ROOTUSRSBINPROG)
  59 
  60 $(POFILE): $(POFILES)
  61         $(RM) $@
  62         $(CAT) $(POFILES) > $@
  63 
  64 clean:
  65         $(RM) $(OBJS) $(POFILES)
  66 
  67 lint:   lint_SRCS
  68 
  69 include ../Makefile.targ
   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


  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 
  42 include ../Makefile.cmd
  43 
  44 PROG=           ndmpstat
  45 OBJS=           ndmpstat_main.o
  46 SRCS =          $(OBJS:.o=.c)
  47 POFILES=        ndmpstat_main.po
  48 POFILE=         ndmpstat.po
  49 
  50 LDLIBS += -lndmp
  51 
  52 SMOFF += signed
  53 
  54 .KEEP_STATE:
  55 
  56 all: $(PROG)
  57 
  58 $(PROG): $(OBJS)
  59         $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  60         $(POST_PROCESS)
  61 
  62 install: all $(ROOTUSRSBINPROG)
  63 
  64 $(POFILE): $(POFILES)
  65         $(RM) $@
  66         $(CAT) $(POFILES) > $@
  67 
  68 clean:
  69         $(RM) $(OBJS) $(POFILES)
  70 
  71 lint:   lint_SRCS
  72 
  73 include ../Makefile.targ