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