Print this page
Split |
Close |
Expand all |
Collapse all |
--- old/make/sun/jawt/Makefile
+++ new/make/sun/jawt/Makefile
1 1 #
2 2 # Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
3 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 4 #
5 5 # This code is free software; you can redistribute it and/or modify it
6 6 # under the terms of the GNU General Public License version 2 only, as
7 7 # published by the Free Software Foundation. Oracle designates this
8 8 # particular file as subject to the "Classpath" exception as provided
9 9 # by Oracle in the LICENSE file that accompanied this code.
10 10 #
11 11 # This code is distributed in the hope that it will be useful, but WITHOUT
12 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 14 # version 2 for more details (a copy is included in the LICENSE file that
15 15 # accompanied this code).
16 16 #
17 17 # You should have received a copy of the GNU General Public License version
18 18 # 2 along with this work; if not, write to the Free Software Foundation,
19 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 20 #
21 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22 22 # or visit www.oracle.com if you need additional information or have any
23 23 # questions.
24 24 #
25 25
26 26 BUILDDIR = ../..
27 27 PACKAGE = sun.awt
28 28 LIBRARY = jawt
29 29 PRODUCT = sun
30 30
31 31 include $(BUILDDIR)/common/Defs.gmk
32 32
33 33 #
34 34 # Files
35 35 #
36 36 ifeq ($(PLATFORM), windows)
37 37 FILES_cpp = jawt.cpp
38 38 else # PLATFORM
39 39 FILES_c = jawt.c
40 40 endif # PLATFORM
41 41
42 42 FILES_h = $(INCLUDEDIR)/jawt.h \
43 43 $(PLATFORM_INCLUDE)/jawt_md.h
44 44
45 45 #
46 46 # Use mapfile
47 47 #
48 48 FILES_m = mapfile-vers
49 49 include $(BUILDDIR)/common/Mapfile-vers.gmk
50 50
51 51
52 52 ifeq ($(PLATFORM), windows)
53 53 #
54 54 # Extra C flags.
55 55 #
56 56
57 57 OTHER_CXXFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE
58 58
59 59 #
60 60 # Other extra flags needed for compiling.
61 61 #
62 62 CPPFLAGS += -I$(SHARE_SRC)/native/common \
63 63 -I$(DXSDK_INCLUDE_PATH) \
64 64 -I$(PLATFORM_SRC)/native/sun/windows \
65 65 -I$(CLASSHDRDIR)/../../awt/CClassHeaders \
66 66 -I$(SHARE_SRC)/native/sun/awt/debug \
67 67 -I$(SHARE_SRC)/native/sun/font \
68 68 -I$(SHARE_SRC)/native/sun/java2d \
69 69 -I$(SHARE_SRC)/native/sun/java2d/loops \
70 70 -I$(SHARE_SRC)/native/sun/java2d/pipe \
71 71 -I$(PLATFORM_SRC)/native/sun/java2d \
72 72 -I$(PLATFORM_SRC)/native/sun/java2d/windows \
73 73 -I$(PLATFORM_SRC)/native/sun/java2d/d3d \
74 74 -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
75 75 -I$(SHARE_SRC)/javavm/export \
76 76 -I$(PLATFORM_SRC)/javavm/export
77 77 INSTALL_DOT_LIB = true
78 78
79 79 vpath %.cpp $(PLATFORM_SRC)/native/sun/windows
80 80
81 81 #
82 82 # Libraries to link in.
83 83 #
84 84 ifeq ($(ARCH_DATA_MODEL), 64)
85 85 OTHER_LDLIBS = $(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib
86 86 else
87 87 OTHER_LDLIBS = kernel32.lib \
88 88 $(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib
89 89 endif
90 90 else # PLATFORM
91 91
92 92 #
93 93 # Other extra flags needed for compiling.
94 94 #
95 95 CPPFLAGS += -I$(OPENWIN_HOME)/include \
96 96 -I$(SHARE_SRC)/native/$(PKGDIR)/debug \
97 97 -I$(SHARE_SRC)/native/$(PKGDIR)/image \
98 98 -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
99 99 -I$(SHARE_SRC)/native/$(PKGDIR)/alphacomposite \
100 100 -I$(SHARE_SRC)/native/$(PKGDIR)/medialib \
101 101 -I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib \
102 102 -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops \
103 103 -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe \
104 104 -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl \
105 105 -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl \
↓ open down ↓ |
105 lines elided |
↑ open up ↑ |
106 106 -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 \
107 107 -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/doe \
108 108 -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/path \
109 109 -I$(PLATFORM_SRC)/native/$(PKGDIR)/../jdga \
110 110 $(EVENT_MODEL)
111 111 #
112 112 # Libraries to link in.
113 113 #
114 114 ifeq ($(PLATFORM), solaris)
115 115 ifndef BUILD_HEADLESS_ONLY
116 - OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -L$(OPENWIN_LIB) -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt -L/usr/openwin/sfw/lib$(ISA_DIR) -lXrender
116 + OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -L$(OPENWIN_LIB) -lawt_xawt -L/usr/openwin/sfw/lib$(ISA_DIR) -lXrender
117 117 else
118 - OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -L$(OPENWIN_LIB) -L$(LIBDIR)/$(LIBARCH)/headless -lmawt -L/usr/openwin/sfw/lib$(ISA_DIR) -lXrender
118 + OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -L$(OPENWIN_LIB) -lawt_headless -L/usr/openwin/sfw/lib$(ISA_DIR) -lXrender
119 119 endif
120 120 endif # PLATFORM
121 121
122 122 ifeq ($(PLATFORM), linux)
123 123 ifndef BUILD_HEADLESS_ONLY
124 - OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -lawt -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt
124 + OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -lawt -lawt_xawt
125 125 else
126 - OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -lawt -L$(LIBDIR)/$(LIBARCH)/headless -lmawt
126 + OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -lawt -lawt_headless
127 127 CFLAGS += -DHEADLESS
128 128 endif
129 129 endif # PLATFORM
130 130
131 131 endif # PLATFORM
132 132
133 133
134 134 #
135 135 # Lets not remove any class files.
136 136 #
137 137 DONT_CLOBBER_CLASSES = true
138 138
139 139 #
140 140 # Rules
141 141 #
142 142 include $(BUILDDIR)/common/Library.gmk
143 143
144 144 build: $(FILES_h)
145 145
146 146 ifeq ($(PLATFORM), windows)
147 147 include make.depend
148 148 endif
149 149
150 150 #
151 151 # Install header files.
152 152 #
153 153 $(INCLUDEDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h
154 154 $(install-file)
155 155 $(PLATFORM_INCLUDE)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
156 156 $(install-file)
157 157
158 158
159 159 #
160 160 # Extra clean rule.
161 161 #
162 162 clean clobber::
163 163 $(RM) $(FILES_h)
164 164
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX