make/linux/makefiles/gcc.make

changeset 3325
f4414323345f
parent 3229
95009f678859
child 3518
719f7007c8e8
equal deleted inserted replaced
3324:f1391adc6681 3325:f4414323345f
48 48
49 # check for precompiled headers support 49 # check for precompiled headers support
50 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0" 50 ifneq "$(shell expr \( $(CC_VER_MAJOR) \> 3 \) \| \( \( $(CC_VER_MAJOR) = 3 \) \& \( $(CC_VER_MINOR) \>= 4 \) \))" "0"
51 # Allow the user to turn off precompiled headers from the command line. 51 # Allow the user to turn off precompiled headers from the command line.
52 ifneq ($(USE_PRECOMPILED_HEADER),0) 52 ifneq ($(USE_PRECOMPILED_HEADER),0)
53 USE_PRECOMPILED_HEADER=1
54 PRECOMPILED_HEADER_DIR=. 53 PRECOMPILED_HEADER_DIR=.
55 PRECOMPILED_HEADER_SRC=$(GAMMADIR)/src/share/vm/precompiled/precompiled.hpp 54 PRECOMPILED_HEADER_SRC=$(GAMMADIR)/src/share/vm/precompiled/precompiled.hpp
56 PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/precompiled.hpp.gch 55 PRECOMPILED_HEADER=$(PRECOMPILED_HEADER_DIR)/precompiled.hpp.gch
57 endif 56 endif
58 endif 57 endif
163 ifneq ("${CC_VER_MAJOR}", "2") 162 ifneq ("${CC_VER_MAJOR}", "2")
164 DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d) 163 DEPFLAGS = -MMD -MP -MF $(DEP_DIR)/$(@:%=%.d)
165 endif 164 endif
166 165
167 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp. 166 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
168 ifneq ($(USE_PRECOMPILED_HEADER),1) 167 ifeq ($(USE_PRECOMPILED_HEADER),0)
169 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER 168 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
170 endif 169 endif
171 170
172 #------------------------------------------------------------------------ 171 #------------------------------------------------------------------------
173 # Linker flags 172 # Linker flags

mercurial