source: trunk/openjdk/jdk/make/sun/jawt/Makefile

Last change on this file was 278, checked in by dmik, 14 years ago

trunk: Merged in openjdk6 b22 from branches/vendor/oracle.

File size: 5.7 KB
Line 
1#
2# Copyright (c) 1999, 2006, Oracle and/or its affiliates. All rights reserved.
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
7# published by the Free Software Foundation. Oracle designates this
8# particular file as subject to the "Classpath" exception as provided
9# by Oracle in the LICENSE file that accompanied this code.
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#
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.
24#
25
26BUILDDIR = ../..
27PACKAGE = sun.awt
28LIBRARY = jawt
29PRODUCT = sun
30
31include $(BUILDDIR)/common/Defs.gmk
32
33#
34# Files
35#
36ifeq ($(filter-out windows os2, $(PLATFORM)),)
37FILES_cpp = jawt.cpp
38else # PLATFORM
39FILES_c = jawt.c
40endif # PLATFORM
41
42FILES_h = $(INCLUDEDIR)/jawt.h \
43 $(PLATFORM_INCLUDE)/jawt_md.h
44
45#
46# Use mapfile
47#
48FILES_m = mapfile-vers
49include $(BUILDDIR)/common/Mapfile-vers.gmk
50
51
52ifeq ($(PLATFORM), windows)
53#
54# Extra C flags.
55#
56
57OTHER_CXXFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE
58
59#
60# Other extra flags needed for compiling.
61#
62CPPFLAGS += -I$(SHARE_SRC)/native/common \
63 -I$(DXSDK_INCLUDE_PATH) \
64 -I$(PLATFORM_SRC)/native/sun/windows \
65 -I$(CLASSHDRDIR)/../../awt/CClassHeaders \
66 -I$(SHARE_SRC)/native/sun/awt/debug \
67 -I$(SHARE_SRC)/native/sun/font \
68 -I$(SHARE_SRC)/native/sun/java2d \
69 -I$(SHARE_SRC)/native/sun/java2d/loops \
70 -I$(SHARE_SRC)/native/sun/java2d/pipe \
71 -I$(PLATFORM_SRC)/native/sun/java2d \
72 -I$(PLATFORM_SRC)/native/sun/java2d/windows \
73 -I$(PLATFORM_SRC)/native/sun/java2d/d3d \
74 -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
75 -I$(SHARE_SRC)/javavm/export \
76 -I$(PLATFORM_SRC)/javavm/export
77INSTALL_DOT_LIB = true
78
79vpath %.cpp $(PLATFORM_SRC)/native/sun/windows
80
81#
82# Libraries to link in.
83#
84ifeq ($(ARCH_DATA_MODEL), 64)
85OTHER_LDLIBS = $(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib
86else
87OTHER_LDLIBS = /nod:kernel32.lib /nod:advapi32.lib /nod:user32.lib \
88 /nod:gdi32.lib /nod:shell32.lib /nod:comdlg32.lib \
89 /nod:version.lib /nod:mpr.lib /nod:rasapi32.lib \
90 /nod:winmm.lib /nod:winspool.lib /nod:vfw32.lib \
91 /nod:secur32.lib /nod:oleacc.lib /nod:oledlg.lib \
92 /nod:sensapi.lib \
93 $(UNICOWS_LIB_PATH)/unicows.lib kernel32.lib \
94 $(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib
95endif
96else
97ifeq ($(PLATFORM), os2)
98
99OTHER_CXXFLAGS += -DUNICODE -D_UNICODE
100
101#
102# Other extra flags needed for compiling.
103#
104CPPFLAGS += -I$(SHARE_SRC)/native/common \
105 -I$(PLATFORM_SRC)/native/sun/windows \
106 -I$(CLASSHDRDIR:%/jawt/CClassHeaders=%/awt/CClassHeaders) \
107 -I$(SHARE_SRC)/native/sun/awt/debug \
108 -I$(SHARE_SRC)/native/sun/font \
109 -I$(SHARE_SRC)/native/sun/java2d \
110 -I$(SHARE_SRC)/native/sun/java2d/loops \
111 -I$(SHARE_SRC)/native/sun/java2d/pipe \
112 -I$(PLATFORM_SRC)/native/sun/java2d \
113 -I$(PLATFORM_SRC)/native/sun/java2d/windows \
114 -I$(PLATFORM_SRC)/native/sun/java2d/d3d \
115 -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
116 -I$(SHARE_SRC)/javavm/export \
117 -I$(PLATFORM_SRC)/javavm/export
118INSTALL_DOT_LIB = true
119
120vpath %.cpp $(PLATFORM_SRC)/native/sun/windows
121
122OTHER_LDLIBS = -lkernel32.lib -ladvapi32.lib -luser32.lib \
123 -lgdi32.lib -lshell32.lib -lcomdlg32.lib \
124 -lversion.lib -lmpr.lib -lrasapi32.lib \
125 -lwinmm.lib -lwinspool.lib \
126 -lsecur32.lib -loleacc.lib -loledlg.lib \
127 -l$(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib
128else # PLATFORM
129
130#
131# Other extra flags needed for compiling.
132#
133CPPFLAGS += -I$(OPENWIN_HOME)/include \
134 -I$(MOTIF_DIR)/include \
135 -I$(SHARE_SRC)/native/$(PKGDIR)/debug \
136 -I$(SHARE_SRC)/native/$(PKGDIR)/image \
137 -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
138 -I$(SHARE_SRC)/native/$(PKGDIR)/alphacomposite \
139 -I$(SHARE_SRC)/native/$(PKGDIR)/medialib \
140 -I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib \
141 -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops \
142 -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe \
143 -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl \
144 -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl \
145 -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 \
146 -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/doe \
147 -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/path \
148 -I$(PLATFORM_SRC)/native/$(PKGDIR)/../jdga \
149 $(EVENT_MODEL)
150#
151# Libraries to link in.
152#
153ifeq ($(PLATFORM), solaris)
154OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -L$(OPENWIN_LIB) -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt
155endif # PLATFORM
156
157ifeq ($(PLATFORM), linux)
158OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -lawt -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt
159endif # PLATFORM
160
161endif # PLATFORM
162endif # PLATFORM
163
164
165#
166# Lets not remove any class files.
167#
168DONT_CLOBBER_CLASSES = true
169
170#
171# Rules
172#
173include $(BUILDDIR)/common/Library.gmk
174
175build: $(FILES_h)
176
177ifeq ($(PLATFORM), windows)
178include make.depend
179endif
180
181#
182# Install header files.
183#
184$(INCLUDEDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h
185 $(install-file)
186$(PLATFORM_INCLUDE)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
187 $(install-file)
188
189
190#
191# Extra clean rule.
192#
193clean clobber::
194 $(RM) $(FILES_h)
195
Note: See TracBrowser for help on using the repository browser.