author | ohair |
Tue, 25 May 2010 15:58:33 -0700 | |
changeset 5506 | 202f599c92aa |
parent 4665 | d14dc3d9e1fa |
child 5580 | 629274e4c99f |
permissions | -rw-r--r-- |
2 | 1 |
# |
5506 | 2 |
# Copyright (c) 1999, 2008, 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 |
BUILDDIR = ../.. |
|
4665
d14dc3d9e1fa
6911737: Module build: generate modules with native libraries and any other files not in jar
mchung
parents:
715
diff
changeset
|
27 |
MODULE = awt |
2 | 28 |
PACKAGE = sun.awt |
29 |
LIBRARY = jawt |
|
30 |
PRODUCT = sun |
|
31 |
||
32 |
include $(BUILDDIR)/common/Defs.gmk |
|
33 |
||
34 |
# |
|
35 |
# Files |
|
36 |
# |
|
37 |
ifeq ($(PLATFORM), windows) |
|
38 |
FILES_cpp = jawt.cpp |
|
39 |
else # PLATFORM |
|
40 |
FILES_c = jawt.c |
|
41 |
endif # PLATFORM |
|
42 |
||
43 |
FILES_h = $(INCLUDEDIR)/jawt.h \ |
|
44 |
$(PLATFORM_INCLUDE)/jawt_md.h |
|
45 |
||
46 |
# |
|
47 |
# Use mapfile |
|
48 |
# |
|
49 |
FILES_m = mapfile-vers |
|
50 |
include $(BUILDDIR)/common/Mapfile-vers.gmk |
|
51 |
||
52 |
||
53 |
ifeq ($(PLATFORM), windows) |
|
54 |
# |
|
55 |
# Extra C flags. |
|
56 |
# |
|
57 |
||
58 |
OTHER_CXXFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE |
|
59 |
||
60 |
# |
|
61 |
# Other extra flags needed for compiling. |
|
62 |
# |
|
63 |
CPPFLAGS += -I$(SHARE_SRC)/native/common \ |
|
64 |
-I$(DXSDK_INCLUDE_PATH) \ |
|
65 |
-I$(PLATFORM_SRC)/native/sun/windows \ |
|
66 |
-I$(CLASSHDRDIR)/../../awt/CClassHeaders \ |
|
67 |
-I$(SHARE_SRC)/native/sun/awt/debug \ |
|
68 |
-I$(SHARE_SRC)/native/sun/font \ |
|
69 |
-I$(SHARE_SRC)/native/sun/java2d \ |
|
70 |
-I$(SHARE_SRC)/native/sun/java2d/loops \ |
|
71 |
-I$(SHARE_SRC)/native/sun/java2d/pipe \ |
|
72 |
-I$(PLATFORM_SRC)/native/sun/java2d \ |
|
73 |
-I$(PLATFORM_SRC)/native/sun/java2d/windows \ |
|
74 |
-I$(PLATFORM_SRC)/native/sun/java2d/d3d \ |
|
75 |
-I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \ |
|
76 |
-I$(SHARE_SRC)/javavm/export \ |
|
77 |
-I$(PLATFORM_SRC)/javavm/export |
|
78 |
INSTALL_DOT_LIB = true |
|
79 |
||
80 |
vpath %.cpp $(PLATFORM_SRC)/native/sun/windows |
|
81 |
||
82 |
# |
|
83 |
# Libraries to link in. |
|
84 |
# |
|
85 |
ifeq ($(ARCH_DATA_MODEL), 64) |
|
86 |
OTHER_LDLIBS = $(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib |
|
87 |
else |
|
88 |
OTHER_LDLIBS = kernel32.lib \ |
|
89 |
$(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib |
|
90 |
endif |
|
91 |
else # PLATFORM |
|
92 |
||
93 |
# |
|
94 |
# Other extra flags needed for compiling. |
|
95 |
# |
|
96 |
CPPFLAGS += -I$(OPENWIN_HOME)/include \ |
|
97 |
-I$(SHARE_SRC)/native/$(PKGDIR)/debug \ |
|
98 |
-I$(SHARE_SRC)/native/$(PKGDIR)/image \ |
|
99 |
-I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \ |
|
100 |
-I$(SHARE_SRC)/native/$(PKGDIR)/alphacomposite \ |
|
101 |
-I$(SHARE_SRC)/native/$(PKGDIR)/medialib \ |
|
102 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib \ |
|
103 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops \ |
|
104 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe \ |
|
105 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl \ |
|
106 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl \ |
|
107 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 \ |
|
108 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../dc/doe \ |
|
109 |
-I$(SHARE_SRC)/native/$(PKGDIR)/../dc/path \ |
|
110 |
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../jdga \ |
|
111 |
$(EVENT_MODEL) |
|
112 |
# |
|
113 |
# Libraries to link in. |
|
114 |
# |
|
115 |
ifeq ($(PLATFORM), solaris) |
|
116 |
OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -L$(OPENWIN_LIB) -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt |
|
117 |
endif # PLATFORM |
|
118 |
||
119 |
ifeq ($(PLATFORM), linux) |
|
120 |
OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -lawt -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt |
|
121 |
endif # PLATFORM |
|
122 |
||
123 |
endif # PLATFORM |
|
124 |
||
125 |
||
126 |
# |
|
127 |
# Lets not remove any class files. |
|
128 |
# |
|
129 |
DONT_CLOBBER_CLASSES = true |
|
130 |
||
131 |
# |
|
132 |
# Rules |
|
133 |
# |
|
134 |
include $(BUILDDIR)/common/Library.gmk |
|
135 |
||
136 |
build: $(FILES_h) |
|
137 |
||
138 |
ifeq ($(PLATFORM), windows) |
|
139 |
include make.depend |
|
140 |
endif |
|
141 |
||
142 |
# |
|
143 |
# Install header files. |
|
144 |
# |
|
145 |
$(INCLUDEDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h |
|
146 |
$(install-file) |
|
147 |
$(PLATFORM_INCLUDE)/%.h: $(PLATFORM_SRC)/javavm/export/%.h |
|
148 |
$(install-file) |
|
149 |
||
150 |
||
151 |
# |
|
152 |
# Extra clean rule. |
|
153 |
# |
|
154 |
clean clobber:: |
|
155 |
$(RM) $(FILES_h) |
|
156 |