< prev index next >

make/solaris/makefiles/sparcWorks.make

Print this page




 141 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d)
 142 endif
 143 
 144 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
 145 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
 146 
 147 # Compiler warnings are treated as errors
 148 WARNINGS_ARE_ERRORS ?= -xwe
 149 CFLAGS_WARN = $(WARNINGS_ARE_ERRORS)
 150 
 151 ################################################
 152 # Begin current (>=5.9) Forte compiler options #
 153 #################################################
 154 
 155 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
 156 ifeq ($(Platform_arch), x86)
 157 OPT_CFLAGS/NO_TAIL_CALL_OPT  = -Wu,-O~yz
 158 OPT_CCFLAGS/NO_TAIL_CALL_OPT = -Qoption ube -O~yz
 159 OPT_CFLAGS/stubGenerator_x86_32.o = $(OPT_CFLAGS) -xspace
 160 OPT_CFLAGS/stubGenerator_x86_64.o = $(OPT_CFLAGS) -xspace






 161 endif # Platform_arch == x86
 162 ifeq ("${Platform_arch}", "sparc")
 163 OPT_CFLAGS/stubGenerator_sparc.o = $(OPT_CFLAGS) -xspace





 164 endif
 165 endif # COMPILER_REV_NUMERIC >= 509
 166 
 167 #################################################
 168 # Begin current (>=5.6) Forte compiler options #
 169 #################################################
 170 
 171 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 506), 1)
 172 
 173 ifeq ("${Platform_arch}", "sparc")
 174 
 175 # We MUST allow data alignment of 4 for sparc (sparcv9 is ok at 8s)
 176 ifndef LP64
 177 CFLAGS += -xmemalign=4s
 178 endif
 179 
 180 endif
 181 
 182 endif
 183 




 141 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d)
 142 endif
 143 
 144 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
 145 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
 146 
 147 # Compiler warnings are treated as errors
 148 WARNINGS_ARE_ERRORS ?= -xwe
 149 CFLAGS_WARN = $(WARNINGS_ARE_ERRORS)
 150 
 151 ################################################
 152 # Begin current (>=5.9) Forte compiler options #
 153 #################################################
 154 
 155 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
 156 ifeq ($(Platform_arch), x86)
 157 OPT_CFLAGS/NO_TAIL_CALL_OPT  = -Wu,-O~yz
 158 OPT_CCFLAGS/NO_TAIL_CALL_OPT = -Qoption ube -O~yz
 159 OPT_CFLAGS/stubGenerator_x86_32.o = $(OPT_CFLAGS) -xspace
 160 OPT_CFLAGS/stubGenerator_x86_64.o = $(OPT_CFLAGS) -xspace
 161 # The debug flag is added to OPT_CFLAGS, but lost in case of per-file overrides
 162 # of OPT_CFLAGS. Restore it here.
 163 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 164    OPT_CFLAGS/stubGenerator_x86_32.o += -g0 -xs
 165    OPT_CFLAGS/stubGenerator_x86_64.o += -g0 -xs
 166 endif
 167 endif # Platform_arch == x86
 168 ifeq ("${Platform_arch}", "sparc")
 169 OPT_CFLAGS/stubGenerator_sparc.o = $(OPT_CFLAGS) -xspace
 170 # The debug flag is added to OPT_CFLAGS, but lost in case of per-file overrides
 171 # of OPT_CFLAGS. Restore it here.
 172 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1)
 173    OPT_CFLAGS/stubGenerator_sparc.o += -g0 -xs
 174 endif
 175 endif
 176 endif # COMPILER_REV_NUMERIC >= 509
 177 
 178 #################################################
 179 # Begin current (>=5.6) Forte compiler options #
 180 #################################################
 181 
 182 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 506), 1)
 183 
 184 ifeq ("${Platform_arch}", "sparc")
 185 
 186 # We MUST allow data alignment of 4 for sparc (sparcv9 is ok at 8s)
 187 ifndef LP64
 188 CFLAGS += -xmemalign=4s
 189 endif
 190 
 191 endif
 192 
 193 endif
 194 


< prev index next >