Print this page
10051 cw(1) shouldn't have to translate -g

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sort/Makefile.com
          +++ new/usr/src/cmd/sort/Makefile.com
↓ open down ↓ 66 lines elided ↑ open up ↑
  67   67  STATS_OBJS = main.o statistics.o $(BASE_OBJS)
  68   68  
  69   69  XPG4OBJS = $(OBJS:%.o=xpg4_%.o)
  70   70  SRCS =  $(OBJS:%.o=../common/%.c)
  71   71  LNTS =  $(OBJS:%.o=%.ln)
  72   72  CLEANFILES = $(OBJS) $(XPG4OBJS) $(LNTS)
  73   73  
  74   74  include ../../Makefile.cmd
  75   75  
  76   76  SED =           sed
  77      -DCFILE =        $(PROG).dc
       77 +DCFILE =        $(PROG).dc
  78   78  
  79   79  SPACEFLAG =
  80   80  SPACEFLAG64 =
  81   81  
  82   82  CFLAGS +=       $(CCVERBOSE) $(SORT_DEBUG)
  83   83  CFLAGS64 +=     $(CCVERBOSE) $(SORT_DEBUG)
  84   84  CPPFLAGS +=     -D_FILE_OFFSET_BITS=64
  85   85  LINTFLAGS +=    -U_FILE_OFFSET_BITS
  86   86  
  87   87  CERRWARN +=     -_gcc=-Wno-parentheses
  88   88  CERRWARN +=     -_gcc=-Wno-uninitialized
  89   89  CERRWARN +=     -_gcc=-Wno-unused-function
  90   90  
  91   91  $(XPG4) :=      CFLAGS += -DXPG4
  92   92  
  93      -debug :=        SORT_DEBUG = -g -DDEBUG $(ILDOFF)
       93 +debug :=        SORT_DEBUG = $(CCGDEBUG) -DDEBUG $(ILDOFF)
  94   94  debug :=        COPTFLAG =
  95   95  debug :=        COPTFLAG64 =
  96      -stats   :=      SORT_DEBUG = -g -DSTATS -DDEBUG $(ILDOFF)
       96 +stats   :=      SORT_DEBUG = $(CCGDEBUG) -DSTATS -DDEBUG $(ILDOFF)
  97   97  stats   :=      COPTFLAG =
  98   98  stats   :=      COPTFLAG64 =
  99   99  
 100  100  .KEEP_STATE :
 101  101  
 102  102  .PARALLEL : $(OBJS) $(XPG4OBJS) $(LNTS)
 103  103  
 104  104  all : $(PROG) $(XPG4)
 105  105  
 106  106  debug : $(PROG) convert invoke
↓ open down ↓ 42 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX