66
67 ifeq ($(INCLUDE_MANAGEMENT), false)
68 CXXFLAGS += -DINCLUDE_MANAGEMENT=0
69 CFLAGS += -DINCLUDE_MANAGEMENT=0
70 endif
71
72 ifeq ($(INCLUDE_CDS), false)
73 CXXFLAGS += -DINCLUDE_CDS=0
74 CFLAGS += -DINCLUDE_CDS=0
75
76 Src_Files_EXCLUDE += filemap.cpp metaspaceShared*.cpp sharedPathsMiscInfo.cpp \
77 systemDictionaryShared.cpp classLoaderExt.cpp sharedClassUtil.cpp
78 endif
79
80 ifeq ($(INCLUDE_ALL_GCS), false)
81 CXXFLAGS += -DINCLUDE_ALL_GCS=0
82 CFLAGS += -DINCLUDE_ALL_GCS=0
83
84 gc_impl := $(HS_COMMON_SRC)/share/vm/gc_implementation
85 gc_impl_alt := $(HS_ALT_SRC)/share/vm/gc_implementation
86 gc_subdirs := concurrentMarkSweep g1 parallelScavenge parNew
87 gc_exclude := $(foreach gc,$(gc_subdirs), \
88 $(notdir $(wildcard $(gc_impl)/$(gc)/*.cpp)) \
89 $(notdir $(wildcard $(gc_impl_alt)/$(gc)/*.cpp)))
90 Src_Files_EXCLUDE += $(gc_exclude)
91
92 # Exclude everything in $(gc_impl)/shared except the files listed
93 # in $(gc_shared_keep).
94 gc_shared_all := $(notdir $(wildcard $(gc_impl)/shared/*.cpp))
95 gc_shared_keep := \
96 adaptiveSizePolicy.cpp \
97 ageTable.cpp \
98 ageTableTracer.cpp \
99 collectorCounters.cpp \
100 cSpaceCounters.cpp \
101 gcId.cpp \
102 gcPolicyCounters.cpp \
103 gcStats.cpp \
104 gcTimer.cpp \
105 gcTrace.cpp \
106 gcTraceSend.cpp \
107 gcTraceTime.cpp \
108 gcUtil.cpp \
109 generationCounters.cpp \
110 markSweep.cpp \
111 objectCountEventSender.cpp \
112 spaceDecorator.cpp \
113 vmGCOperations.cpp
114 Src_Files_EXCLUDE += $(filter-out $(gc_shared_keep),$(gc_shared_all))
115
116 # src/share/vm/services
117 Src_Files_EXCLUDE += \
118 g1MemoryPool.cpp \
119 psMemoryPool.cpp
120 endif
121
122 ifeq ($(INCLUDE_NMT), false)
123 CXXFLAGS += -DINCLUDE_NMT=0
124 CFLAGS += -DINCLUDE_NMT=0
125
126 Src_Files_EXCLUDE += \
127 memBaseline.cpp memReporter.cpp mallocTracker.cpp virtualMemoryTracker.cpp nmtCommon.cpp \
128 memTracker.cpp nmtDCmd.cpp mallocSiteTable.cpp
129 endif
130
131 -include $(HS_ALT_MAKE)/excludeSrc.make
132
133 .PHONY: $(HS_ALT_MAKE)/excludeSrc.make
|
66
67 ifeq ($(INCLUDE_MANAGEMENT), false)
68 CXXFLAGS += -DINCLUDE_MANAGEMENT=0
69 CFLAGS += -DINCLUDE_MANAGEMENT=0
70 endif
71
72 ifeq ($(INCLUDE_CDS), false)
73 CXXFLAGS += -DINCLUDE_CDS=0
74 CFLAGS += -DINCLUDE_CDS=0
75
76 Src_Files_EXCLUDE += filemap.cpp metaspaceShared*.cpp sharedPathsMiscInfo.cpp \
77 systemDictionaryShared.cpp classLoaderExt.cpp sharedClassUtil.cpp
78 endif
79
80 ifeq ($(INCLUDE_ALL_GCS), false)
81 CXXFLAGS += -DINCLUDE_ALL_GCS=0
82 CFLAGS += -DINCLUDE_ALL_GCS=0
83
84 gc_impl := $(HS_COMMON_SRC)/share/vm/gc_implementation
85 gc_impl_alt := $(HS_ALT_SRC)/share/vm/gc_implementation
86 gc_subdirs := concurrentMarkSweep g1 shenandoah shenandoah/heuristics shenandoah/mode shenandoah/c1 shenandoah/c2 parallelScavenge parNew
87 gc_exclude := $(foreach gc,$(gc_subdirs), \
88 $(notdir $(wildcard $(gc_impl)/$(gc)/*.cpp)) \
89 $(notdir $(wildcard $(gc_impl_alt)/$(gc)/*.cpp)))
90 Src_Files_EXCLUDE += $(gc_exclude)
91
92 # Exclude everything in $(gc_impl)/shared except the files listed
93 # in $(gc_shared_keep).
94 gc_shared_all := $(notdir $(wildcard $(gc_impl)/shared/*.cpp))
95 gc_shared_keep := \
96 adaptiveSizePolicy.cpp \
97 ageTable.cpp \
98 ageTableTracer.cpp \
99 collectorCounters.cpp \
100 cSpaceCounters.cpp \
101 gcId.cpp \
102 gcPolicyCounters.cpp \
103 gcStats.cpp \
104 gcTimer.cpp \
105 gcTrace.cpp \
106 gcTraceSend.cpp \
107 gcTraceTime.cpp \
108 gcUtil.cpp \
109 generationCounters.cpp \
110 markSweep.cpp \
111 objectCountEventSender.cpp \
112 spaceDecorator.cpp \
113 vmGCOperations.cpp
114 Src_Files_EXCLUDE += $(filter-out $(gc_shared_keep),$(gc_shared_all))
115
116 # src/share/vm/services
117 Src_Files_EXCLUDE += \
118 g1MemoryPool.cpp \
119 shenandoahMemoryPool.cpp \
120 psMemoryPool.cpp
121
122 Src_Files_EXCLUDE += \
123 shenandoahBarrierSetAssembler_x86.cpp \
124 shenandoahBarrierSetAssembler_aarch64.cpp \
125 shenandoahBarrierSetAssembler_ppc.cpp \
126 shenandoahBarrierSetAssembler_sparc.cpp \
127 shenandoahBarrierSetAssembler_zero.cpp
128 endif
129
130 ifeq ($(INCLUDE_NMT), false)
131 CXXFLAGS += -DINCLUDE_NMT=0
132 CFLAGS += -DINCLUDE_NMT=0
133
134 Src_Files_EXCLUDE += \
135 memBaseline.cpp memReporter.cpp mallocTracker.cpp virtualMemoryTracker.cpp nmtCommon.cpp \
136 memTracker.cpp nmtDCmd.cpp mallocSiteTable.cpp
137 endif
138
139 -include $(HS_ALT_MAKE)/excludeSrc.make
140
141 .PHONY: $(HS_ALT_MAKE)/excludeSrc.make
|