author | mhaupt |
Mon, 11 Apr 2016 18:10:30 +0200 | |
changeset 36981 | c8671481e814 |
parent 35148 | 5cfafc99d791 |
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 |
|
34257
4be3504cc03b
8140802: Clean up and refactor of class loading code for CDS
iklam
parents:
33160
diff
changeset
|
76 |
Src_Files_EXCLUDE += classListParser.cpp classLoaderExt.cpp \ |
4be3504cc03b
8140802: Clean up and refactor of class loading code for CDS
iklam
parents:
33160
diff
changeset
|
77 |
filemap.cpp metaspaceShared*.cpp sharedClassUtil.cpp sharedPathsMiscInfo.cpp \ |
4be3504cc03b
8140802: Clean up and refactor of class loading code for CDS
iklam
parents:
33160
diff
changeset
|
78 |
systemDictionaryShared.cpp |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
79 |
endif |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
80 |
|
15482
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
14123
diff
changeset
|
81 |
ifeq ($(INCLUDE_ALL_GCS), false) |
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
14123
diff
changeset
|
82 |
CXXFLAGS += -DINCLUDE_ALL_GCS=0 |
470d0b0c09f1
8005915: Unify SERIALGC and INCLUDE_ALTERNATE_GCS
jprovino
parents:
14123
diff
changeset
|
83 |
CFLAGS += -DINCLUDE_ALL_GCS=0 |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
84 |
|
30764 | 85 |
gc_dir := $(HS_COMMON_SRC)/share/vm/gc |
86 |
gc_dir_alt := $(HS_ALT_SRC)/share/vm/gc |
|
87 |
gc_subdirs := cms g1 parallel |
|
26835
bd5e6520935c
8054970: gc src file exclusion should exclude alternative sources
jcoomes
parents:
26135
diff
changeset
|
88 |
gc_exclude := $(foreach gc,$(gc_subdirs), \ |
30764 | 89 |
$(notdir $(wildcard $(gc_dir)/$(gc)/*.cpp)) \ |
90 |
$(notdir $(wildcard $(gc_dir_alt)/$(gc)/*.cpp))) |
|
91 |
Src_Files_EXCLUDE += $(gc_exclude) \ |
|
92 |
concurrentGCThread.cpp \ |
|
93 |
plab.cpp |
|
24472
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
94 |
|
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
95 |
# src/share/vm/services |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
96 |
Src_Files_EXCLUDE += \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
97 |
g1MemoryPool.cpp \ |
e2485ae797a4
8042255: make gc src file exclusion more automatic
jcoomes
parents:
23472
diff
changeset
|
98 |
psMemoryPool.cpp |
18025 | 99 |
endif |
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
100 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
101 |
ifeq ($(INCLUDE_NMT), false) |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
102 |
CXXFLAGS += -DINCLUDE_NMT=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
103 |
CFLAGS += -DINCLUDE_NMT=0 |
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
104 |
|
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
105 |
Src_Files_EXCLUDE += \ |
25946 | 106 |
memBaseline.cpp memReporter.cpp mallocTracker.cpp virtualMemoryTracker.cpp nmtCommon.cpp \ |
107 |
memTracker.cpp nmtDCmd.cpp mallocSiteTable.cpp |
|
13975
2f7431485cfa
7189254: Change makefiles for more flexibility to override defaults
jprovino
parents:
diff
changeset
|
108 |
endif |
18025 | 109 |
|
35148 | 110 |
ifneq (,$(findstring $(Platform_arch_model), aarch64, arm_64, sparc, x86_64)) |
111 |
# JVMCI is supported |
|
33160
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
112 |
else |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
113 |
INCLUDE_JVMCI := false |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
114 |
endif |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
115 |
|
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
116 |
ifeq ($(INCLUDE_JVMCI), false) |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
117 |
CXXFLAGS += -DINCLUDE_JVMCI=0 |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
118 |
CFLAGS += -DINCLUDE_JVMCI=0 |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
119 |
|
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
120 |
jvmci_dir := $(HS_COMMON_SRC)/share/vm/jvmci |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
121 |
jvmci_dir_alt := $(HS_ALT_SRC)/share/vm/jvmci |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
122 |
jvmci_exclude := $(notdir $(wildcard $(jvmci_dir)/*.cpp)) \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
123 |
$(notdir $(wildcard $(jvmci_dir_alt)/*.cpp)) |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
124 |
Src_Files_EXCLUDE += $(jvmci_exclude) \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
125 |
jvmciCodeInstaller_aarch64.cpp jvmciCodeInstaller_ppc.cpp jvmciCodeInstaller_sparc.cpp \ |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
126 |
jvmciCodeInstaller_x86.cpp |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
127 |
endif |
c59f1676d27e
8136421: JEP 243: Java-Level JVM Compiler Interface
twisti
parents:
30764
diff
changeset
|
128 |
|
18025 | 129 |
-include $(HS_ALT_MAKE)/excludeSrc.make |
18440 | 130 |
|
131 |
.PHONY: $(HS_ALT_MAKE)/excludeSrc.make |