Print this page
10079 smatch Makefile changes for usr/src/lib


 106 LIBS_standalone = $(STANDLIBRARY)
 107 LIBS_library = $(DYNLIB) $(LINTLIB)
 108 LIBS = $(LIBS_$(CURTYPE))
 109 
 110 MAPFILES =      $(COMDIR)/mapfile-vers
 111 
 112 LDLIBS +=       -lc
 113 
 114 LDFLAGS_standalone = $(ZNOVERSION) $(BREDUCE) -dy -r
 115 LDFLAGS = $(LDFLAGS_$(CURTYPE))
 116 
 117 ASFLAGS_standalone = -DDIS_STANDALONE
 118 ASFLAGS_library =
 119 ASFLAGS += -P $(ASFLAGS_$(CURTYPE)) -D_ASM
 120 
 121 $(LINTLIB) := SRCS = $(COMDIR)/$(LINTSRC)
 122 
 123 CERRWARN +=     -_gcc=-Wno-parentheses
 124 CERRWARN +=     -_gcc=-Wno-uninitialized
 125 



 126 # We want the thread-specific errno in the library, but we don't want it in
 127 # the standalone.  $(DTS_ERRNO) is designed to add -D_TS_ERRNO to $(CPPFLAGS),
 128 # in order to enable this feature.  Conveniently, -D_REENTRANT does the same
 129 # thing.  As such, we null out $(DTS_ERRNO) to ensure that the standalone
 130 # doesn't get it.
 131 DTS_ERRNO=
 132 
 133 CPPFLAGS_standalone = -DDIS_STANDALONE -I$(SRC)/cmd/mdb/common
 134 CPPFLAGS_library = -D_REENTRANT
 135 CPPFLAGS +=     -I$(COMDIR) $(CPPFLAGS_$(CURTYPE))
 136 
 137 # For the x86 disassembler we have to include sources from usr/src/common
 138 CPPFLAGS += -I$(SRC)/common/dis/i386 -DDIS_TEXT
 139 
 140 CFLAGS_standalone = $(STAND_FLAGS_32)
 141 CFLAGS_common =
 142 CFLAGS += $(CFLAGS_$(CURTYPE)) $(CFLAGS_common)
 143 
 144 CFLAGS64_standalone = $(STAND_FLAGS_64)
 145 CFLAGS64 += $(CCVERBOSE) $(CFLAGS64_$(CURTYPE)) $(CFLAGS64_common)


 106 LIBS_standalone = $(STANDLIBRARY)
 107 LIBS_library = $(DYNLIB) $(LINTLIB)
 108 LIBS = $(LIBS_$(CURTYPE))
 109 
 110 MAPFILES =      $(COMDIR)/mapfile-vers
 111 
 112 LDLIBS +=       -lc
 113 
 114 LDFLAGS_standalone = $(ZNOVERSION) $(BREDUCE) -dy -r
 115 LDFLAGS = $(LDFLAGS_$(CURTYPE))
 116 
 117 ASFLAGS_standalone = -DDIS_STANDALONE
 118 ASFLAGS_library =
 119 ASFLAGS += -P $(ASFLAGS_$(CURTYPE)) -D_ASM
 120 
 121 $(LINTLIB) := SRCS = $(COMDIR)/$(LINTSRC)
 122 
 123 CERRWARN +=     -_gcc=-Wno-parentheses
 124 CERRWARN +=     -_gcc=-Wno-uninitialized
 125 
 126 # not linted
 127 SMATCH=off
 128 
 129 # We want the thread-specific errno in the library, but we don't want it in
 130 # the standalone.  $(DTS_ERRNO) is designed to add -D_TS_ERRNO to $(CPPFLAGS),
 131 # in order to enable this feature.  Conveniently, -D_REENTRANT does the same
 132 # thing.  As such, we null out $(DTS_ERRNO) to ensure that the standalone
 133 # doesn't get it.
 134 DTS_ERRNO=
 135 
 136 CPPFLAGS_standalone = -DDIS_STANDALONE -I$(SRC)/cmd/mdb/common
 137 CPPFLAGS_library = -D_REENTRANT
 138 CPPFLAGS +=     -I$(COMDIR) $(CPPFLAGS_$(CURTYPE))
 139 
 140 # For the x86 disassembler we have to include sources from usr/src/common
 141 CPPFLAGS += -I$(SRC)/common/dis/i386 -DDIS_TEXT
 142 
 143 CFLAGS_standalone = $(STAND_FLAGS_32)
 144 CFLAGS_common =
 145 CFLAGS += $(CFLAGS_$(CURTYPE)) $(CFLAGS_common)
 146 
 147 CFLAGS64_standalone = $(STAND_FLAGS_64)
 148 CFLAGS64 += $(CCVERBOSE) $(CFLAGS64_$(CURTYPE)) $(CFLAGS64_common)