author | mdoerr |
Fri, 09 Oct 2015 20:58:25 +0200 | |
changeset 33462 | 5f04d430d53d |
parent 33160 | c59f1676d27e |
child 34257 | 4be3504cc03b |
permissions | -rw-r--r-- |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
1 |
# |
30764 | 2 |
# Copyright (c) 2014, 2015, 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 |
|
30764 | 84 |
gc_dir := $(HS_COMMON_SRC)/share/vm/gc |
85 |
gc_dir_alt := $(HS_ALT_SRC)/share/vm/gc |
|
86 |
gc_subdirs := cms g1 parallel |
|
26835
bd5e6520935c
8054970: gc src file exclusion should exclude alternative sources
jcoomes
parents:
26135
diff
changeset
|
87 |
gc_exclude := $(foreach gc,$(gc_subdirs), \ |
30764 | 88 |
$(notdir $(wildcard $(gc_dir)/$(gc)/*.cpp)) \ |
89 |
$(notdir $(wildcard $(gc_dir_alt)/$(gc)/*.cpp))) |
|
90 |
Src_Files_EXCLUDE += $(gc_exclude) \ |
|
91 |
concurrentGCThread.cpp \ |
|
92 |
plab.cpp |
|
24472
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
93 |
|
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
94 |
# src/share/vm/services |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
95 |
Src_Files_EXCLUDE += \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
96 |
g1MemoryPool.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
97 |
psMemoryPool.cpp |
18025 | 98 |
endif |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
99 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
100 |
ifeq ($(INCLUDE_NMT), false) |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
101 |
CXXFLAGS += -DINCLUDE_NMT=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
102 |
CFLAGS += -DINCLUDE_NMT=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
103 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
104 |
Src_Files_EXCLUDE += \ |
25946 | 105 |
memBaseline.cpp memReporter.cpp mallocTracker.cpp virtualMemoryTracker.cpp nmtCommon.cpp \ |
106 |
memTracker.cpp nmtDCmd.cpp mallocSiteTable.cpp |
|
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
107 |
endif |
18025 | 108 |
|
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
109 |
ifneq (,$(findstring $(Platform_arch_model), x86_64, sparc)) |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
110 |
# JVMCI is supported only on x86_64 and SPARC. |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
111 |
else |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
112 |
INCLUDE_JVMCI := false |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
113 |
endif |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
114 |
|
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
115 |
ifeq ($(INCLUDE_JVMCI), false) |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
116 |
CXXFLAGS += -DINCLUDE_JVMCI=0 |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
117 |
CFLAGS += -DINCLUDE_JVMCI=0 |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
118 |
|
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
119 |
jvmci_dir := $(HS_COMMON_SRC)/share/vm/jvmci |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
120 |
jvmci_dir_alt := $(HS_ALT_SRC)/share/vm/jvmci |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
121 |
jvmci_exclude := $(notdir $(wildcard $(jvmci_dir)/*.cpp)) \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
122 |
$(notdir $(wildcard $(jvmci_dir_alt)/*.cpp)) |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
123 |
Src_Files_EXCLUDE += $(jvmci_exclude) \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
124 |
jvmciCodeInstaller_aarch64.cpp jvmciCodeInstaller_ppc.cpp jvmciCodeInstaller_sparc.cpp \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
125 |
jvmciCodeInstaller_x86.cpp |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
126 |
endif |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
127 |
|
18025 | 128 |
-include $(HS_ALT_MAKE)/excludeSrc.make |
18440 | 129 |
|
130 |
.PHONY: $(HS_ALT_MAKE)/excludeSrc.make |