# SoftRelTools/signed_char.mk # # scott snyder, Feb, 1998. # # Including this scrap after standard.mk will change the compiler default # character type to signed. # # First do it for the C++ compiler. override SIGNED_CHAR_ARCH := $(BFARCH) include SoftRelTools/signed_char_arch_spec.mk SIGNED_CHAR_CXXFLAGS := $(SIGNED_CHAR_FLAGS) override CXXFLAGS += $(SIGNED_CHAR_CXXFLAGS) # Sometimes, we might be using a non-native C++ compiler but the # native C compiler. ifneq (,$(findstring -GCC,$(BFARCH))) ifneq (,$(findstring gcc,$(CC))) else override SIGNED_CHAR_ARCH := $(subst -GCC,-CC,$(BFARCH)) endif else ifneq (,$(findstring -KCC,$(BFARCH))) ifneq (,$(findstring KCC,$(CC))) else override SIGNED_CHAR_ARCH := $(subst -KCC,-CC,$(BFARCH)) endif endif endif # And now the C compiler. include SoftRelTools/signed_char_arch_spec.mk SIGNED_CHAR_CCFLAGS := $(SIGNED_CHAR_FLAGS) override CCFLAGS += $(SIGNED_CHAR_CCFLAGS)