Print this page
10080 smatch Makefile changes for usr/src/cmd


   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #
  26 
  27 #
  28 # Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
  29 #


  30 
  31 PROG= alias
  32 ALIASPROG= \
  33         bg \
  34         cd \
  35         cksum \
  36         cmp \
  37         comm \
  38         command \
  39         cut \
  40         fc \
  41         fg \
  42         getopts \
  43         hash \
  44         jobs \
  45         join \
  46         kill \
  47         logname \
  48         paste \
  49         print \


  76         test \
  77         type \
  78         ulimit \
  79         umask \
  80         unalias \
  81         wait
  82 
  83 XPG4SH= \
  84         sh
  85 
  86 ROOTXPG4ALIAS= \
  87         $(XPG4SH:%=$(ROOTXPG4BIN)/%) $(XPG4ALIASPROG:%=$(ROOTXPG4BIN)/%)
  88 ROOTALIASPROG= $(ALIASPROG:%=$(ROOTBIN)/%)
  89 
  90 include ../../Makefile.cmd
  91 $(SPARC_BLD)include ../../Makefile.cmd.64
  92 
  93 FILEMODE= 555
  94 CERRWARN += -_gcc=-Wno-parentheses
  95 



  96 .KEEP_STATE:
  97 
  98 all: $(PROG)
  99 
 100 $(XPG4ALIASPROG:%=$(ROOTXPG4BIN)/%):
 101         $(RM) $@; $(SYMLINK) ../../bin/alias $@
 102 
 103 $(XPG4SH:%=$(ROOTXPG4BIN)/%):
 104         $(RM) $@; $(SYMLINK) ../../bin/ksh93 $@
 105 
 106 $(ALIASPROG:%=$(ROOTBIN)/%): $(ROOTPROG)
 107         $(RM) $@; $(LN) $(ROOTPROG) $@
 108 
 109 .KEEP_STATE:
 110 
 111 # Set common AST build flags (e.g., needed to support the math stuff).
 112 include ../../../Makefile.ast
 113 
 114 OBJECTS= \
 115         alias.o




   6 # You may not use this file except in compliance with the License.
   7 #
   8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
   9 # or http://www.opensolaris.org/os/licensing.
  10 # See the License for the specific language governing permissions
  11 # and limitations under the License.
  12 #
  13 # When distributing Covered Code, include this CDDL HEADER in each
  14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15 # If applicable, add the following below this CDDL HEADER, with the
  16 # fields enclosed by brackets "[]" replaced with your own identifying
  17 # information: Portions Copyright [yyyy] [name of copyright owner]
  18 #
  19 # CDDL HEADER END
  20 #
  21 
  22 #
  23 # Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24 # Use is subject to license terms.
  25 #


  26 # Copyright 2010 Nexenta Systems, Inc.  All rights reserved.
  27 #
  28 # Copyright (c) 2018, Joyent, Inc.
  29 #
  30 
  31 PROG= alias
  32 ALIASPROG= \
  33         bg \
  34         cd \
  35         cksum \
  36         cmp \
  37         comm \
  38         command \
  39         cut \
  40         fc \
  41         fg \
  42         getopts \
  43         hash \
  44         jobs \
  45         join \
  46         kill \
  47         logname \
  48         paste \
  49         print \


  76         test \
  77         type \
  78         ulimit \
  79         umask \
  80         unalias \
  81         wait
  82 
  83 XPG4SH= \
  84         sh
  85 
  86 ROOTXPG4ALIAS= \
  87         $(XPG4SH:%=$(ROOTXPG4BIN)/%) $(XPG4ALIASPROG:%=$(ROOTXPG4BIN)/%)
  88 ROOTALIASPROG= $(ALIASPROG:%=$(ROOTBIN)/%)
  89 
  90 include ../../Makefile.cmd
  91 $(SPARC_BLD)include ../../Makefile.cmd.64
  92 
  93 FILEMODE= 555
  94 CERRWARN += -_gcc=-Wno-parentheses
  95 
  96 # not linted
  97 SMATCH=off
  98 
  99 .KEEP_STATE:
 100 
 101 all: $(PROG)
 102 
 103 $(XPG4ALIASPROG:%=$(ROOTXPG4BIN)/%):
 104         $(RM) $@; $(SYMLINK) ../../bin/alias $@
 105 
 106 $(XPG4SH:%=$(ROOTXPG4BIN)/%):
 107         $(RM) $@; $(SYMLINK) ../../bin/ksh93 $@
 108 
 109 $(ALIASPROG:%=$(ROOTBIN)/%): $(ROOTPROG)
 110         $(RM) $@; $(LN) $(ROOTPROG) $@
 111 
 112 .KEEP_STATE:
 113 
 114 # Set common AST build flags (e.g., needed to support the math stuff).
 115 include ../../../Makefile.ast
 116 
 117 OBJECTS= \
 118         alias.o