aoqi@0: # aoqi@0: # Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. aoqi@0: # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. aoqi@0: # aoqi@0: # This code is free software; you can redistribute it and/or modify it aoqi@0: # under the terms of the GNU General Public License version 2 only, as aoqi@0: # published by the Free Software Foundation. aoqi@0: # aoqi@0: # This code is distributed in the hope that it will be useful, but WITHOUT aoqi@0: # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or aoqi@0: # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License aoqi@0: # version 2 for more details (a copy is included in the LICENSE file that aoqi@0: # accompanied this code). aoqi@0: # aoqi@0: # You should have received a copy of the GNU General Public License version aoqi@0: # 2 along with this work; if not, write to the Free Software Foundation, aoqi@0: # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. aoqi@0: # aoqi@0: # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA aoqi@0: # or visit www.oracle.com if you need additional information or have any aoqi@0: # questions. aoqi@0: # aoqi@0: # jcoomes@7116: jcoomes@7116: include $(GAMMADIR)/make/altsrc.make jcoomes@7116: aoqi@0: ifeq ($(INCLUDE_JVMTI), false) aoqi@0: CXXFLAGS += -DINCLUDE_JVMTI=0 aoqi@0: CFLAGS += -DINCLUDE_JVMTI=0 aoqi@0: aoqi@0: Src_Files_EXCLUDE += jvmtiGetLoadedClasses.cpp jvmtiThreadState.cpp jvmtiExtensions.cpp \ aoqi@0: jvmtiImpl.cpp jvmtiManageCapabilities.cpp jvmtiRawMonitor.cpp jvmtiUtil.cpp jvmtiTrace.cpp \ aoqi@0: jvmtiCodeBlobEvents.cpp jvmtiEnv.cpp jvmtiRedefineClasses.cpp jvmtiEnvBase.cpp jvmtiEnvThreadState.cpp \ aoqi@0: jvmtiTagMap.cpp jvmtiEventController.cpp evmCompat.cpp jvmtiEnter.xsl jvmtiExport.cpp \ aoqi@0: jvmtiClassFileReconstituter.cpp aoqi@0: endif aoqi@0: aoqi@0: ifeq ($(INCLUDE_FPROF), false) aoqi@0: CXXFLAGS += -DINCLUDE_FPROF=0 aoqi@0: CFLAGS += -DINCLUDE_FPROF=0 aoqi@0: aoqi@0: Src_Files_EXCLUDE += fprofiler.cpp aoqi@0: endif aoqi@0: aoqi@0: ifeq ($(INCLUDE_VM_STRUCTS), false) aoqi@0: CXXFLAGS += -DINCLUDE_VM_STRUCTS=0 aoqi@0: CFLAGS += -DINCLUDE_VM_STRUCTS=0 aoqi@0: aoqi@0: Src_Files_EXCLUDE += vmStructs.cpp aoqi@0: endif aoqi@0: aoqi@0: ifeq ($(INCLUDE_JNI_CHECK), false) aoqi@0: CXXFLAGS += -DINCLUDE_JNI_CHECK=0 aoqi@0: CFLAGS += -DINCLUDE_JNI_CHECK=0 aoqi@0: aoqi@0: Src_Files_EXCLUDE += jniCheck.cpp aoqi@0: endif aoqi@0: aoqi@0: ifeq ($(INCLUDE_SERVICES), false) aoqi@0: CXXFLAGS += -DINCLUDE_SERVICES=0 aoqi@0: CFLAGS += -DINCLUDE_SERVICES=0 aoqi@0: aoqi@0: Src_Files_EXCLUDE += heapDumper.cpp heapInspection.cpp \ aoqi@0: attachListener_linux.cpp attachListener.cpp aoqi@0: endif aoqi@0: aoqi@0: ifeq ($(INCLUDE_MANAGEMENT), false) aoqi@0: CXXFLAGS += -DINCLUDE_MANAGEMENT=0 aoqi@0: CFLAGS += -DINCLUDE_MANAGEMENT=0 aoqi@0: endif aoqi@0: aoqi@0: ifeq ($(INCLUDE_CDS), false) aoqi@0: CXXFLAGS += -DINCLUDE_CDS=0 aoqi@0: CFLAGS += -DINCLUDE_CDS=0 aoqi@0: iklam@7089: Src_Files_EXCLUDE += filemap.cpp metaspaceShared*.cpp sharedPathsMiscInfo.cpp \ iklam@7089: systemDictionaryShared.cpp classLoaderExt.cpp sharedClassUtil.cpp aoqi@0: endif aoqi@0: aoqi@0: ifeq ($(INCLUDE_ALL_GCS), false) aoqi@0: CXXFLAGS += -DINCLUDE_ALL_GCS=0 aoqi@0: CFLAGS += -DINCLUDE_ALL_GCS=0 aoqi@0: jcoomes@7116: gc_impl := $(HS_COMMON_SRC)/share/vm/gc_implementation jcoomes@7116: gc_impl_alt := $(HS_ALT_SRC)/share/vm/gc_implementation jcoomes@7116: gc_subdirs := concurrentMarkSweep g1 parallelScavenge parNew jcoomes@7116: gc_exclude := $(foreach gc,$(gc_subdirs), \ jcoomes@7116: $(notdir $(wildcard $(gc_impl)/$(gc)/*.cpp)) \ jcoomes@7116: $(notdir $(wildcard $(gc_impl_alt)/$(gc)/*.cpp))) jcoomes@6924: Src_Files_EXCLUDE += $(gc_exclude) jcoomes@6924: jcoomes@6924: # Exclude everything in $(gc_impl)/shared except the files listed jcoomes@6924: # in $(gc_shared_keep). jcoomes@6924: gc_shared_all := $(notdir $(wildcard $(gc_impl)/shared/*.cpp)) jcoomes@6924: gc_shared_keep := \ jcoomes@6924: adaptiveSizePolicy.cpp \ jcoomes@6924: ageTable.cpp \ jcoomes@6924: collectorCounters.cpp \ jcoomes@6924: cSpaceCounters.cpp \ stefank@7272: gcId.cpp \ jcoomes@6924: gcPolicyCounters.cpp \ jcoomes@6924: gcStats.cpp \ jcoomes@6924: gcTimer.cpp \ jcoomes@6924: gcTrace.cpp \ jcoomes@6924: gcTraceSend.cpp \ jcoomes@6924: gcTraceTime.cpp \ jcoomes@6924: gcUtil.cpp \ jcoomes@6924: generationCounters.cpp \ jcoomes@6924: markSweep.cpp \ jcoomes@6924: objectCountEventSender.cpp \ jcoomes@6924: spaceDecorator.cpp \ jcoomes@6924: vmGCOperations.cpp jcoomes@6924: Src_Files_EXCLUDE += $(filter-out $(gc_shared_keep),$(gc_shared_all)) jcoomes@6924: jcoomes@6924: # src/share/vm/services jcoomes@6924: Src_Files_EXCLUDE += \ jcoomes@6924: g1MemoryPool.cpp \ jcoomes@6924: psMemoryPool.cpp aoqi@0: endif aoqi@0: aoqi@0: ifeq ($(INCLUDE_NMT), false) aoqi@0: CXXFLAGS += -DINCLUDE_NMT=0 aoqi@0: CFLAGS += -DINCLUDE_NMT=0 aoqi@0: aoqi@0: Src_Files_EXCLUDE += \ zgu@7074: memBaseline.cpp memReporter.cpp mallocTracker.cpp virtualMemoryTracker.cpp nmtCommon.cpp \ zgu@7074: memTracker.cpp nmtDCmd.cpp mallocSiteTable.cpp aoqi@0: endif aoqi@0: aoqi@0: -include $(HS_ALT_MAKE)/excludeSrc.make aoqi@0: aoqi@0: .PHONY: $(HS_ALT_MAKE)/excludeSrc.make