Mercurial > hg > truffle
annotate make/bsd/makefiles/universal.gmk @ 21215:e11eb6ec180e
Use double-checked locking in HotSpotConstantPool.lookupType.
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Mon, 04 May 2015 23:15:42 +0200 |
parents | 63bae08b051e |
children |
rev | line source |
---|---|
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
1 # |
17960
cdf27f6a6d01
8038132: jprt bundles have libjsig.dylib in different place on OSX
dcubed
parents:
12859
diff
changeset
|
2 # Copyright (c) 2006, 2014, Oracle and/or its affiliates. All rights reserved. |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
4 # |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
5 # This code is free software; you can redistribute it and/or modify it |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
6 # under the terms of the GNU General Public License version 2 only, as |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
7 # published by the Free Software Foundation. |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
8 # |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
9 # This code is distributed in the hope that it will be useful, but WITHOUT |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
10 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
12 # version 2 for more details (a copy is included in the LICENSE file that |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
13 # accompanied this code). |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
14 # |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
15 # You should have received a copy of the GNU General Public License version |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
16 # 2 along with this work; if not, write to the Free Software Foundation, |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
17 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
18 # |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
19 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
20 # or visit www.oracle.com if you need additional information or have any |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
21 # questions. |
12859
f509b8f4699b
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
6174
diff
changeset
|
22 # |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
23 # |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
24 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
25 # macosx universal builds |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
26 universal_product: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
27 $(MAKE) MACOSX_UNIVERSAL=true all_product_universal |
20424
63bae08b051e
8057643: Unable to build --with-debug-level=optimized on OSX
kvn
parents:
17960
diff
changeset
|
28 universal_optimized: |
63bae08b051e
8057643: Unable to build --with-debug-level=optimized on OSX
kvn
parents:
17960
diff
changeset
|
29 $(MAKE) MACOSX_UNIVERSAL=true all_optimized_universal |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
30 universal_fastdebug: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
31 $(MAKE) MACOSX_UNIVERSAL=true all_fastdebug_universal |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
32 universal_debug: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
33 $(MAKE) MACOSX_UNIVERSAL=true all_debug_universal |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
34 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
35 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
36 # Universal builds include 1 or more architectures in a single binary |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
37 all_product_universal: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
38 # $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=32 $(COMMON_VM_PRODUCT_TARGETS) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
39 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=64 $(COMMON_VM_PRODUCT_TARGETS) |
12859
f509b8f4699b
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
6174
diff
changeset
|
40 $(QUIETLY) $(MAKE) BUILD_FLAVOR=product EXPORT_SUBDIR= universalize |
20424
63bae08b051e
8057643: Unable to build --with-debug-level=optimized on OSX
kvn
parents:
17960
diff
changeset
|
41 all_optimized_universal: |
63bae08b051e
8057643: Unable to build --with-debug-level=optimized on OSX
kvn
parents:
17960
diff
changeset
|
42 # $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=32 $(COMMON_VM_OPTIMIZED_TARGETS) |
63bae08b051e
8057643: Unable to build --with-debug-level=optimized on OSX
kvn
parents:
17960
diff
changeset
|
43 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=64 $(COMMON_VM_OPTIMIZED_TARGETS) |
63bae08b051e
8057643: Unable to build --with-debug-level=optimized on OSX
kvn
parents:
17960
diff
changeset
|
44 $(QUIETLY) $(MAKE) BUILD_FLAVOR=optimized EXPORT_SUBDIR=/optimized universalize |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
45 all_fastdebug_universal: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
46 # $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=32 $(COMMON_VM_FASTDEBUG_TARGETS) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
47 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=64 $(COMMON_VM_FASTDEBUG_TARGETS) |
12859
f509b8f4699b
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
6174
diff
changeset
|
48 $(QUIETLY) $(MAKE) BUILD_FLAVOR=fastdebug EXPORT_SUBDIR=/fastdebug universalize |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
49 all_debug_universal: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
50 # $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=32 $(COMMON_VM_DEBUG_TARGETS) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
51 $(QUIETLY) $(MAKE) ARCH_DATA_MODEL=64 $(COMMON_VM_DEBUG_TARGETS) |
12859
f509b8f4699b
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
6174
diff
changeset
|
52 $(QUIETLY) $(MAKE) BUILD_FLAVOR=debug EXPORT_SUBDIR=/debug universalize |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
53 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
54 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
55 # Consolidate architecture builds into a single Universal binary |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
56 universalize: $(UNIVERSAL_LIPO_LIST) $(UNIVERSAL_COPY_LIST) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
57 $(RM) -r $(EXPORT_PATH)/jre/lib/{i386,amd64} |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
58 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
59 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
60 # Package built libraries in a universal binary |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
61 $(UNIVERSAL_LIPO_LIST): |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
62 BUILT_LIPO_FILES="`find $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@) 2>/dev/null`"; \ |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
63 if [ -n "$${BUILT_LIPO_FILES}" ]; then \ |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
64 $(MKDIR) -p $(shell dirname $@); \ |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
65 lipo -create -output $@ $${BUILT_LIPO_FILES}; \ |
12859
f509b8f4699b
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
6174
diff
changeset
|
66 fi |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
67 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
68 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
69 # Copy built non-universal binaries in place |
12859
f509b8f4699b
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
6174
diff
changeset
|
70 # - copies directories; including empty dirs |
f509b8f4699b
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
6174
diff
changeset
|
71 # - copies files, symlinks, other non-directory files |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
72 $(UNIVERSAL_COPY_LIST): |
12859
f509b8f4699b
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
6174
diff
changeset
|
73 BUILT_COPY_FILES="`find $(EXPORT_JRE_LIB_DIR)/{i386,amd64}/$(subst $(EXPORT_JRE_LIB_DIR)/,,$@) -prune 2>/dev/null`"; \ |
4886
64b46f975ab8
7142616: MAC: Honor ALT_EXPORT_PATH overrides from JDK control builds
phh
parents:
4865
diff
changeset
|
74 if [ -n "$${BUILT_COPY_FILES}" ]; then \ |
64b46f975ab8
7142616: MAC: Honor ALT_EXPORT_PATH overrides from JDK control builds
phh
parents:
4865
diff
changeset
|
75 for i in $${BUILT_COPY_FILES}; do \ |
12859
f509b8f4699b
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
6174
diff
changeset
|
76 $(MKDIR) -p $(shell dirname $@); \ |
f509b8f4699b
7165611: implement Full Debug Symbols on MacOS X hotspot
dcubed
parents:
6174
diff
changeset
|
77 $(CP) -R $${i} $@; \ |
4886
64b46f975ab8
7142616: MAC: Honor ALT_EXPORT_PATH overrides from JDK control builds
phh
parents:
4865
diff
changeset
|
78 done; \ |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
79 fi |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
80 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
81 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
82 # Replace arch specific binaries with universal binaries |
17960
cdf27f6a6d01
8038132: jprt bundles have libjsig.dylib in different place on OSX
dcubed
parents:
12859
diff
changeset
|
83 # Do not touch jre/lib/{client,server}/libjsig.$(LIBRARY_SUFFIX) |
cdf27f6a6d01
8038132: jprt bundles have libjsig.dylib in different place on OSX
dcubed
parents:
12859
diff
changeset
|
84 # That symbolic link belongs to the 'jdk' build. |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
85 export_universal: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
86 $(RM) -r $(EXPORT_PATH)/jre/lib/{i386,amd64} |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
87 $(RM) -r $(JDK_IMAGE_DIR)/jre/lib/{i386,amd64} |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
88 ($(CD) $(EXPORT_PATH) && \ |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
89 $(TAR) -cf - *) | \ |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
90 ($(CD) $(JDK_IMAGE_DIR) && $(TAR) -xpf -) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
91 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
92 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
93 # Overlay universal binaries |
17960
cdf27f6a6d01
8038132: jprt bundles have libjsig.dylib in different place on OSX
dcubed
parents:
12859
diff
changeset
|
94 # Do not touch jre/lib/{client,server}/libjsig.$(LIBRARY_SUFFIX) |
cdf27f6a6d01
8038132: jprt bundles have libjsig.dylib in different place on OSX
dcubed
parents:
12859
diff
changeset
|
95 # That symbolic link belongs to the 'jdk' build. |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
96 copy_universal: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
97 $(RM) -r $(JDK_IMAGE_DIR)$(COPY_SUBDIR)/jre/lib/{i386,amd64} |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
98 ($(CD) $(EXPORT_PATH)$(COPY_SUBDIR) && \ |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
99 $(TAR) -cf - *) | \ |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
100 ($(CD) $(JDK_IMAGE_DIR)$(COPY_SUBDIR) && $(TAR) -xpf -) |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
101 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
102 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
103 # Additional processing for universal builds |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
104 export_product_jdk:: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
105 $(MAKE) EXPORT_SUBDIR= export_universal |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
106 export_optimized_jdk:: |
20424
63bae08b051e
8057643: Unable to build --with-debug-level=optimized on OSX
kvn
parents:
17960
diff
changeset
|
107 $(MAKE) EXPORT_SUBDIR=/optimized export_universal |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
108 export_fastdebug_jdk:: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
109 $(MAKE) EXPORT_SUBDIR=/fastdebug export_universal |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
110 export_debug_jdk:: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
111 $(MAKE) EXPORT_SUBDIR=/debug export_universal |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
112 copy_product_jdk:: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
113 $(MAKE) COPY_SUBDIR= copy_universal |
20424
63bae08b051e
8057643: Unable to build --with-debug-level=optimized on OSX
kvn
parents:
17960
diff
changeset
|
114 copy_optimized_jdk:: |
63bae08b051e
8057643: Unable to build --with-debug-level=optimized on OSX
kvn
parents:
17960
diff
changeset
|
115 $(MAKE) COPY_SUBDIR=/optimized copy_universal |
4865
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
116 copy_fastdebug_jdk:: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
117 $(MAKE) COPY_SUBDIR=/fastdebug copy_universal |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
118 copy_debug_jdk:: |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
119 $(MAKE) COPY_SUBDIR=/debug copy_universal |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
120 |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
121 .PHONY: universal_product universal_fastdebug universal_debug \ |
481a9443f721
7123386: RFE: Preserve universal builds of HotSpot on Mac OS X
phh
parents:
diff
changeset
|
122 all_product_universal all_fastdebug_universal all_debug_universal \ |
20424
63bae08b051e
8057643: Unable to build --with-debug-level=optimized on OSX
kvn
parents:
17960
diff
changeset
|
123 universal_optimized all_optimized_universal \ |
6174
74533f63b116
7178667: ALT_EXPORT_PATH does not export server jvm on macosx
sla
parents:
4886
diff
changeset
|
124 universalize export_universal copy_universal \ |
74533f63b116
7178667: ALT_EXPORT_PATH does not export server jvm on macosx
sla
parents:
4886
diff
changeset
|
125 $(UNIVERSAL_LIPO_LIST) $(UNIVERSAL_COPY_LIST) |