2
+ − 1
#
715
+ − 2
# Copyright 1999-2008 Sun Microsystems, Inc. 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
+ − 7
# published by the Free Software Foundation. Sun designates this
+ − 8
# particular file as subject to the "Classpath" exception as provided
+ − 9
# by Sun 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
+ − 22
# CA 95054 USA or visit www.sun.com if you need additional information or
+ − 23
# have any questions.
+ − 24
#
+ − 25
+ − 26
BUILDDIR = ../..
+ − 27
PACKAGE = sun.awt
+ − 28
LIBRARY = jawt
+ − 29
PRODUCT = sun
+ − 30
+ − 31
include $(BUILDDIR)/common/Defs.gmk
+ − 32
+ − 33
#
+ − 34
# Files
+ − 35
#
+ − 36
ifeq ($(PLATFORM), windows)
+ − 37
FILES_cpp = jawt.cpp
+ − 38
else # PLATFORM
+ − 39
FILES_c = jawt.c
+ − 40
endif # PLATFORM
+ − 41
+ − 42
FILES_h = $(INCLUDEDIR)/jawt.h \
+ − 43
$(PLATFORM_INCLUDE)/jawt_md.h
+ − 44
+ − 45
#
+ − 46
# Use mapfile
+ − 47
#
+ − 48
FILES_m = mapfile-vers
+ − 49
include $(BUILDDIR)/common/Mapfile-vers.gmk
+ − 50
+ − 51
+ − 52
ifeq ($(PLATFORM), windows)
+ − 53
#
+ − 54
# Extra C flags.
+ − 55
#
+ − 56
+ − 57
OTHER_CXXFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE
+ − 58
+ − 59
#
+ − 60
# Other extra flags needed for compiling.
+ − 61
#
+ − 62
CPPFLAGS += -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
+ − 77
INSTALL_DOT_LIB = true
+ − 78
+ − 79
vpath %.cpp $(PLATFORM_SRC)/native/sun/windows
+ − 80
+ − 81
#
+ − 82
# Libraries to link in.
+ − 83
#
+ − 84
ifeq ($(ARCH_DATA_MODEL), 64)
+ − 85
OTHER_LDLIBS = $(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib
+ − 86
else
+ − 87
OTHER_LDLIBS = kernel32.lib \
+ − 88
$(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib
+ − 89
endif
+ − 90
else # PLATFORM
+ − 91
+ − 92
#
+ − 93
# Other extra flags needed for compiling.
+ − 94
#
+ − 95
CPPFLAGS += -I$(OPENWIN_HOME)/include \
+ − 96
-I$(SHARE_SRC)/native/$(PKGDIR)/debug \
+ − 97
-I$(SHARE_SRC)/native/$(PKGDIR)/image \
+ − 98
-I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
+ − 99
-I$(SHARE_SRC)/native/$(PKGDIR)/alphacomposite \
+ − 100
-I$(SHARE_SRC)/native/$(PKGDIR)/medialib \
+ − 101
-I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib \
+ − 102
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops \
+ − 103
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe \
+ − 104
-I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl \
+ − 105
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl \
+ − 106
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 \
+ − 107
-I$(SHARE_SRC)/native/$(PKGDIR)/../dc/doe \
+ − 108
-I$(SHARE_SRC)/native/$(PKGDIR)/../dc/path \
+ − 109
-I$(PLATFORM_SRC)/native/$(PKGDIR)/../jdga \
+ − 110
$(EVENT_MODEL)
+ − 111
#
+ − 112
# Libraries to link in.
+ − 113
#
+ − 114
ifeq ($(PLATFORM), solaris)
+ − 115
OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -L$(OPENWIN_LIB) -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt
+ − 116
endif # PLATFORM
+ − 117
+ − 118
ifeq ($(PLATFORM), linux)
+ − 119
OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -lawt -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt
+ − 120
endif # PLATFORM
+ − 121
+ − 122
endif # PLATFORM
+ − 123
+ − 124
+ − 125
#
+ − 126
# Lets not remove any class files.
+ − 127
#
+ − 128
DONT_CLOBBER_CLASSES = true
+ − 129
+ − 130
#
+ − 131
# Rules
+ − 132
#
+ − 133
include $(BUILDDIR)/common/Library.gmk
+ − 134
+ − 135
build: $(FILES_h)
+ − 136
+ − 137
ifeq ($(PLATFORM), windows)
+ − 138
include make.depend
+ − 139
endif
+ − 140
+ − 141
#
+ − 142
# Install header files.
+ − 143
#
+ − 144
$(INCLUDEDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h
+ − 145
$(install-file)
+ − 146
$(PLATFORM_INCLUDE)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
+ − 147
$(install-file)
+ − 148
+ − 149
+ − 150
#
+ − 151
# Extra clean rule.
+ − 152
#
+ − 153
clean clobber::
+ − 154
$(RM) $(FILES_h)
+ − 155