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


  24 # Copyright (c) 2018, Joyent, Inc.
  25 
  26 MANIFEST =      zonestat.xml
  27 SVCMETHOD =     svc-zonestat
  28 PROG =          zonestatd
  29 
  30 include ../../Makefile.cmd
  31 
  32 ROOTCMDDIR =            $(ROOTLIB)/zones
  33 ROOTMANIFESTDIR =       $(ROOTSVCSYSTEM)
  34 
  35 SRCS =  zonestatd.c
  36 
  37 CPPFLAGS        += -I$(ADJUNCT_PROTO)/usr/include/libxml2
  38 LDLIBS          += -lkstat -lpool -lexacct -lscf \
  39                     -lcontract -lcmdutils -lumem
  40 
  41 LINTFLAGS       += -u
  42 CERRWARN        += -_gcc=-Wno-parentheses
  43 CERRWARN        += -_gcc=-Wno-unused-label
  44 CERRWARN        += -_gcc=-Wno-uninitialized
  45 
  46 # not linted
  47 SMATCH=off
  48 
  49 OBJS =          $(SRCS:%.c=%.o)
  50 
  51 .KEEP_STATE:
  52 
  53 .PARALLEL:
  54 
  55 all: $(PROG)
  56 
  57 install: all $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
  58 
  59 check: $(CHKMANIFEST)
  60 
  61 clean:
  62         $(RM) $(OBJS)
  63 
  64 lint: lint_PROG


  24 # Copyright (c) 2018, Joyent, Inc.
  25 
  26 MANIFEST =      zonestat.xml
  27 SVCMETHOD =     svc-zonestat
  28 PROG =          zonestatd
  29 
  30 include ../../Makefile.cmd
  31 
  32 ROOTCMDDIR =            $(ROOTLIB)/zones
  33 ROOTMANIFESTDIR =       $(ROOTSVCSYSTEM)
  34 
  35 SRCS =  zonestatd.c
  36 
  37 CPPFLAGS        += -I$(ADJUNCT_PROTO)/usr/include/libxml2
  38 LDLIBS          += -lkstat -lpool -lexacct -lscf \
  39                     -lcontract -lcmdutils -lumem
  40 
  41 LINTFLAGS       += -u
  42 CERRWARN        += -_gcc=-Wno-parentheses
  43 CERRWARN        += -_gcc=-Wno-unused-label
  44 CERRWARN        += $(CNOWARN_UNINIT)
  45 
  46 # not linted
  47 SMATCH=off
  48 
  49 OBJS =          $(SRCS:%.c=%.o)
  50 
  51 .KEEP_STATE:
  52 
  53 .PARALLEL:
  54 
  55 all: $(PROG)
  56 
  57 install: all $(ROOTCMD) $(ROOTMANIFEST) $(ROOTSVCMETHOD)
  58 
  59 check: $(CHKMANIFEST)
  60 
  61 clean:
  62         $(RM) $(OBJS)
  63 
  64 lint: lint_PROG