Print this page
OS-1840 fmdump shall emit JSON (rm feedback)


  40 include ../../Makefile.rootfs
  41 
  42 SRCS=           ../libnvpair.c \
  43                 ../nvpair_alloc_system.c \
  44                 ../nvpair_json.c \
  45                 $(SRC)/common/nvpair/nvpair_alloc_fixed.c \
  46                 $(SRC)/common/nvpair/nvpair.c \
  47                 $(SRC)/common/nvpair/fnvpair.c
  48 
  49 #
  50 # Libraries added to the next line must be present in miniroot
  51 #
  52 LDLIBS +=       -lc -lnsl
  53 LIBS =          $(DYNLIB) $(LINTLIB)
  54 
  55 # turn off ptr-cast warnings
  56 LINTFLAGS64 +=  -erroff=E_BAD_PTR_CAST_ALIGN
  57 
  58 # turn off warning caused by lint bug: not understanding SCNi8 "hhi"
  59 LINTFLAGS +=    -erroff=E_BAD_FORMAT_STR2



  60 LINTFLAGS64 +=  -erroff=E_BAD_FORMAT_STR2



  61 
  62 CERRWARN +=     -_gcc=-Wno-type-limits
  63 CERRWARN +=     -_gcc=-Wno-parentheses
  64 CERRWARN +=     -_gcc=-Wno-uninitialized
  65 
  66 CFLAGS +=       $(CCVERBOSE)
  67 CPPFLAGS +=     -D_REENTRANT
  68 
  69 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  70 
  71 .KEEP_STATE:
  72 
  73 all: $(LIBS)
  74 
  75 lint: lintcheck
  76 
  77 include ../../Makefile.targ
  78 
  79 pics/%.o: $(SRC)/common/nvpair/%.c
  80         $(COMPILE.c) -o $@ $<


  40 include ../../Makefile.rootfs
  41 
  42 SRCS=           ../libnvpair.c \
  43                 ../nvpair_alloc_system.c \
  44                 ../nvpair_json.c \
  45                 $(SRC)/common/nvpair/nvpair_alloc_fixed.c \
  46                 $(SRC)/common/nvpair/nvpair.c \
  47                 $(SRC)/common/nvpair/fnvpair.c
  48 
  49 #
  50 # Libraries added to the next line must be present in miniroot
  51 #
  52 LDLIBS +=       -lc -lnsl
  53 LIBS =          $(DYNLIB) $(LINTLIB)
  54 
  55 # turn off ptr-cast warnings
  56 LINTFLAGS64 +=  -erroff=E_BAD_PTR_CAST_ALIGN
  57 
  58 # turn off warning caused by lint bug: not understanding SCNi8 "hhi"
  59 LINTFLAGS +=    -erroff=E_BAD_FORMAT_STR2
  60 LINTFLAGS +=    -erroff=E_INVALID_TOKEN_IN_DEFINE_MACRO
  61 LINTFLAGS +=    -erroff=E_RET_INT_IMPLICITLY
  62 LINTFLAGS +=    -erroff=E_FUNC_USED_VAR_ARG2
  63 LINTFLAGS64 +=  -erroff=E_BAD_FORMAT_STR2
  64 LINTFLAGS64 +=  -erroff=E_INVALID_TOKEN_IN_DEFINE_MACRO
  65 LINTFLAGS64 +=  -erroff=E_RET_INT_IMPLICITLY
  66 LINTFLAGS64 +=  -erroff=E_FUNC_USED_VAR_ARG2
  67 
  68 CERRWARN +=     -_gcc=-Wno-type-limits
  69 CERRWARN +=     -_gcc=-Wno-parentheses
  70 CERRWARN +=     -_gcc=-Wno-uninitialized
  71 
  72 CFLAGS +=       $(CCVERBOSE)
  73 CPPFLAGS +=     -D_REENTRANT
  74 
  75 $(LINTLIB) :=   SRCS = $(SRCDIR)/$(LINTSRC)
  76 
  77 .KEEP_STATE:
  78 
  79 all: $(LIBS)
  80 
  81 lint: lintcheck
  82 
  83 include ../../Makefile.targ
  84 
  85 pics/%.o: $(SRC)/common/nvpair/%.c
  86         $(COMPILE.c) -o $@ $<