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