author | jwilhelm |
Mon, 24 Nov 2014 23:28:48 +0100 | |
changeset 27884 | 563a811ad398 |
parent 26835 | bd5e6520935c |
child 30764 | fec48bf5a827 |
permissions | -rw-r--r-- |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
1 |
# |
23451
ed2b8bb28fed
8035406: Improve data structure for Code Cache remembered sets
tschatzl
parents:
22901
diff
changeset
|
2 |
# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
3 |
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
4 |
# |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
5 |
# This code is free software; you can redistribute it and/or modify it |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
6 |
# under the terms of the GNU General Public License version 2 only, as |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
7 |
# published by the Free Software Foundation. |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
8 |
# |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
9 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
10 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
11 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
12 |
# version 2 for more details (a copy is included in the LICENSE file that |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
13 |
# accompanied this code). |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
14 |
# |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
15 |
# You should have received a copy of the GNU General Public License version |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
16 |
# 2 along with this work; if not, write to the Free Software Foundation, |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
17 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
18 |
# |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
19 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
20 |
# or visit www.oracle.com if you need additional information or have any |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
21 |
# questions. |
18025 | 22 |
# |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
23 |
# |
26835
bd5e6520935c
8054970: gc src file exclusion should exclude alternative sources
jcoomes
parents:
26135
diff
changeset
|
24 |
|
bd5e6520935c
8054970: gc src file exclusion should exclude alternative sources
jcoomes
parents:
26135
diff
changeset
|
25 |
include $(GAMMADIR)/make/altsrc.make |
bd5e6520935c
8054970: gc src file exclusion should exclude alternative sources
jcoomes
parents:
26135
diff
changeset
|
26 |
|
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
27 |
ifeq ($(INCLUDE_JVMTI), false) |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
28 |
CXXFLAGS += -DINCLUDE_JVMTI=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
29 |
CFLAGS += -DINCLUDE_JVMTI=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
30 |
|
17837
113909c12a8e
8013461: There is a symbol AsyncGetCallTrace in libjvm.symbols that does not exist in minimal/libjvm.a when DEBUG_LEVEL == release
jprovino
parents:
17327
diff
changeset
|
31 |
Src_Files_EXCLUDE += jvmtiGetLoadedClasses.cpp jvmtiThreadState.cpp jvmtiExtensions.cpp \ |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
32 |
jvmtiImpl.cpp jvmtiManageCapabilities.cpp jvmtiRawMonitor.cpp jvmtiUtil.cpp jvmtiTrace.cpp \ |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
33 |
jvmtiCodeBlobEvents.cpp jvmtiEnv.cpp jvmtiRedefineClasses.cpp jvmtiEnvBase.cpp jvmtiEnvThreadState.cpp \ |
16455
1a477ccdae4d
8009904: jvmtiClassFileReconstituter.cpp needs to be excluded from the minimal jvm
jprovino
parents:
15936
diff
changeset
|
34 |
jvmtiTagMap.cpp jvmtiEventController.cpp evmCompat.cpp jvmtiEnter.xsl jvmtiExport.cpp \ |
1a477ccdae4d
8009904: jvmtiClassFileReconstituter.cpp needs to be excluded from the minimal jvm
jprovino
parents:
15936
diff
changeset
|
35 |
jvmtiClassFileReconstituter.cpp |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
36 |
endif |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
37 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
38 |
ifeq ($(INCLUDE_FPROF), false) |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
39 |
CXXFLAGS += -DINCLUDE_FPROF=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
40 |
CFLAGS += -DINCLUDE_FPROF=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
41 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
42 |
Src_Files_EXCLUDE += fprofiler.cpp |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
43 |
endif |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
44 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
45 |
ifeq ($(INCLUDE_VM_STRUCTS), false) |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
46 |
CXXFLAGS += -DINCLUDE_VM_STRUCTS=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
47 |
CFLAGS += -DINCLUDE_VM_STRUCTS=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
48 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
49 |
Src_Files_EXCLUDE += vmStructs.cpp |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
50 |
endif |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
51 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
52 |
ifeq ($(INCLUDE_JNI_CHECK), false) |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
53 |
CXXFLAGS += -DINCLUDE_JNI_CHECK=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
54 |
CFLAGS += -DINCLUDE_JNI_CHECK=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
55 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
56 |
Src_Files_EXCLUDE += jniCheck.cpp |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
57 |
endif |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
58 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
59 |
ifeq ($(INCLUDE_SERVICES), false) |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
60 |
CXXFLAGS += -DINCLUDE_SERVICES=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
61 |
CFLAGS += -DINCLUDE_SERVICES=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
62 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
63 |
Src_Files_EXCLUDE += heapDumper.cpp heapInspection.cpp \ |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
64 |
attachListener_linux.cpp attachListener.cpp |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
65 |
endif |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
66 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
67 |
ifeq ($(INCLUDE_MANAGEMENT), false) |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
68 |
CXXFLAGS += -DINCLUDE_MANAGEMENT=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
69 |
CFLAGS += -DINCLUDE_MANAGEMENT=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
70 |
endif |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
71 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
72 |
ifeq ($(INCLUDE_CDS), false) |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
73 |
CXXFLAGS += -DINCLUDE_CDS=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
74 |
CFLAGS += -DINCLUDE_CDS=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
75 |
|
26135
82b516c550f7
8046070: Class Data Sharing clean up and refactoring
iklam
parents:
25946
diff
changeset
|
76 |
Src_Files_EXCLUDE += filemap.cpp metaspaceShared*.cpp sharedPathsMiscInfo.cpp \ |
82b516c550f7
8046070: Class Data Sharing clean up and refactoring
iklam
parents:
25946
diff
changeset
|
77 |
systemDictionaryShared.cpp classLoaderExt.cpp sharedClassUtil.cpp |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
78 |
endif |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
79 |
|
15482
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
14123
diff
changeset
|
80 |
ifeq ($(INCLUDE_ALL_GCS), false) |
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
14123
diff
changeset
|
81 |
CXXFLAGS += -DINCLUDE_ALL_GCS=0 |
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
14123
diff
changeset
|
82 |
CFLAGS += -DINCLUDE_ALL_GCS=0 |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
83 |
|
26835
bd5e6520935c
8054970: gc src file exclusion should exclude alternative sources
jcoomes
parents:
26135
diff
changeset
|
84 |
gc_impl := $(HS_COMMON_SRC)/share/vm/gc_implementation |
bd5e6520935c
8054970: gc src file exclusion should exclude alternative sources
jcoomes
parents:
26135
diff
changeset
|
85 |
gc_impl_alt := $(HS_ALT_SRC)/share/vm/gc_implementation |
bd5e6520935c
8054970: gc src file exclusion should exclude alternative sources
jcoomes
parents:
26135
diff
changeset
|
86 |
gc_subdirs := concurrentMarkSweep g1 parallelScavenge parNew |
bd5e6520935c
8054970: gc src file exclusion should exclude alternative sources
jcoomes
parents:
26135
diff
changeset
|
87 |
gc_exclude := $(foreach gc,$(gc_subdirs), \ |
bd5e6520935c
8054970: gc src file exclusion should exclude alternative sources
jcoomes
parents:
26135
diff
changeset
|
88 |
$(notdir $(wildcard $(gc_impl)/$(gc)/*.cpp)) \ |
bd5e6520935c
8054970: gc src file exclusion should exclude alternative sources
jcoomes
parents:
26135
diff
changeset
|
89 |
$(notdir $(wildcard $(gc_impl_alt)/$(gc)/*.cpp))) |
24472
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
90 |
Src_Files_EXCLUDE += $(gc_exclude) |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
91 |
|
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
92 |
# Exclude everything in $(gc_impl)/shared except the files listed |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
93 |
# in $(gc_shared_keep). |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
94 |
gc_shared_all := $(notdir $(wildcard $(gc_impl)/shared/*.cpp)) |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
95 |
gc_shared_keep := \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
96 |
adaptiveSizePolicy.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
97 |
ageTable.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
98 |
collectorCounters.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
99 |
cSpaceCounters.cpp \ |
25489
feb54edc509d
8049411: Minimal VM build broken after gcId.cpp was added
stefank
parents:
24472
diff
changeset
|
100 |
gcId.cpp \ |
24472
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
101 |
gcPolicyCounters.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
102 |
gcStats.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
103 |
gcTimer.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
104 |
gcTrace.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
105 |
gcTraceSend.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
106 |
gcTraceTime.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
107 |
gcUtil.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
108 |
generationCounters.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
109 |
markSweep.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
110 |
objectCountEventSender.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
111 |
spaceDecorator.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
112 |
vmGCOperations.cpp |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
113 |
Src_Files_EXCLUDE += $(filter-out $(gc_shared_keep),$(gc_shared_all)) |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
114 |
|
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
115 |
# src/share/vm/services |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
116 |
Src_Files_EXCLUDE += \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
117 |
g1MemoryPool.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
118 |
psMemoryPool.cpp |
18025 | 119 |
endif |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
120 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
121 |
ifeq ($(INCLUDE_NMT), false) |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
122 |
CXXFLAGS += -DINCLUDE_NMT=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
123 |
CFLAGS += -DINCLUDE_NMT=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
124 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
125 |
Src_Files_EXCLUDE += \ |
25946 | 126 |
memBaseline.cpp memReporter.cpp mallocTracker.cpp virtualMemoryTracker.cpp nmtCommon.cpp \ |
127 |
memTracker.cpp nmtDCmd.cpp mallocSiteTable.cpp |
|
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
128 |
endif |
18025 | 129 |
|
130 |
-include $(HS_ALT_MAKE)/excludeSrc.make |
|
18440 | 131 |
|
132 |
.PHONY: $(HS_ALT_MAKE)/excludeSrc.make |