solaris.mk (3b02a9c8) solaris.mk (8e6bd3e9)
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 95 unchanged lines hidden (view full) ---

104 -PIC \
105 -library=no%Cstd \
106
107
108gb_DEBUG_CFLAGS := -g
109
110ifeq ($(gb_DEBUGLEVEL),2)
111gb_COMPILEROPTFLAGS :=
1#**************************************************************
2#
3# Licensed to the Apache Software Foundation (ASF) under one
4# or more contributor license agreements. See the NOTICE file
5# distributed with this work for additional information
6# regarding copyright ownership. The ASF licenses this file
7# to you under the Apache License, Version 2.0 (the
8# "License"); you may not use this file except in compliance

--- 95 unchanged lines hidden (view full) ---

104 -PIC \
105 -library=no%Cstd \
106
107
108gb_DEBUG_CFLAGS := -g
109
110ifeq ($(gb_DEBUGLEVEL),2)
111gb_COMPILEROPTFLAGS :=
112gb_COMPILEROPT1FLAGS :=
112else
113ifeq ($(CPUNAME),INTEL)
114gb_COMPILEROPTFLAGS := -xarch=generic -xO3
113else
114ifeq ($(CPUNAME),INTEL)
115gb_COMPILEROPTFLAGS := -xarch=generic -xO3
116gb_COMPILEROPT1FLAGS := -xarch=generic -xO1
115else # ifeq ($(CPUNAME),SPARC)
116# -m32 -xarch=sparc restrict target to 32 bit sparc
117# -xO3 optimization level 3
118# -xspace don't do optimizations which do increase binary size
119# -xprefetch=yes do prefetching (helps on UltraSparc III)
120gb_COMPILEROPTFLAGS := -m32 -xarch=sparc -xO3 -xspace -xprefetch=yes
117else # ifeq ($(CPUNAME),SPARC)
118# -m32 -xarch=sparc restrict target to 32 bit sparc
119# -xO3 optimization level 3
120# -xspace don't do optimizations which do increase binary size
121# -xprefetch=yes do prefetching (helps on UltraSparc III)
122gb_COMPILEROPTFLAGS := -m32 -xarch=sparc -xO3 -xspace -xprefetch=yes
123gb_COMPILEROPT1FLAGS := -m32 -xarch=sparc -xO1 -xspace -xprefetch=yes
121endif
122endif
123
124gb_COMPILERNOOPTFLAGS :=
125
126# Helper class
127
128gb_Helper_abbreviate_dirs_native = $(gb_Helper_abbreviate_dirs)

--- 22 unchanged lines hidden (view full) ---

151 mkdir -p $(dir $(1)) $(dir $(4)) && \
152 $(gb_CC) \
153 -c $(3) \
154 -o $(1) \
155 -xMMD \
156 -xMF $(4) \
157 $(DEFS) \
158 $(T_CFLAGS) \
124endif
125endif
126
127gb_COMPILERNOOPTFLAGS :=
128
129# Helper class
130
131gb_Helper_abbreviate_dirs_native = $(gb_Helper_abbreviate_dirs)

--- 22 unchanged lines hidden (view full) ---

154 mkdir -p $(dir $(1)) $(dir $(4)) && \
155 $(gb_CC) \
156 -c $(3) \
157 -o $(1) \
158 -xMMD \
159 -xMF $(4) \
160 $(DEFS) \
161 $(T_CFLAGS) \
162 $(CFLAGS) \
159 -I$(dir $(3)) \
160 $(INCLUDE))
161endef
162
163
164# CxxObject class
165
166define gb_CxxObject__command
167$(call gb_Output_announce,$(2),$(true),CXX,3)
168$(call gb_Helper_abbreviate_dirs,\
169 mkdir -p $(dir $(1)) $(dir $(4)) && \
170 $(gb_CXX) \
171 $(DEFS) \
172 $(T_CXXFLAGS) \
163 -I$(dir $(3)) \
164 $(INCLUDE))
165endef
166
167
168# CxxObject class
169
170define gb_CxxObject__command
171$(call gb_Output_announce,$(2),$(true),CXX,3)
172$(call gb_Helper_abbreviate_dirs,\
173 mkdir -p $(dir $(1)) $(dir $(4)) && \
174 $(gb_CXX) \
175 $(DEFS) \
176 $(T_CXXFLAGS) \
177 $(CXXFLAGS) \
173 -c $(3) \
174 -o $(1) \
175 -xMMD \
176 -xMF $(4) \
177 -I$(dir $(3)) \
178 $(INCLUDE_STL) $(INCLUDE))
179endef
180

--- 239 unchanged lines hidden ---
178 -c $(3) \
179 -o $(1) \
180 -xMMD \
181 -xMF $(4) \
182 -I$(dir $(3)) \
183 $(INCLUDE_STL) $(INCLUDE))
184endef
185

--- 239 unchanged lines hidden ---