1 #
   2 # Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
   3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4 #
   5 # This code is free software; you can redistribute it and/or modify it
   6 # under the terms of the GNU General Public License version 2 only, as
   7 # published by the Free Software Foundation.
   8 #
   9 # This code is distributed in the hope that it will be useful, but WITHOUT
  10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11 # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12 # version 2 for more details (a copy is included in the LICENSE file that
  13 # accompanied this code).
  14 #
  15 # You should have received a copy of the GNU General Public License version
  16 # 2 along with this work; if not, write to the Free Software Foundation,
  17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18 #
  19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20 # or visit www.oracle.com if you need additional information or have any
  21 # questions.
  22 #  
  23 #
  24 ifeq ($(INCLUDE_JVMTI), false)
  25       CXXFLAGS += -DINCLUDE_JVMTI=0
  26       CFLAGS += -DINCLUDE_JVMTI=0
  27 
  28       Src_Files_EXCLUDE += jvmtiGetLoadedClasses.cpp jvmtiThreadState.cpp jvmtiExtensions.cpp \
  29         jvmtiImpl.cpp jvmtiManageCapabilities.cpp jvmtiRawMonitor.cpp jvmtiUtil.cpp jvmtiTrace.cpp \
  30         jvmtiCodeBlobEvents.cpp jvmtiEnv.cpp jvmtiRedefineClasses.cpp jvmtiEnvBase.cpp jvmtiEnvThreadState.cpp \
  31         jvmtiTagMap.cpp jvmtiEventController.cpp evmCompat.cpp jvmtiEnter.xsl jvmtiExport.cpp \
  32         jvmtiClassFileReconstituter.cpp
  33 endif
  34 
  35 ifeq ($(INCLUDE_FPROF), false)
  36       CXXFLAGS += -DINCLUDE_FPROF=0
  37       CFLAGS += -DINCLUDE_FPROF=0
  38 
  39       Src_Files_EXCLUDE += fprofiler.cpp
  40 endif
  41 
  42 ifeq ($(INCLUDE_VM_STRUCTS), false)
  43       CXXFLAGS += -DINCLUDE_VM_STRUCTS=0
  44       CFLAGS += -DINCLUDE_VM_STRUCTS=0
  45 
  46       Src_Files_EXCLUDE += vmStructs.cpp
  47 endif
  48 
  49 ifeq ($(INCLUDE_JNI_CHECK), false)
  50       CXXFLAGS += -DINCLUDE_JNI_CHECK=0
  51       CFLAGS += -DINCLUDE_JNI_CHECK=0
  52 
  53       Src_Files_EXCLUDE += jniCheck.cpp
  54 endif
  55 
  56 ifeq ($(INCLUDE_SERVICES), false)
  57       CXXFLAGS += -DINCLUDE_SERVICES=0
  58       CFLAGS += -DINCLUDE_SERVICES=0
  59 
  60       Src_Files_EXCLUDE += heapDumper.cpp heapInspection.cpp \
  61         attachListener_linux.cpp attachListener.cpp
  62 endif
  63 
  64 ifeq ($(INCLUDE_MANAGEMENT), false)
  65       CXXFLAGS += -DINCLUDE_MANAGEMENT=0
  66       CFLAGS += -DINCLUDE_MANAGEMENT=0
  67 endif
  68 
  69 ifeq ($(INCLUDE_CDS), false)
  70       CXXFLAGS += -DINCLUDE_CDS=0
  71       CFLAGS += -DINCLUDE_CDS=0
  72 
  73       Src_Files_EXCLUDE += filemap.cpp metaspaceShared.cpp
  74 endif
  75 
  76 ifeq ($(INCLUDE_ALL_GCS), false)
  77       CXXFLAGS += -DINCLUDE_ALL_GCS=0
  78       CFLAGS += -DINCLUDE_ALL_GCS=0
  79 
  80       Src_Files_EXCLUDE += \
  81         cmsAdaptiveSizePolicy.cpp cmsCollectorPolicy.cpp \
  82         cmsGCAdaptivePolicyCounters.cpp cmsLockVerifier.cpp compactibleFreeListSpace.cpp \
  83         concurrentMarkSweepGeneration.cpp concurrentMarkSweepThread.cpp \
  84         freeChunk.cpp adaptiveFreeList.cpp promotionInfo.cpp vmCMSOperations.cpp \
  85         collectionSetChooser.cpp concurrentG1Refine.cpp concurrentG1RefineThread.cpp \
  86         concurrentMark.cpp concurrentMarkThread.cpp dirtyCardQueue.cpp g1AllocRegion.cpp \
  87         g1BlockOffsetTable.cpp g1CardCounts.cpp g1CollectedHeap.cpp g1CollectorPolicy.cpp \
  88         g1ErgoVerbose.cpp g1GCPhaseTimes.cpp g1HRPrinter.cpp g1HotCardCache.cpp g1Log.cpp \
  89         g1MMUTracker.cpp g1MarkSweep.cpp g1MemoryPool.cpp g1MonitoringSupport.cpp \
  90         g1RemSet.cpp g1SATBCardTableModRefBS.cpp g1_globals.cpp heapRegion.cpp \
  91         heapRegionRemSet.cpp heapRegionSeq.cpp heapRegionSet.cpp heapRegionSets.cpp \
  92         ptrQueue.cpp satbQueue.cpp sparsePRT.cpp survRateGroup.cpp vm_operations_g1.cpp \
  93         adjoiningGenerations.cpp adjoiningVirtualSpaces.cpp asPSOldGen.cpp asPSYoungGen.cpp \
  94         cardTableExtension.cpp gcTaskManager.cpp gcTaskThread.cpp objectStartArray.cpp \
  95         parallelScavengeHeap.cpp parMarkBitMap.cpp pcTasks.cpp psAdaptiveSizePolicy.cpp \
  96         psCompactionManager.cpp psGCAdaptivePolicyCounters.cpp psGenerationCounters.cpp \
  97         psMarkSweep.cpp psMarkSweepDecorator.cpp psMemoryPool.cpp psOldGen.cpp \
  98         psParallelCompact.cpp psPromotionLAB.cpp psPromotionManager.cpp psScavenge.cpp \
  99         psTasks.cpp psVirtualspace.cpp psYoungGen.cpp vmPSOperations.cpp asParNewGeneration.cpp \
 100         parCardTableModRefBS.cpp parGCAllocBuffer.cpp parNewGeneration.cpp mutableSpace.cpp \
 101         gSpaceCounters.cpp allocationStats.cpp spaceCounters.cpp gcAdaptivePolicyCounters.cpp \
 102         mutableNUMASpace.cpp immutableSpace.cpp yieldingWorkGroup.cpp
 103 endif 
 104 
 105 ifeq ($(INCLUDE_NMT), false)
 106       CXXFLAGS += -DINCLUDE_NMT=0
 107       CFLAGS += -DINCLUDE_NMT=0
 108 
 109       Src_Files_EXCLUDE += \
 110          memBaseline.cpp memPtr.cpp memRecorder.cpp memReporter.cpp memSnapshot.cpp memTrackWorker.cpp \
 111          memTracker.cpp nmtDCmd.cpp
 112 endif