author | michaelm |
Tue, 06 Mar 2012 20:34:38 +0000 | |
changeset 12047 | 320a714614e9 |
parent 9035 | 1255eb81cc2f |
child 13411 | 224a28370893 |
permissions | -rw-r--r-- |
2 | 1 |
# |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
2 |
# Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved. |
2 | 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 |
|
5506 | 7 |
# published by the Free Software Foundation. Oracle designates this |
2 | 8 |
# particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
# by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
# |
11 |
# This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
# version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
# accompanied this code). |
|
16 |
# |
|
17 |
# You should have received a copy of the GNU General Public License version |
|
18 |
# 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
# |
|
5506 | 21 |
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
# or visit www.oracle.com if you need additional information or have any |
|
23 |
# questions. |
|
2 | 24 |
# |
25 |
||
26 |
# |
|
27 |
# Java Launcher Infrastructure Library (libjli) |
|
28 |
# |
|
29 |
# This library provides shared support for the Java launcher in all of |
|
30 |
# its manifestations (java, javaw, javac, ...). |
|
31 |
# |
|
32 |
BUILDDIR = ../.. |
|
33 |
LIBRARY = jli |
|
34 |
PRODUCT = java |
|
35 |
||
36 |
# |
|
37 |
# Must be included before Defs.gmk to be functional. |
|
38 |
# |
|
39 |
# Note that for Windows, both a dynamic and static version are built. |
|
40 |
# Doing the compiles with the static library specified can be overridden |
|
41 |
# by the link step, but not the reverse. |
|
42 |
# |
|
43 |
MS_RUNTIME_STATIC = true |
|
44 |
||
45 |
include $(BUILDDIR)/common/Defs.gmk |
|
46 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
47 |
ifneq ($(SYSTEM_ZLIB),true) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
48 |
ZIP_SRC = $(SHARE_SRC)/native/java/util/zip/zlib-$(ZLIB_VERSION) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
49 |
endif #SYSTEM_ZLIB |
2 | 50 |
LAUNCHER_SHARE_SRC = $(SHARE_SRC)/bin |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
51 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
52 |
# set the platform specific directory for macosx, also this platform shares |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
53 |
# substantial family ties with its siblings (solaris and linux), thus we add |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
54 |
# solaris src path to its compilation dependencies. |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
55 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
56 |
LAUNCHER_PLATFORM_SRC = $(BUILDDIR)/../src/macosx/bin |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
57 |
LAUNCHER_SOLARIS_PLATFORM_SRC = $(BUILDDIR)/../src/solaris/bin |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
58 |
else # !MACOSX |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
59 |
LAUNCHER_PLATFORM_SRC = $(PLATFORM_SRC)/bin |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
60 |
endif #PLATFORM |
2 | 61 |
|
4111
ffc9c33335f4
6891677: java/build integrate zero assembler JDK changes
gbenson
parents:
3704
diff
changeset
|
62 |
ifeq ($(ZERO_BUILD), true) |
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
63 |
ERGO_FAMILY=zero |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
64 |
else # !ZERO_BUILD |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
65 |
ifneq (,$(findstring $(ARCH_FAMILY), amd64 x86_64)) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
66 |
ERGO_FAMILY=i586 |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
67 |
else # !X86 FAMILY |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
68 |
ERGO_FAMILY=$(ARCH_FAMILY) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
69 |
endif #ARCH_FAMILY |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
70 |
endif # ZERO_BUILD |
2 | 71 |
|
72 |
# |
|
73 |
# Files to compile. |
|
74 |
# |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
75 |
FILES_c = java.c \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
76 |
splashscreen_stubs.c \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
77 |
parse_manifest.c \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
78 |
version_comp.c \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
79 |
wildcard.c \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
80 |
jli_util.c |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
81 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
82 |
ifneq ($(SYSTEM_ZLIB),true) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
83 |
FILES_c += inflate.c \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
84 |
inftrees.c \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
85 |
inffast.c \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
86 |
zadler32.c \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
87 |
zcrc32.c \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
88 |
zutil.c |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
89 |
endif # SYSTEM_ZLIB |
2 | 90 |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
91 |
# add platform specific files |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
92 |
ifeq ($(PLATFORM), windows) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
93 |
FILES_c += java_md.c |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
94 |
else # NIXES |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
95 |
FILES_c += java_md_common.c |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
96 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
97 |
FILES_c += java_md_macosx.c |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
98 |
else # SOLARIS/LINUX |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
99 |
FILES_c += java_md_solinux.c |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
100 |
FILES_c += ergo.c |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
101 |
ERGO_ARCH_FILE = ergo_$(ERGO_FAMILY).c |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
102 |
# if the architecture specific ergo file exists then |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
103 |
# use it, else use the generic definitions from ergo.c |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
104 |
ifneq ($(wildcard $(LAUNCHER_PLATFORM_SRC)/$(ERGO_ARCH_FILE)),) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
105 |
FILES_c += $(ERGO_ARCH_FILE) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
106 |
else # !ERGO_ARCH_FILE |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
107 |
OTHER_CPPFLAGS += -DUSE_GENERIC_ERGO |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
108 |
endif # ERGO_ARCH_FILE |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
109 |
endif #MACOSX |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
110 |
endif #WINDOWS |
2 | 111 |
|
112 |
# Names of arch directories |
|
113 |
LIBARCH_DEFINES = -DLIBARCHNAME='"$(LIBARCH)"' |
|
114 |
ifeq ($(PLATFORM), solaris) |
|
115 |
LIBARCH_DEFINES += -DLIBARCH32NAME='"$(LIBARCH32)"' |
|
116 |
LIBARCH_DEFINES += -DLIBARCH64NAME='"$(LIBARCH64)"' |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
117 |
endif # PLATFORM |
2 | 118 |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
119 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
120 |
OTHER_CPPFLAGS += $(LIBARCH_DEFINES) -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
121 |
else # ! MACOSX |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
122 |
OTHER_CPPFLAGS += $(LIBARCH_DEFINES) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
123 |
endif #PLATFORM |
2 | 124 |
|
125 |
ifneq ($(PLATFORM), windows) # UNIX systems |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
126 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
127 |
LIB_LOCATION = $(LIBDIR)/jli |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
128 |
else # SOLARIS/LINUX |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
129 |
LD_RUNPATH_EXTRAS += .. |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
130 |
LIB_LOCATION = $(LIBDIR)/$(LIBARCH)/jli |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
131 |
# Note: it is important to keep this order, meaning -lc as the |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
132 |
# last library, otherwise it could cause compatibility issues |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
133 |
# by pulling in SUNW_private symbols from libc |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
134 |
LDLIBS = -ldl -lc |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
135 |
ifeq ($(USE_PTHREADS),true) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
136 |
LDLIBS += -lpthread |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
137 |
endif # USE_PTHREADS |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
138 |
endif # PLATFORM |
2 | 139 |
endif # PLATFORM |
140 |
||
141 |
ifeq ($(PLATFORM), windows) |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
142 |
EXTRA_LIBS = advapi32.lib \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
143 |
comctl32.lib \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
144 |
user32.lib |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
145 |
JAVALIB = |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
146 |
OTHER_LCF = -export:JLI_Launch \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
147 |
-export:JLI_ManifestIterate \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
148 |
-export:JLI_SetTraceLauncher \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
149 |
-export:JLI_ReportErrorMessage \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
150 |
-export:JLI_ReportErrorMessageSys \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
151 |
-export:JLI_ReportMessage \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
152 |
-export:JLI_ReportExceptionDescription |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
153 |
endif # PLATFORM |
2 | 154 |
|
155 |
OTHER_INCLUDES += -I$(LAUNCHER_SHARE_SRC) |
|
156 |
OTHER_INCLUDES += -I$(LAUNCHER_PLATFORM_SRC) |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
157 |
ifneq ($(SYSTEM_ZLIB),true) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
158 |
OTHER_INCLUDES += -I$(ZIP_SRC) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
159 |
else # !SYSTEM_ZLIB |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
160 |
LDLIBS += -lz |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
161 |
endif # SYSTEM_ZLIB |
2 | 162 |
|
163 |
# |
|
164 |
# Library to compile. |
|
165 |
# |
|
166 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
167 |
include $(BUILDDIR)/common/Library.gmk |
|
168 |
||
169 |
# |
|
170 |
# On Windows, some executable objects need to be statically linked against |
|
171 |
# the jli library. Hence, we need both a standard library (archive) and |
|
172 |
# an import library (associated with a dll). These both usually have the |
|
173 |
# extension .LIB, so they need to be placed in different directories. The |
|
174 |
# import library is build (as usual) in the $(OBJDIR) directory while the |
|
175 |
# standard library is built in a "static" subdirectory. The standard library |
|
176 |
# is not delivered as part of the product, but is only needed as part of |
|
177 |
# the build process. The import library is built by the standard rules |
|
178 |
# in Library.gmk. The additional rules which follow build the standard |
|
179 |
# library. |
|
180 |
# |
|
181 |
ifeq ($(PLATFORM), windows) |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
182 |
STATIC_LIBRARY = $(OBJDIR)/static/$(LIBPREFIX)$(LIBRARY).lib |
2 | 183 |
|
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
184 |
$(STATIC_LIBRARY): $(FILES_o) |
2 | 185 |
@$(prep-target) |
186 |
$(LIBEXE) -nologo -out:$@ $(FILES_o) |
|
187 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
188 |
library:: $(STATIC_LIBRARY) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
189 |
endif # PLATFORM |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
190 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
191 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
192 |
# Some Obj-C code is embedded in java_md_macosx.c, we stipulate so, using |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
193 |
# "-x" option. Not doing so will cause the compiler to choose the language |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
194 |
# based on the filename suffix, also "-Os" optimizes the file for size. |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
195 |
CFLAGS_$(VARIANT)/java_md_macosx.o = -Os -x objective-c |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
196 |
# Needed for linking the various launchers |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
197 |
LDFLAGS += -framework Cocoa -framework Security \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
198 |
-framework ApplicationServices |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
199 |
# Add solaris sources containing common logic to the header path |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
200 |
OTHER_INCLUDES += -I$(LAUNCHER_SOLARIS_PLATFORM_SRC) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
201 |
endif # PLATFORM |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
202 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
203 |
STATIC_LIBRARY_DIR = $(OBJDIR)/static |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
204 |
STATIC_LIBRARY_NAME = lib$(LIBRARY).a |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
205 |
STATIC_LIBRARY = $(STATIC_LIBRARY_DIR)/$(STATIC_LIBRARY_NAME) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
206 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
207 |
$(STATIC_LIBRARY_DIR): | $(OBJDIR) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
208 |
@$(MKDIR) $(STATIC_LIBRARY_DIR) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
209 |
|
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
210 |
$(STATIC_LIBRARY): $(STATIC_LIBRARY_DIR) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
211 |
@$(prep-target) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
212 |
$(AR) $(ARFLAGS) $@ $(FILES_o) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
213 |
|
2 | 214 |
library:: $(STATIC_LIBRARY) |
215 |
||
12047
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
216 |
vpath %.c $(LAUNCHER_SHARE_SRC) $(LAUNCHER_PLATFORM_SRC) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
217 |
ifneq ($(SYSTEM_ZLIB),true) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
218 |
vpath %.c $(ZIP_SRC) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
219 |
else # !SYSTEM_ZLIB |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
220 |
# |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
221 |
# Add to ambient vpath so we pick up the library files, for macos we add |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
222 |
# solaris sources which contains the common logic for all nixes |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
223 |
# |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
224 |
ifeq ($(PLATFORM), macosx) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
225 |
vpath %.c $(LAUNCHER_SHARE_SRC) $(ZIP_SRC) $(LAUNCHER_PLATFORM_SRC) \ |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
226 |
$(LAUNCHER_SOLARIS_PLATFORM_SRC) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
227 |
else # !MACOSX |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
228 |
vpath %.c $(LAUNCHER_SHARE_SRC) $(ZIP_SRC) $(LAUNCHER_PLATFORM_SRC) |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
229 |
endif # MACOSX |
320a714614e9
7113349: Initial changeset for Macosx port to jdk
michaelm
parents:
9035
diff
changeset
|
230 |
endif # SYSTEM_LIB |