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


  80 LINK_SRCS =     $(LINK_OBJS_CMN:%.o=$(COMMON)/%.c) \
  81                 $(LINK_OBJS_$(MACH):%.o=%.c)
  82 
  83 LINT_MODULES = $(LINK_SRCS:%.c=%.ln)
  84 
  85 LINK_MODS =     $(LINK_OBJS:%.o=SUNW_%.so)
  86 
  87 DEVLINKTAB = devlink.tab
  88 DEVLINKTAB_SRC = $(COMMON)/$(DEVLINKTAB).sh
  89 
  90 COMPAT_LINKS = disks tapes ports audlinks devlinks drvconfig
  91 
  92 CPPFLAGS +=     -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
  93                 -I$(COMMON) -I$(UTSBASE)/common -I$(MODLOADDIR)
  94 CFLAGS += $(CCVERBOSE) $(C_PICFLAGS)
  95 
  96 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
  97 LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
  98 LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
  99 
 100 CERRWARN += -_gcc=-Wno-uninitialized
 101 CERRWARN += -_gcc=-Wno-char-subscripts
 102 CERRWARN += -_gcc=-Wno-parentheses
 103 
 104 # not linted
 105 SMATCH=off
 106 
 107 # Define the dependencies required by devfsadm and all shared objects.
 108 LDLIBS +=               -ldevinfo
 109 devfsadm :=             LDLIBS += -lgen -lsysevent -lnvpair -lzonecfg -lbsm
 110 SUNW_disk_link.so :=    LDLIBS += -ldevid
 111 SUNW_sgen_link.so :=    LDLIBS += -ldevid
 112 
 113 # All libraries are built from the same SUNW_%.so rule (see below), and define
 114 # their own SONAME using -h explicitly.  Null the generic -h macro that gets
 115 # inherited from Makefile.lib, otherwise we'll get two -h definitions.
 116 HSONAME =
 117 
 118 SRCS = $(DEVFSADM_SRC) $(LINK_SRCS)
 119 OBJS = $(DEVFSADM_OBJ) $(LINK_OBJS)
 120 MODS = $(DEVFSADM_MOD) $(LINK_MODS)




  80 LINK_SRCS =     $(LINK_OBJS_CMN:%.o=$(COMMON)/%.c) \
  81                 $(LINK_OBJS_$(MACH):%.o=%.c)
  82 
  83 LINT_MODULES = $(LINK_SRCS:%.c=%.ln)
  84 
  85 LINK_MODS =     $(LINK_OBJS:%.o=SUNW_%.so)
  86 
  87 DEVLINKTAB = devlink.tab
  88 DEVLINKTAB_SRC = $(COMMON)/$(DEVLINKTAB).sh
  89 
  90 COMPAT_LINKS = disks tapes ports audlinks devlinks drvconfig
  91 
  92 CPPFLAGS +=     -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT \
  93                 -I$(COMMON) -I$(UTSBASE)/common -I$(MODLOADDIR)
  94 CFLAGS += $(CCVERBOSE) $(C_PICFLAGS)
  95 
  96 LINTFLAGS += -erroff=E_NAME_USED_NOT_DEF2
  97 LINTFLAGS += -erroff=E_NAME_DEF_NOT_USED2
  98 LINTFLAGS += -erroff=E_NAME_MULTIPLY_DEF2
  99 
 100 CERRWARN += $(CNOWARN_UNINIT)
 101 CERRWARN += -_gcc=-Wno-char-subscripts
 102 CERRWARN += -_gcc=-Wno-parentheses
 103 
 104 # not linted
 105 SMATCH=off
 106 
 107 # Define the dependencies required by devfsadm and all shared objects.
 108 LDLIBS +=               -ldevinfo
 109 devfsadm :=             LDLIBS += -lgen -lsysevent -lnvpair -lzonecfg -lbsm
 110 SUNW_disk_link.so :=    LDLIBS += -ldevid
 111 SUNW_sgen_link.so :=    LDLIBS += -ldevid
 112 
 113 # All libraries are built from the same SUNW_%.so rule (see below), and define
 114 # their own SONAME using -h explicitly.  Null the generic -h macro that gets
 115 # inherited from Makefile.lib, otherwise we'll get two -h definitions.
 116 HSONAME =
 117 
 118 SRCS = $(DEVFSADM_SRC) $(LINK_SRCS)
 119 OBJS = $(DEVFSADM_OBJ) $(LINK_OBJS)
 120 MODS = $(DEVFSADM_MOD) $(LINK_MODS)