Print this page
NEX-5204 silence lint and studio warnings that only occur with an adjunct proto
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/pylibbe/Makefile.com
          +++ new/usr/src/lib/pylibbe/Makefile.com
↓ open down ↓ 38 lines elided ↑ open up ↑
  39   39  ROOTPYBEFILES=  $(PYFILES:%=$(ROOTLIBDIR)/%)
  40   40  
  41   41  CSTD=        $(CSTD_GNU99)
  42   42  
  43   43  LIBS =          $(DYNLIB)
  44   44  LDLIBS +=       -lbe -lnvpair -lc
  45   45  CFLAGS +=       $(CCVERBOSE)
  46   46  CPPFLAGS +=     -I$(ADJUNCT_PROTO)/usr/include/python$(PYTHON_VERSION) \
  47   47                  -D_FILE_OFFSET_BITS=64 -I../../libbe/common
  48   48  
       49 +LINTFLAGS +=    -errhdr=no%$(ADJUNCT_PROTO)/usr/include/python2.6
       50 +LINTFLAGS64 +=  -errhdr=no%$(ADJUNCT_PROTO)/usr/include/python2.6
       51 +
  49   52  .KEEP_STATE:
  50   53  
  51   54  all install := LDLIBS += -lpython$(PYTHON_VERSION)
  52   55  
  53   56  all: $(PYOBJS) $(LIBS)
  54   57  
  55   58  install: all $(ROOTPYBEFILES)
  56   59  
  57   60  $(ROOTLIBDIR)/%: %
  58   61          $(INS.pyfile)
  59   62  
  60   63  lint: lintcheck
  61   64  
  62   65  include ../../Makefile.targ
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX