comparison make/linux/makefiles/sparcWorks.make @ 1983:c760f78e0a53

7003125: precompiled.hpp is included when precompiled headers are not used Summary: Added an ifndef DONT_USE_PRECOMPILED_HEADER to precompiled.hpp. Set up DONT_USE_PRECOMPILED_HEADER when compiling with Sun Studio or when the user specifies USE_PRECOMPILED_HEADER=0. Fixed broken include dependencies. Reviewed-by: coleenp, kvn
author stefank
date Wed, 01 Dec 2010 15:04:06 +0100
parents f95d63e2154a
children 0a8e0d4345b3
comparison
equal deleted inserted replaced
1982:6a2d73358ff7 1983:c760f78e0a53
77 # Flags for creating the dependency files. 77 # Flags for creating the dependency files.
78 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1) 78 ifeq ($(shell expr $(COMPILER_REV_NUMERIC) \>= 509), 1)
79 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d) 79 DEPFLAGS = -xMMD -xMF $(DEP_DIR)/$(@:%=%.d)
80 endif 80 endif
81 81
82 # -DDONT_USE_PRECOMPILED_HEADER will exclude all includes in precompiled.hpp.
83 CFLAGS += -DDONT_USE_PRECOMPILED_HEADER
84
82 #------------------------------------------------------------------------ 85 #------------------------------------------------------------------------
83 # Linker flags 86 # Linker flags
84 87
85 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file. 88 # Use $(MAPFLAG:FILENAME=real_file_name) to specify a map file.
86 MAPFLAG = -Wl,--version-script=FILENAME 89 MAPFLAG = -Wl,--version-script=FILENAME