Print this page
Reduce lint

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/ptools/Makefile.bld
          +++ new/usr/src/cmd/ptools/Makefile.bld
↓ open down ↓ 107 lines elided ↑ open up ↑
 108  108  CPPFLAGS_pwait =        $(CINC)
 109  109  OBJS_pwait =            $(COBJS)
 110  110  
 111  111  CPPFLAGS_pwdx =         $(CINC)
 112  112  OBJS_pwdx =             $(COBJS)
 113  113  
 114  114  CPPFLAGS +=     $(CPPFLAGS_$(PROG))
 115  115  OBJS +=         $(OBJS_$(PROG))
 116  116  SRCS +=         $(SRCS_$(PROG))
 117  117  
      118 +# For lint, always include ptools_common.c, but suppress the "defined but
      119 +# not used" error, in case a given ptool doesn't need it.
      120 +SRCS +=         ../../common/ptools_common.c
      121 +LINTFLAGS +=    -xerroff=E_NAME_DEF_NOT_USED2
      122 +LINTFLAGS64 +=  -xerroff=E_NAME_DEF_NOT_USED2
      123 +
 118  124  INSTALL_NEW=
 119  125  INSTALL_LEGACY=$(RM) $(ROOTPROCBINSYMLINK) ; \
 120  126          $(LN) -s ../../bin/$(PROG) $(ROOTPROCBINSYMLINK)
 121  127  
 122  128  .KEEP_STATE:
 123  129  
 124  130  elfcap.o:       $(ELFCAP)/elfcap.c
 125  131                  $(COMPILE.c) -o $@ $(ELFCAP)/elfcap.c
 126  132  
 127  133  pmap_common.o:  $(PMAP)/pmap_common.c
↓ open down ↓ 32 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX