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