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


  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 
  28 include $(SRC)/cmd/Makefile.cmd
  29 
  30 # xxx should pass -Nlevel=4 (takes 62 minutes of cpu for lib and dump)
  31 LINTFLAGS=      -errchk=%all,longptr64 -errhdr=%user -F -m \
  32                 -Ncheck=%all,no%extern -Nlevel=3 -Xtransition=yes \
  33                 -errtags=yes -erroff=E_UNCAL_F,E_ASGN_RESET -s
  34 # -c: continuation line indentation (broken for multi-line continuations)
  35 # -h: heuristic checks (sometimes wrong)
  36 # -p: extra-picky
  37 # -v: verbose
  38 # -C: ignore header block comments
  39 # -P: check for non-POSIX types
  40 #CSTYLEFLAGS=   -c -h -p -v -P
  41 CSTYLEFLAGS=    -h -p -P
  42 
  43 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  44 CERRWARN +=     -_gcc=-Wno-parentheses
  45 CERRWARN +=     -_gcc=-Wno-uninitialized
  46 CERRWARN +=     -_gcc=-Wno-clobbered
  47 
  48 # not linted
  49 SMATCH=off
  50 
  51 UFSROOTETC=             $(ROOT)/etc
  52 UFSROOTUSR=             $(ROOT)/usr
  53 UFSROOTUSRLIB=          $(UFSROOTUSR)/lib
  54 UFSROOTUSRLIBFS=        $(UFSROOTUSRLIB)/fs
  55 UFSROOTUSRLIBFSTYPE=    $(UFSROOTUSRLIBFS)/$(FSTYPE)
  56 UFSROOTUSRSBIN=         $(UFSROOTUSR)/sbin
  57 
  58 UFSROOTPKGUSRLIBFSTYPE= $(PROG:%=$(UFSROOTUSRLIBFSTYPE)/%)
  59 UFSROOTPKGETC=          $(PROT:%=$(UFSROOTETC)/%)
  60 
  61 $(UFSROOTETC)/%: $(UFSROOTETC) %
  62         $(INS.file)
  63 
  64 $(UFSROOTUSRLIBFSTYPE)/%: $(UFSROOTUSRLIBFSTYPE) %
  65         $(INS.file)


  25 #
  26 # Copyright (c) 2018, Joyent, Inc.
  27 
  28 include $(SRC)/cmd/Makefile.cmd
  29 
  30 # xxx should pass -Nlevel=4 (takes 62 minutes of cpu for lib and dump)
  31 LINTFLAGS=      -errchk=%all,longptr64 -errhdr=%user -F -m \
  32                 -Ncheck=%all,no%extern -Nlevel=3 -Xtransition=yes \
  33                 -errtags=yes -erroff=E_UNCAL_F,E_ASGN_RESET -s
  34 # -c: continuation line indentation (broken for multi-line continuations)
  35 # -h: heuristic checks (sometimes wrong)
  36 # -p: extra-picky
  37 # -v: verbose
  38 # -C: ignore header block comments
  39 # -P: check for non-POSIX types
  40 #CSTYLEFLAGS=   -c -h -p -v -P
  41 CSTYLEFLAGS=    -h -p -P
  42 
  43 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  44 CERRWARN +=     -_gcc=-Wno-parentheses
  45 CERRWARN +=     $(CNOWARN_UNINIT)
  46 CERRWARN +=     -_gcc=-Wno-clobbered
  47 
  48 # not linted
  49 SMATCH=off
  50 
  51 UFSROOTETC=             $(ROOT)/etc
  52 UFSROOTUSR=             $(ROOT)/usr
  53 UFSROOTUSRLIB=          $(UFSROOTUSR)/lib
  54 UFSROOTUSRLIBFS=        $(UFSROOTUSRLIB)/fs
  55 UFSROOTUSRLIBFSTYPE=    $(UFSROOTUSRLIBFS)/$(FSTYPE)
  56 UFSROOTUSRSBIN=         $(UFSROOTUSR)/sbin
  57 
  58 UFSROOTPKGUSRLIBFSTYPE= $(PROG:%=$(UFSROOTUSRLIBFSTYPE)/%)
  59 UFSROOTPKGETC=          $(PROT:%=$(UFSROOTETC)/%)
  60 
  61 $(UFSROOTETC)/%: $(UFSROOTETC) %
  62         $(INS.file)
  63 
  64 $(UFSROOTUSRLIBFSTYPE)/%: $(UFSROOTUSRLIBFSTYPE) %
  65         $(INS.file)