56 VPATH += $(Src_Dirs_V:%=%:) 57 58 # set INCLUDES for C preprocessor. 59 Src_Dirs_I += $(GENERATED) 60 # The order is important for the precompiled headers to work. 61 INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%) 62 63 # SYMFLAG is used by {jsig,saproc}.make 64 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) 65 # always build with debug info when we can create .dSYM/.debuginfo files 66 SYMFLAG = -g 67 else 68 ifeq (${VERSION}, debug) 69 SYMFLAG = -g 70 else 71 SYMFLAG = 72 endif 73 endif 74 75 # The following variables are defined in the generated flags.make file. 76 JDK_VER_DEFS = -DJDK_MAJOR_VERSION="\"$(JDK_MAJOR_VERSION)\"" \ 77 -DJDK_MINOR_VERSION="\"$(JDK_MINOR_VERSION)\"" \ 78 -DJDK_MICRO_VERSION="\"$(JDK_MICRO_VERSION)\"" \ 79 -DJDK_BUILD_NUMBER="\"$(JDK_BUILD_NUMBER)\"" 80 VM_VER_DEFS = -DHOTSPOT_RELEASE_VERSION="\"$(HS_BUILD_VER)\"" \ 81 -DJRE_RELEASE_VERSION="\"$(JRE_RELEASE_VER)\"" \ 82 $(JDK_VER_DEFS) 83 HS_LIB_ARCH = -DHOTSPOT_LIB_ARCH=\"$(LIBARCH)\" 84 BUILD_USER = -DHOTSPOT_BUILD_USER="\"$(HOTSPOT_BUILD_USER)\"" 85 VM_DISTRO = -DHOTSPOT_VM_DISTRO="\"$(HOTSPOT_VM_DISTRO)\"" 86 87 CXXFLAGS = \ 88 ${SYSDEFS} \ 89 ${INCLUDES} \ 90 ${BUILD_USER} \ 91 ${HS_LIB_ARCH} \ 92 ${VM_DISTRO} 93 94 # This is VERY important! The version define must only be supplied to vm_version.o 95 # If not, ccache will not re-use the cache at all, since the version string might contain 96 # a time and date. 97 CXXFLAGS/vm_version.o += ${VM_VER_DEFS} 98 99 CXXFLAGS/BYFILE = $(CXXFLAGS/$@) 100 101 # File specific flags | 56 VPATH += $(Src_Dirs_V:%=%:) 57 58 # set INCLUDES for C preprocessor. 59 Src_Dirs_I += $(GENERATED) 60 # The order is important for the precompiled headers to work. 61 INCLUDES += $(PRECOMPILED_HEADER_DIR:%=-I%) $(Src_Dirs_I:%=-I%) 62 63 # SYMFLAG is used by {jsig,saproc}.make 64 ifeq ($(ENABLE_FULL_DEBUG_SYMBOLS),1) 65 # always build with debug info when we can create .dSYM/.debuginfo files 66 SYMFLAG = -g 67 else 68 ifeq (${VERSION}, debug) 69 SYMFLAG = -g 70 else 71 SYMFLAG = 72 endif 73 endif 74 75 # The following variables are defined in the generated flags.make file. 76 JDK_VER_DEFS = -DVERSION_MAJOR=$(VERSION_MAJOR) \ 77 -DVERSION_MINOR=$(VERSION_MINOR) \ 78 -DVERSION_SECURITY=$(VERSION_SECURITY) \ 79 -DVERSION_BUILD=$(VERSION_BUILD) 80 VM_VER_DEFS = -DHOTSPOT_VERSION_STRING="\"$(HOTSPOT_VERSION_STRING)\"" \ 81 -DVERSION_STRING="\"$(VERSION_STRING)\"" \ 82 $(JDK_VER_DEFS) 83 HS_LIB_ARCH = -DHOTSPOT_LIB_ARCH=\"$(LIBARCH)\" 84 BUILD_USER = -DHOTSPOT_BUILD_USER="\"$(HOTSPOT_BUILD_USER)\"" 85 VM_DISTRO = -DHOTSPOT_VM_DISTRO="\"$(HOTSPOT_VM_DISTRO)\"" 86 87 CXXFLAGS = \ 88 ${SYSDEFS} \ 89 ${INCLUDES} \ 90 ${BUILD_USER} \ 91 ${HS_LIB_ARCH} \ 92 ${VM_DISTRO} 93 94 # This is VERY important! The version define must only be supplied to vm_version.o 95 # If not, ccache will not re-use the cache at all, since the version string might contain 96 # a time and date. 97 CXXFLAGS/vm_version.o += ${VM_VER_DEFS} 98 99 CXXFLAGS/BYFILE = $(CXXFLAGS/$@) 100 101 # File specific flags |