Print this page
3806 illumos build execs echo unnecessarily
Reviewed by: Garrett D'Amore <garrett.damore@gmail.com>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>


   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   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 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.

  23 
  24 
  25 #
  26 #       This makefile contains the common definitions for all sparc
  27 #       implementation architecture independent modules.
  28 #
  29 
  30 #
  31 #       Define supported builds
  32 #
  33 DEF_BUILDS      = $(DEF_BUILDS64)
  34 ALL_BUILDS      = $(ALL_BUILDS64)
  35 
  36 #
  37 #       Everybody needs to know how to build modstubs.o and to locate unix.o.
  38 #       Note that unix.o must currently be selected from among the possible
  39 #       "implementation architectures". Note further, that unix.o is only
  40 #       used as an optional error check for undefines so (theoretically)
  41 #       any "implementation architectures" could be used. We choose sun4u
  42 #       because it is the reference port.


 161 #       Define the actual specific platforms - obviously none.
 162 #
 163 MACHINE_DEFS     =
 164 
 165 #
 166 #       Debugging level
 167 #
 168 #       Special knowledge of which special debugging options effect which
 169 #       file is used to optimize the build if these flags are changed.
 170 #
 171 #       XXX: The above could possibly be done for more flags and files, but
 172 #            is left as an experiment to the interested reader. Be forewarned,
 173 #            that excessive use could lead to maintenance difficulties.
 174 #
 175 DEBUG_DEFS_OBJ32        =
 176 DEBUG_DEFS_DBG32        = -DDEBUG
 177 DEBUG_DEFS_OBJ64        =
 178 DEBUG_DEFS_DBG64        = -DDEBUG
 179 DEBUG_DEFS              = $(DEBUG_DEFS_$(BUILD_TYPE))
 180 
 181 DEBUG_COND_OBJ32        :sh = echo \\043
 182 DEBUG_COND_DBG32        =
 183 DEBUG_COND_OBJ64        :sh = echo \\043
 184 DEBUG_COND_DBG64        =
 185 IF_DEBUG_OBJ            = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
 186 
 187 $(IF_DEBUG_OBJ)syscall.o        :=      DEBUG_DEFS      += -DSYSCALLTRACE
 188 $(IF_DEBUG_OBJ)clock.o          :=      DEBUG_DEFS      += -DKSLICE=1
 189 
 190 # Comment these out if you don't want dispatcher lock statistics.
 191 
 192 # $(IF_DEBUG_OBJ)disp_lock.o    := DEBUG_DEFS   += -DDISP_LOCK_STATS
 193 
 194 #
 195 #       Collect the preprocessor definitions to be associated with *all*
 196 #       files.
 197 #
 198 ALL_DEFS         = $(MACHINE_DEFS) $(DEBUG_DEFS) $(OPTION_DEFS)
 199 #
 200 #
 201 #       The kernels modules which are "implementation architecture"
 202 #       specific for this machine are enumerated below. Note that most
 203 #       of these modules must exist (in one form or another) for each




   3 #
   4 # The contents of this file are subject to the terms of the
   5 # Common Development and Distribution License (the "License").
   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 # Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
  23 # Copyright (c) 2013 Andrew Stormont.  All rights reserved.
  24 
  25 
  26 #
  27 #       This makefile contains the common definitions for all sparc
  28 #       implementation architecture independent modules.
  29 #
  30 
  31 #
  32 #       Define supported builds
  33 #
  34 DEF_BUILDS      = $(DEF_BUILDS64)
  35 ALL_BUILDS      = $(ALL_BUILDS64)
  36 
  37 #
  38 #       Everybody needs to know how to build modstubs.o and to locate unix.o.
  39 #       Note that unix.o must currently be selected from among the possible
  40 #       "implementation architectures". Note further, that unix.o is only
  41 #       used as an optional error check for undefines so (theoretically)
  42 #       any "implementation architectures" could be used. We choose sun4u
  43 #       because it is the reference port.


 162 #       Define the actual specific platforms - obviously none.
 163 #
 164 MACHINE_DEFS     =
 165 
 166 #
 167 #       Debugging level
 168 #
 169 #       Special knowledge of which special debugging options effect which
 170 #       file is used to optimize the build if these flags are changed.
 171 #
 172 #       XXX: The above could possibly be done for more flags and files, but
 173 #            is left as an experiment to the interested reader. Be forewarned,
 174 #            that excessive use could lead to maintenance difficulties.
 175 #
 176 DEBUG_DEFS_OBJ32        =
 177 DEBUG_DEFS_DBG32        = -DDEBUG
 178 DEBUG_DEFS_OBJ64        =
 179 DEBUG_DEFS_DBG64        = -DDEBUG
 180 DEBUG_DEFS              = $(DEBUG_DEFS_$(BUILD_TYPE))
 181 
 182 DEBUG_COND_OBJ32        = $(POUND_SIGN)
 183 DEBUG_COND_DBG32        =
 184 DEBUG_COND_OBJ64        = $(POUND_SIGN)
 185 DEBUG_COND_DBG64        =
 186 IF_DEBUG_OBJ            = $(DEBUG_COND_$(BUILD_TYPE))$(OBJS_DIR)/
 187 
 188 $(IF_DEBUG_OBJ)syscall.o        :=      DEBUG_DEFS      += -DSYSCALLTRACE
 189 $(IF_DEBUG_OBJ)clock.o          :=      DEBUG_DEFS      += -DKSLICE=1
 190 
 191 # Comment these out if you don't want dispatcher lock statistics.
 192 
 193 # $(IF_DEBUG_OBJ)disp_lock.o    := DEBUG_DEFS   += -DDISP_LOCK_STATS
 194 
 195 #
 196 #       Collect the preprocessor definitions to be associated with *all*
 197 #       files.
 198 #
 199 ALL_DEFS         = $(MACHINE_DEFS) $(DEBUG_DEFS) $(OPTION_DEFS)
 200 #
 201 #
 202 #       The kernels modules which are "implementation architecture"
 203 #       specific for this machine are enumerated below. Note that most
 204 #       of these modules must exist (in one form or another) for each