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


  25 PROG=           mv
  26 XPG4PROG=       mv
  27 OBJS1=          mv.o
  28 OBJS=           $(OBJS1) getresponse.o
  29 CPFILE=         cp
  30 LNFILE=         ln
  31 XPG4OBJS=       $(OBJS:%.o=xpg4_%.o)
  32 SRCS=           $(OBJS1:%.o=%.c) $(SRC)/common/util/getresponse.c
  33 
  34 ROOTLINKS= $(ROOTBIN)/$(CPFILE) $(ROOTBIN)/$(LNFILE)
  35 ROOTXPG4LINKS= $(ROOTXPG4BIN)/$(CPFILE) $(ROOTXPG4BIN)/$(LNFILE)
  36 
  37 include ../Makefile.cmd
  38 
  39 clean $(XPG4)   := OBJS += values-xpg4.o
  40 
  41 CLOBBERFILES += $(CPFILE) $(LNFILE)
  42 CFLAGS  +=      $(CCVERBOSE)
  43 CERRWARN +=     -_gcc=-Wno-parentheses
  44 CERRWARN +=     -_gcc=-Wno-unused-variable
  45 CERRWARN +=     -_gcc=-Wno-uninitialized
  46 $(XPG4) := CFLAGS += -DXPG4
  47 LINTFLAGS += -DXPG4 -u
  48 XGETFLAGS += -a -x mv.xcl
  49 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util
  50 
  51 lint := LDLIBS += -lcmdutils -lavl -lsec -lnvpair
  52 $(PROG) := LDLIBS += -lcmdutils -lavl -lsec -lnvpair
  53 $(XPG4) := LDLIBS += -lcmdutils -lavl -lsec -lnvpair
  54 
  55 .KEEP_STATE:
  56 
  57 all:    $(PROG) $(CPFILE) $(LNFILE) $(XPG4)
  58 
  59 $(PROG):        $$(OBJS)
  60         $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  61         $(POST_PROCESS)
  62 
  63 $(XPG4):        $$(XPG4OBJS)
  64         $(LINK.c) -o $@ $(XPG4OBJS) $(LDLIBS)
  65         $(POST_PROCESS)




  25 PROG=           mv
  26 XPG4PROG=       mv
  27 OBJS1=          mv.o
  28 OBJS=           $(OBJS1) getresponse.o
  29 CPFILE=         cp
  30 LNFILE=         ln
  31 XPG4OBJS=       $(OBJS:%.o=xpg4_%.o)
  32 SRCS=           $(OBJS1:%.o=%.c) $(SRC)/common/util/getresponse.c
  33 
  34 ROOTLINKS= $(ROOTBIN)/$(CPFILE) $(ROOTBIN)/$(LNFILE)
  35 ROOTXPG4LINKS= $(ROOTXPG4BIN)/$(CPFILE) $(ROOTXPG4BIN)/$(LNFILE)
  36 
  37 include ../Makefile.cmd
  38 
  39 clean $(XPG4)   := OBJS += values-xpg4.o
  40 
  41 CLOBBERFILES += $(CPFILE) $(LNFILE)
  42 CFLAGS  +=      $(CCVERBOSE)
  43 CERRWARN +=     -_gcc=-Wno-parentheses
  44 CERRWARN +=     -_gcc=-Wno-unused-variable
  45 CERRWARN +=     $(CNOWARN_UNINIT)
  46 $(XPG4) := CFLAGS += -DXPG4
  47 LINTFLAGS += -DXPG4 -u
  48 XGETFLAGS += -a -x mv.xcl
  49 CPPFLAGS += -D_FILE_OFFSET_BITS=64 -I $(SRC)/common/util
  50 
  51 lint := LDLIBS += -lcmdutils -lavl -lsec -lnvpair
  52 $(PROG) := LDLIBS += -lcmdutils -lavl -lsec -lnvpair
  53 $(XPG4) := LDLIBS += -lcmdutils -lavl -lsec -lnvpair
  54 
  55 .KEEP_STATE:
  56 
  57 all:    $(PROG) $(CPFILE) $(LNFILE) $(XPG4)
  58 
  59 $(PROG):        $$(OBJS)
  60         $(LINK.c) -o $@ $(OBJS) $(LDLIBS)
  61         $(POST_PROCESS)
  62 
  63 $(XPG4):        $$(XPG4OBJS)
  64         $(LINK.c) -o $@ $(XPG4OBJS) $(LDLIBS)
  65         $(POST_PROCESS)