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


  31 include         ../../Makefile.fstype
  32 
  33 # fsdb has a name clash with main() and libl.so.1.  However, fsdb must
  34 # still export a number of "yy*" (libl) interfaces.  Reduce all other symbols
  35 # to local scope.
  36 MAPFILES +=     $(MAPFILE.INT) $(MAPFILE.LEX) $(MAPFILE.NGB)
  37 MAPOPTS =       $(MAPFILES:%=-M%)
  38 
  39 CPPFLAGS +=     -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
  40 CPPFLAGS +=     -I../fstyp
  41 LDLIBS +=       -lmalloc -ll -ladm
  42 LDFLAGS +=      $(MAPOPTS)
  43 YFLAGS =        "-d"
  44 
  45 LINTFLAGS +=    -erroff=E_STATIC_UNUSED
  46 LINTFLAGS64 +=  -erroff=E_STATIC_UNUSED
  47 
  48 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  49 CERRWARN +=     -_gcc=-Wno-unused-label
  50 CERRWARN +=     -_gcc=-Wno-unused-variable
  51 CERRWARN +=     -_gcc=-Wno-uninitialized
  52 CERRWARN +=     -_gcc=-Wno-unused-value
  53 CERRWARN +=     -_gcc=-Wno-unused-function
  54 
  55 
  56 # not linted
  57 SMATCH=off
  58 
  59 SRCS=   fsdb.c ../fstyp/ud_lib.c
  60 
  61 fsdb : fsdb_yacc.o fsdb_lex.o ud_lib.o fsdb.o $(MAPFILES)
  62         $(LINK.c) -o $@ fsdb.o fsdb_yacc.o fsdb_lex.o \
  63                         ud_lib.o $(LDLIBS)
  64         $(POST_PROCESS)
  65 
  66 fsdb.o : fsdb.c
  67         $(COMPILE.c) -o $@ fsdb.c
  68         $(POST_PROCESS_O)
  69 
  70 ud_lib.o : ../fstyp/ud_lib.c ../fstyp/ud_lib.h
  71         $(COMPILE.c) -o $@ ../fstyp/ud_lib.c




  31 include         ../../Makefile.fstype
  32 
  33 # fsdb has a name clash with main() and libl.so.1.  However, fsdb must
  34 # still export a number of "yy*" (libl) interfaces.  Reduce all other symbols
  35 # to local scope.
  36 MAPFILES +=     $(MAPFILE.INT) $(MAPFILE.LEX) $(MAPFILE.NGB)
  37 MAPOPTS =       $(MAPFILES:%=-M%)
  38 
  39 CPPFLAGS +=     -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
  40 CPPFLAGS +=     -I../fstyp
  41 LDLIBS +=       -lmalloc -ll -ladm
  42 LDFLAGS +=      $(MAPOPTS)
  43 YFLAGS =        "-d"
  44 
  45 LINTFLAGS +=    -erroff=E_STATIC_UNUSED
  46 LINTFLAGS64 +=  -erroff=E_STATIC_UNUSED
  47 
  48 CERRWARN +=     -_gcc=-Wno-implicit-function-declaration
  49 CERRWARN +=     -_gcc=-Wno-unused-label
  50 CERRWARN +=     -_gcc=-Wno-unused-variable
  51 CERRWARN +=     $(CNOWARN_UNINIT)
  52 CERRWARN +=     -_gcc=-Wno-unused-value
  53 CERRWARN +=     -_gcc=-Wno-unused-function
  54 
  55 
  56 # not linted
  57 SMATCH=off
  58 
  59 SRCS=   fsdb.c ../fstyp/ud_lib.c
  60 
  61 fsdb : fsdb_yacc.o fsdb_lex.o ud_lib.o fsdb.o $(MAPFILES)
  62         $(LINK.c) -o $@ fsdb.o fsdb_yacc.o fsdb_lex.o \
  63                         ud_lib.o $(LDLIBS)
  64         $(POST_PROCESS)
  65 
  66 fsdb.o : fsdb.c
  67         $(COMPILE.c) -o $@ fsdb.c
  68         $(POST_PROCESS_O)
  69 
  70 ud_lib.o : ../fstyp/ud_lib.c ../fstyp/ud_lib.h
  71         $(COMPILE.c) -o $@ ../fstyp/ud_lib.c