Makefile revision 3876
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This code is free software; you can redistribute it and/or modify it
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri Pankov# under the terms of the GNU General Public License version 2 only, as
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# published by the Free Software Foundation. Oracle designates this
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# particular file as subject to the "Classpath" exception as provided
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# by Oracle in the LICENSE file that accompanied this code.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# This code is distributed in the hope that it will be useful, but WITHOUT
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# version 2 for more details (a copy is included in the LICENSE file that
ed22c7109fc5dd9e1b7a5d0333bdc7ad2718e2abYuri Pankov# accompanied this code).
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# You should have received a copy of the GNU General Public License version
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# 2 along with this work; if not, write to the Free Software Foundation,
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# or visit www.oracle.com if you need additional information or have any
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# questions.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweBUILDDIR = ../..
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePACKAGE = sun.awt
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweLIBRARY = jawt
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LowePRODUCT = sun
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(BUILDDIR)/common/Defs.gmk
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Files
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq ($(PLATFORM), windows)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_cpp = jawt.cpp
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweelse # PLATFORM
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_c = jawt.c
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweendif # PLATFORM
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_h = $(INCLUDEDIR)/jawt.h \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(PLATFORM_INCLUDE)/jawt_md.h
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Use mapfile
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweFILES_m = mapfile-vers
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(BUILDDIR)/common/Mapfile-vers.gmk
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq ($(PLATFORM), windows)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Extra C flags.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweOTHER_CXXFLAGS += $(GX_OPTION) -DUNICODE -D_UNICODE
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Other extra flags needed for compiling.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCPPFLAGS += -I$(SHARE_SRC)/native/common \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(DXSDK_INCLUDE_PATH) \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(PLATFORM_SRC)/native/sun/windows \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(CLASSHDRDIR)/../../awt/CClassHeaders \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/sun/awt/debug \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/sun/font \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/sun/java2d \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/sun/java2d/loops \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/sun/java2d/pipe \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(PLATFORM_SRC)/native/sun/java2d \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(PLATFORM_SRC)/native/sun/java2d/windows \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(PLATFORM_SRC)/native/sun/java2d/d3d \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/javavm/export \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(PLATFORM_SRC)/javavm/export
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweINSTALL_DOT_LIB = true
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowevpath %.cpp $(PLATFORM_SRC)/native/sun/windows
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Libraries to link in.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq ($(ARCH_DATA_MODEL), 64)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweOTHER_LDLIBS = $(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweelse
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweOTHER_LDLIBS = kernel32.lib \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(OBJDIR)/../../awt/$(OBJDIRNAME)/awt.lib
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweendif
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweelse # PLATFORM
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Other extra flags needed for compiling.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweCPPFLAGS += -I$(OPENWIN_HOME)/include \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/$(PKGDIR)/debug \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/$(PKGDIR)/image \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/$(PKGDIR)/image/cvutils \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/$(PKGDIR)/alphacomposite \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/$(PKGDIR)/medialib \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(PLATFORM_SRC)/native/$(PKGDIR)/medialib \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/loops \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/pipe \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/$(PKGDIR)/../java2d/opengl \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/opengl \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(PLATFORM_SRC)/native/$(PKGDIR)/../java2d/x11 \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/doe \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(SHARE_SRC)/native/$(PKGDIR)/../dc/path \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe -I$(PLATFORM_SRC)/native/$(PKGDIR)/../jdga \
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(EVENT_MODEL)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Libraries to link in.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq ($(PLATFORM), solaris)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ifndef BUILD_HEADLESS_ONLY
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -L$(OPENWIN_LIB) -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt -L/usr/openwin/sfw/lib$(ISA_DIR) -lXrender
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe else
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -L$(OPENWIN_LIB) -L$(LIBDIR)/$(LIBARCH)/headless -lmawt -L/usr/openwin/sfw/lib$(ISA_DIR) -lXrender
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe endif
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweendif # PLATFORM
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq ($(PLATFORM), linux)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe ifndef BUILD_HEADLESS_ONLY
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -lawt -L$(LIBDIR)/$(LIBARCH)/xawt -lmawt
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe else
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe OTHER_LDLIBS = -L$(LIBDIR)/$(LIBARCH) -lawt -L$(LIBDIR)/$(LIBARCH)/headless -lmawt
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe CFLAGS += -DHEADLESS
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe endif
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweendif # PLATFORM
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweendif # PLATFORM
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Lets not remove any class files.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard LoweDONT_CLOBBER_CLASSES = true
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Rules
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude $(BUILDDIR)/common/Library.gmk
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowebuild: $(FILES_h)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweifeq ($(PLATFORM), windows)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweinclude make.depend
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweendif
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Install header files.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(INCLUDEDIR)/%.h: $(SHARE_SRC)/javavm/export/%.h
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(install-file)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe$(PLATFORM_INCLUDE)/%.h: $(PLATFORM_SRC)/javavm/export/%.h
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(install-file)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe# Extra clean rule.
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe#
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Loweclean clobber::
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe $(RM) $(FILES_h)
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe
c10c16dec587a0662068f6e2991c29ed3a9db943Richard Lowe