128
129 # Optional sub-directory in /usr/lib where BUILDARCH libraries are kept.
130 ISA_DIR=$(ISA_DIR/$(BUILDARCH))
131 ISA_DIR/sparcv9=/sparcv9
132 ISA_DIR/amd64=/amd64
133
134 # Use these to work around compiler bugs:
135 OPT_CFLAGS/SLOWER=-xO3
136 OPT_CFLAGS/O2=-xO2
137 OPT_CFLAGS/NOOPT=-xO1
138
139 # Flags for creating the dependency files.
140 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
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 CFLAGS_WARN = -xwe
149
150 ################################################
151 # Begin current (>=5.9) Forte compiler options #
152 #################################################
153
154 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
155 ifeq ($(Platform_arch), x86)
156 OPT_CFLAGS/NO_TAIL_CALL_OPT = -Wu,-O~yz
157 OPT_CCFLAGS/NO_TAIL_CALL_OPT = -Qoption ube -O~yz
158 OPT_CFLAGS/stubGenerator_x86_32.o = $(OPT_CFLAGS) -xspace
159 OPT_CFLAGS/stubGenerator_x86_64.o = $(OPT_CFLAGS) -xspace
160 endif # Platform_arch == x86
161 ifeq ("${Platform_arch}", "sparc")
162 OPT_CFLAGS/stubGenerator_sparc.o = $(OPT_CFLAGS) -xspace
163 endif
164 endif # COMPILER_REV_NUMERIC >= 509
165
166 #################################################
167 # Begin current (>=5.6) Forte compiler options #
168 #################################################
|
128
129 # Optional sub-directory in /usr/lib where BUILDARCH libraries are kept.
130 ISA_DIR=$(ISA_DIR/$(BUILDARCH))
131 ISA_DIR/sparcv9=/sparcv9
132 ISA_DIR/amd64=/amd64
133
134 # Use these to work around compiler bugs:
135 OPT_CFLAGS/SLOWER=-xO3
136 OPT_CFLAGS/O2=-xO2
137 OPT_CFLAGS/NOOPT=-xO1
138
139 # Flags for creating the dependency files.
140 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
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 #################################################
|