Makefile revision 225
27caf7f48edaed40a295eaeefbfdeaf9ced10ff9Christian Clausen#
27caf7f48edaed40a295eaeefbfdeaf9ced10ff9Christian Clausen# Copyright 2000-2007 Sun Microsystems, Inc. All Rights Reserved.
27caf7f48edaed40a295eaeefbfdeaf9ced10ff9Christian Clausen# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen#
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen# This code is free software; you can redistribute it and/or modify it
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen# under the terms of the GNU General Public License version 2 only, as
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen# published by the Free Software Foundation. Sun designates this
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen# particular file as subject to the "Classpath" exception as provided
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen# by Sun in the LICENSE file that accompanied this code.
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen#
9207b76195d960634cc7bf91a1c9331632fedf29Christian Clausen# This code is distributed in the hope that it will be useful, but WITHOUT
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
9207b76195d960634cc7bf91a1c9331632fedf29Christian Clausen# version 2 for more details (a copy is included in the LICENSE file that
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen# accompanied this code).
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen#
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen# You should have received a copy of the GNU General Public License version
9207b76195d960634cc7bf91a1c9331632fedf29Christian Clausen# 2 along with this work; if not, write to the Free Software Foundation,
4e91a7a04053ace25f8a60fd6e777fd620948176Christian Clausen# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
27caf7f48edaed40a295eaeefbfdeaf9ced10ff9Christian Clausen#
39c4771c707df2e99dd89378a82b21682deb90f5Tim Reddehase# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
39c4771c707df2e99dd89378a82b21682deb90f5Tim Reddehase# CA 95054 USA or visit www.sun.com if you need additional information or
39c4771c707df2e99dd89378a82b21682deb90f5Tim Reddehase# have any questions.
39c4771c707df2e99dd89378a82b21682deb90f5Tim Reddehase#
39c4771c707df2e99dd89378a82b21682deb90f5Tim Reddehase
9207b76195d960634cc7bf91a1c9331632fedf29Christian Clausen#
3af118695056ef1eba8d1980768c64631744a198Tim Reddehase# Makefile for building javaw.exe (for windows)
#
BUILDDIR = ../../..
PROGRAM = javaw
PRODUCT = java
#
# Statically link javaw to avoid the dependency on msvcr71.dll. This
# must be set before Defs.gmk is included.
#
MS_RUNTIME_STATIC = true
#
# Statically link javaw to avoid the dependency on jli.dll. This
# must be set before Program.gmk is included.
#
STATIC_JLI = true
include $(BUILDDIR)/common/Defs.gmk
OTHER_CPPFLAGS += -DJAVAW
LDLIBS_COMMON += user32.lib comctl32.lib
# Override the default version info with our own resource file (see 5106536)
ifeq ($(PLATFORM), windows)
ifdef OPENJDK
RC_FLAGS += -i "$(PLATFORM_SRC)/resource/icons"
else
RC_FLAGS += -i "$(CLOSED_SRC)/windows/native/sun/windows"
endif
VERSIONINFO_RESOURCE = $(PLATFORM_SRC)/resource/java.rc
endif
#
# Rules.
#
include $(BUILDDIR)/common/Program.gmk
OTHER_CPPFLAGS += -DEXPAND_CLASSPATH_WILDCARDS
OTHER_CPPFLAGS += -DLAUNCHER_NAME=\"$(LAUNCHER_NAME)\"