make/excludeSrc.make

Wed, 14 Oct 2020 17:44:48 +0800

author
aoqi
date
Wed, 14 Oct 2020 17:44:48 +0800
changeset 9931
fd44df5e3bc3
parent 7535
7ae4e26cb1e0
child 10015
eb7ce841ccec
permissions
-rw-r--r--

Merge

aoqi@0 1 #
aoqi@0 2 # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 #
aoqi@0 5 # This code is free software; you can redistribute it and/or modify it
aoqi@0 6 # under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 # published by the Free Software Foundation.
aoqi@0 8 #
aoqi@0 9 # This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 12 # version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 13 # accompanied this code).
aoqi@0 14 #
aoqi@0 15 # You should have received a copy of the GNU General Public License version
aoqi@0 16 # 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 18 #
aoqi@0 19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 20 # or visit www.oracle.com if you need additional information or have any
aoqi@0 21 # questions.
aoqi@0 22 #
aoqi@0 23 #
jcoomes@7116 24
jcoomes@7116 25 include $(GAMMADIR)/make/altsrc.make
jcoomes@7116 26
aoqi@0 27 ifeq ($(INCLUDE_JVMTI), false)
aoqi@0 28 CXXFLAGS += -DINCLUDE_JVMTI=0
aoqi@0 29 CFLAGS += -DINCLUDE_JVMTI=0
aoqi@0 30
aoqi@0 31 Src_Files_EXCLUDE += jvmtiGetLoadedClasses.cpp jvmtiThreadState.cpp jvmtiExtensions.cpp \
aoqi@0 32 jvmtiImpl.cpp jvmtiManageCapabilities.cpp jvmtiRawMonitor.cpp jvmtiUtil.cpp jvmtiTrace.cpp \
aoqi@0 33 jvmtiCodeBlobEvents.cpp jvmtiEnv.cpp jvmtiRedefineClasses.cpp jvmtiEnvBase.cpp jvmtiEnvThreadState.cpp \
aoqi@0 34 jvmtiTagMap.cpp jvmtiEventController.cpp evmCompat.cpp jvmtiEnter.xsl jvmtiExport.cpp \
aoqi@0 35 jvmtiClassFileReconstituter.cpp
aoqi@0 36 endif
aoqi@0 37
aoqi@0 38 ifeq ($(INCLUDE_FPROF), false)
aoqi@0 39 CXXFLAGS += -DINCLUDE_FPROF=0
aoqi@0 40 CFLAGS += -DINCLUDE_FPROF=0
aoqi@0 41
aoqi@0 42 Src_Files_EXCLUDE += fprofiler.cpp
aoqi@0 43 endif
aoqi@0 44
aoqi@0 45 ifeq ($(INCLUDE_VM_STRUCTS), false)
aoqi@0 46 CXXFLAGS += -DINCLUDE_VM_STRUCTS=0
aoqi@0 47 CFLAGS += -DINCLUDE_VM_STRUCTS=0
aoqi@0 48
aoqi@0 49 Src_Files_EXCLUDE += vmStructs.cpp
aoqi@0 50 endif
aoqi@0 51
aoqi@0 52 ifeq ($(INCLUDE_JNI_CHECK), false)
aoqi@0 53 CXXFLAGS += -DINCLUDE_JNI_CHECK=0
aoqi@0 54 CFLAGS += -DINCLUDE_JNI_CHECK=0
aoqi@0 55
aoqi@0 56 Src_Files_EXCLUDE += jniCheck.cpp
aoqi@0 57 endif
aoqi@0 58
aoqi@0 59 ifeq ($(INCLUDE_SERVICES), false)
aoqi@0 60 CXXFLAGS += -DINCLUDE_SERVICES=0
aoqi@0 61 CFLAGS += -DINCLUDE_SERVICES=0
aoqi@0 62
aoqi@0 63 Src_Files_EXCLUDE += heapDumper.cpp heapInspection.cpp \
aoqi@0 64 attachListener_linux.cpp attachListener.cpp
aoqi@0 65 endif
aoqi@0 66
aoqi@0 67 ifeq ($(INCLUDE_MANAGEMENT), false)
aoqi@0 68 CXXFLAGS += -DINCLUDE_MANAGEMENT=0
aoqi@0 69 CFLAGS += -DINCLUDE_MANAGEMENT=0
aoqi@0 70 endif
aoqi@0 71
aoqi@0 72 ifeq ($(INCLUDE_CDS), false)
aoqi@0 73 CXXFLAGS += -DINCLUDE_CDS=0
aoqi@0 74 CFLAGS += -DINCLUDE_CDS=0
aoqi@0 75
iklam@7089 76 Src_Files_EXCLUDE += filemap.cpp metaspaceShared*.cpp sharedPathsMiscInfo.cpp \
iklam@7089 77 systemDictionaryShared.cpp classLoaderExt.cpp sharedClassUtil.cpp
aoqi@0 78 endif
aoqi@0 79
aoqi@0 80 ifeq ($(INCLUDE_ALL_GCS), false)
aoqi@0 81 CXXFLAGS += -DINCLUDE_ALL_GCS=0
aoqi@0 82 CFLAGS += -DINCLUDE_ALL_GCS=0
aoqi@0 83
jcoomes@7116 84 gc_impl := $(HS_COMMON_SRC)/share/vm/gc_implementation
jcoomes@7116 85 gc_impl_alt := $(HS_ALT_SRC)/share/vm/gc_implementation
jcoomes@7116 86 gc_subdirs := concurrentMarkSweep g1 parallelScavenge parNew
jcoomes@7116 87 gc_exclude := $(foreach gc,$(gc_subdirs), \
jcoomes@7116 88 $(notdir $(wildcard $(gc_impl)/$(gc)/*.cpp)) \
jcoomes@7116 89 $(notdir $(wildcard $(gc_impl_alt)/$(gc)/*.cpp)))
jcoomes@6924 90 Src_Files_EXCLUDE += $(gc_exclude)
jcoomes@6924 91
jcoomes@6924 92 # Exclude everything in $(gc_impl)/shared except the files listed
jcoomes@6924 93 # in $(gc_shared_keep).
jcoomes@6924 94 gc_shared_all := $(notdir $(wildcard $(gc_impl)/shared/*.cpp))
jcoomes@6924 95 gc_shared_keep := \
jcoomes@6924 96 adaptiveSizePolicy.cpp \
jcoomes@6924 97 ageTable.cpp \
jcoomes@6924 98 collectorCounters.cpp \
jcoomes@6924 99 cSpaceCounters.cpp \
stefank@7272 100 gcId.cpp \
jcoomes@6924 101 gcPolicyCounters.cpp \
jcoomes@6924 102 gcStats.cpp \
jcoomes@6924 103 gcTimer.cpp \
jcoomes@6924 104 gcTrace.cpp \
jcoomes@6924 105 gcTraceSend.cpp \
jcoomes@6924 106 gcTraceTime.cpp \
jcoomes@6924 107 gcUtil.cpp \
jcoomes@6924 108 generationCounters.cpp \
jcoomes@6924 109 markSweep.cpp \
jcoomes@6924 110 objectCountEventSender.cpp \
jcoomes@6924 111 spaceDecorator.cpp \
jcoomes@6924 112 vmGCOperations.cpp
jcoomes@6924 113 Src_Files_EXCLUDE += $(filter-out $(gc_shared_keep),$(gc_shared_all))
jcoomes@6924 114
jcoomes@6924 115 # src/share/vm/services
jcoomes@6924 116 Src_Files_EXCLUDE += \
jcoomes@6924 117 g1MemoryPool.cpp \
jcoomes@6924 118 psMemoryPool.cpp
aoqi@0 119 endif
aoqi@0 120
aoqi@0 121 ifeq ($(INCLUDE_NMT), false)
aoqi@0 122 CXXFLAGS += -DINCLUDE_NMT=0
aoqi@0 123 CFLAGS += -DINCLUDE_NMT=0
aoqi@0 124
aoqi@0 125 Src_Files_EXCLUDE += \
zgu@7074 126 memBaseline.cpp memReporter.cpp mallocTracker.cpp virtualMemoryTracker.cpp nmtCommon.cpp \
zgu@7074 127 memTracker.cpp nmtDCmd.cpp mallocSiteTable.cpp
aoqi@0 128 endif
aoqi@0 129
aoqi@0 130 -include $(HS_ALT_MAKE)/excludeSrc.make
aoqi@0 131
aoqi@0 132 .PHONY: $(HS_ALT_MAKE)/excludeSrc.make

mercurial