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


  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 PROG = iscsiadm
  28 OBJS = cmdparse.o sun_ima.o iscsiadm_main.o
  29 SRCS =$(OBJS:%.o=%.c)
  30 POFILES= $(OBJS:%.o=%.po)
  31 POFILE= iscsiadm.po
  32 
  33 include ../Makefile.cmd
  34 
  35 LDLIBS += -lnsl -ldevinfo -lima
  36 
  37 CPPFLAGS += -DSOLARIS
  38 CPPFLAGS += -I.
  39 
  40 CERRWARN += -_gcc=-Wno-parentheses
  41 CERRWARN += -_gcc=-Wno-unused-variable
  42 CERRWARN += -_gcc=-Wno-unused-function
  43 CERRWARN += -_gcc=-Wno-switch
  44 CERRWARN += -_gcc=-Wno-uninitialized
  45 
  46 # not linted
  47 SMATCH=off
  48 
  49 FILEMODE= 0555
  50 
  51 .KEEP_STATE:
  52 
  53 all: $(PROG)
  54 
  55 install: all $(ROOTUSRSBINPROG)
  56 
  57 $(PROG): $(OBJS) $(COMMON_OBJS)
  58         $(LINK.c) -o $(PROG) $(OBJS) $(COMMON_OBJS) $(LDLIBS)
  59         $(POST_PROCESS)
  60 
  61 lint    := LINTFLAGS += -u -DSOLARIS
  62 lint    := LINTFLAGS64 += -u -DSOLARIS
  63 
  64 lint:   $$(SRCS)


  24 #
  25 # Copyright (c) 2018, Joyent, Inc.
  26 
  27 PROG = iscsiadm
  28 OBJS = cmdparse.o sun_ima.o iscsiadm_main.o
  29 SRCS =$(OBJS:%.o=%.c)
  30 POFILES= $(OBJS:%.o=%.po)
  31 POFILE= iscsiadm.po
  32 
  33 include ../Makefile.cmd
  34 
  35 LDLIBS += -lnsl -ldevinfo -lima
  36 
  37 CPPFLAGS += -DSOLARIS
  38 CPPFLAGS += -I.
  39 
  40 CERRWARN += -_gcc=-Wno-parentheses
  41 CERRWARN += -_gcc=-Wno-unused-variable
  42 CERRWARN += -_gcc=-Wno-unused-function
  43 CERRWARN += -_gcc=-Wno-switch
  44 CERRWARN += $(CNOWARN_UNINIT)
  45 
  46 # not linted
  47 SMATCH=off
  48 
  49 FILEMODE= 0555
  50 
  51 .KEEP_STATE:
  52 
  53 all: $(PROG)
  54 
  55 install: all $(ROOTUSRSBINPROG)
  56 
  57 $(PROG): $(OBJS) $(COMMON_OBJS)
  58         $(LINK.c) -o $(PROG) $(OBJS) $(COMMON_OBJS) $(LDLIBS)
  59         $(POST_PROCESS)
  60 
  61 lint    := LINTFLAGS += -u -DSOLARIS
  62 lint    := LINTFLAGS64 += -u -DSOLARIS
  63 
  64 lint:   $$(SRCS)