Print this page
11528 Makefile.noget can get gone
11529 Use -Wno-maybe-initialized

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/cmd-inet/usr.bin/nc/Makefile
          +++ new/usr/src/cmd/cmd-inet/usr.bin/nc/Makefile
↓ open down ↓ 23 lines elided ↑ open up ↑
  24   24  #
  25   25  
  26   26  PROG= nc
  27   27  OBJS= atomicio.o netcat.o socks.o
  28   28  
  29   29  SRCS= $(OBJS:%.o=%.c)
  30   30  
  31   31  include         ../../../Makefile.cmd
  32   32  
  33   33  LDLIBS +=       -lresolv -lsocket
  34      -CERRWARN +=     -_gcc=-Wno-uninitialized
       34 +CERRWARN +=     $(CNOWARN_UNINIT)
  35   35  
  36   36  .KEEP_STATE:
  37   37  
  38   38  all: $(PROG)
  39   39  
  40   40  $(PROG): $(OBJS)
  41   41          $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  42   42          $(POST_PROCESS)
  43   43  
  44   44  install: all $(ROOTPROG)
  45   45  
  46   46  clean:
  47   47          $(RM) $(PROG) $(OBJS)
  48   48  
  49   49  lint:   lint_SRCS
  50   50  
  51   51  include         ../../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX