34 ################################################################################
35
36 ifeq ($(call check-jvm-feature, compiler1), true)
37 JVM_CFLAGS_FEATURES += -DCOMPILER1
38 else
39 JVM_EXCLUDE_PATTERNS += c1_ c1/
40 endif
41
42 ifeq ($(call check-jvm-feature, compiler2), true)
43 JVM_CFLAGS_FEATURES += -DCOMPILER2
44 JVM_SRC_DIRS += $(JVM_VARIANT_OUTPUTDIR)/gensrc/adfiles
45 else
46 JVM_EXCLUDES += opto libadt
47 JVM_EXCLUDE_FILES += bcEscapeAnalyzer.cpp ciTypeFlow.cpp
48 JVM_EXCLUDE_PATTERNS += c2_ runtime_ /c2/
49 endif
50
51 ifeq ($(call check-jvm-feature, zero), true)
52 JVM_EXCLUDES += opto libadt
53 JVM_EXCLUDE_PATTERNS += c1_ c1/ c2_ runtime_ /c2/
54 JVM_EXCLUDE_FILES += templateInterpreter.cpp \
55 templateInterpreterGenerator.cpp bcEscapeAnalyzer.cpp ciTypeFlow.cpp
56 JVM_CFLAGS_FEATURES += -DZERO \
57 -DZERO_LIBARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' $(LIBFFI_CFLAGS)
58 JVM_LIBS_FEATURES += $(LIBFFI_LIBS)
59 ifeq ($(ENABLE_LIBFFI_BUNDLING), true)
60 JVM_LDFLAGS_FEATURES += $(call SET_EXECUTABLE_ORIGIN,/..)
61 endif
62 else
63 JVM_EXCLUDE_PATTERNS += /zero/
64 endif
65
66 ifeq ($(JVM_VARIANT), core)
67 JVM_CFLAGS_FEATURES += -DVMTYPE=\"Core\"
68 endif
69
70 ifeq ($(JVM_VARIANT), custom)
71 JVM_CFLAGS_FEATURES += -DVMTYPE=\"Custom\"
72 endif
73
74 ifeq ($(call check-jvm-feature, minimal), true)
75 JVM_CFLAGS_FEATURES += -DMINIMAL_JVM -DVMTYPE=\"Minimal\"
76 ifeq ($(call isTargetOs, linux), true)
77 # Override the default -g with a more liberal strip policy for the
|
34 ################################################################################
35
36 ifeq ($(call check-jvm-feature, compiler1), true)
37 JVM_CFLAGS_FEATURES += -DCOMPILER1
38 else
39 JVM_EXCLUDE_PATTERNS += c1_ c1/
40 endif
41
42 ifeq ($(call check-jvm-feature, compiler2), true)
43 JVM_CFLAGS_FEATURES += -DCOMPILER2
44 JVM_SRC_DIRS += $(JVM_VARIANT_OUTPUTDIR)/gensrc/adfiles
45 else
46 JVM_EXCLUDES += opto libadt
47 JVM_EXCLUDE_FILES += bcEscapeAnalyzer.cpp ciTypeFlow.cpp
48 JVM_EXCLUDE_PATTERNS += c2_ runtime_ /c2/
49 endif
50
51 ifeq ($(call check-jvm-feature, zero), true)
52 JVM_EXCLUDES += opto libadt
53 JVM_EXCLUDE_PATTERNS += c1_ c1/ c2_ runtime_ /c2/
54 JVM_EXCLUDE_FILES += templateInterpreter.cpp templateInterpreterGenerator.cpp \
55 bcEscapeAnalyzer.cpp ciTypeFlow.cpp macroAssembler_common.cpp
56 JVM_CFLAGS_FEATURES += -DZERO -DZERO_LIBARCH='"$(OPENJDK_TARGET_CPU_LEGACY_LIB)"' $(LIBFFI_CFLAGS)
57 JVM_LIBS_FEATURES += $(LIBFFI_LIBS)
58 ifeq ($(ENABLE_LIBFFI_BUNDLING), true)
59 JVM_LDFLAGS_FEATURES += $(call SET_EXECUTABLE_ORIGIN,/..)
60 endif
61 else
62 JVM_EXCLUDE_PATTERNS += /zero/
63 endif
64
65 ifeq ($(JVM_VARIANT), core)
66 JVM_CFLAGS_FEATURES += -DVMTYPE=\"Core\"
67 endif
68
69 ifeq ($(JVM_VARIANT), custom)
70 JVM_CFLAGS_FEATURES += -DVMTYPE=\"Custom\"
71 endif
72
73 ifeq ($(call check-jvm-feature, minimal), true)
74 JVM_CFLAGS_FEATURES += -DMINIMAL_JVM -DVMTYPE=\"Minimal\"
75 ifeq ($(call isTargetOs, linux), true)
76 # Override the default -g with a more liberal strip policy for the
|