Makefile revision 2362
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved.
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# This code is free software; you can redistribute it and/or modify it
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# under the terms of the GNU General Public License version 2 only, as
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# published by the Free Software Foundation. Oracle designates this
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# particular file as subject to the "Classpath" exception as provided
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# by Oracle in the LICENSE file that accompanied this code.
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# This code is distributed in the hope that it will be useful, but WITHOUT
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# version 2 for more details (a copy is included in the LICENSE file that
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# accompanied this code).
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# You should have received a copy of the GNU General Public License version
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# 2 along with this work; if not, write to the Free Software Foundation,
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# or visit www.oracle.com if you need additional information or have any
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# questions.
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry MooreBUILDDIR = ../..
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry MooreMODULE = java2d
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry MoorePACKAGE = sun.jdga
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry MooreLIBRARY = sunwjdga
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry MoorePRODUCT = sun
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Mooreinclude $(BUILDDIR)/common/Defs.gmk
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# Files
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry MooreFILES_c = \
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore dgalock.c
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# Add use of mapfile
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Mooreifeq ($(ARCH_FAMILY), sparc)
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry MooreFILES_m = mapfile-vers
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Mooreinclude $(BUILDDIR)/common/Mapfile-vers.gmk
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Mooreendif
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore# Rules.
753a6d457b330b1b29b2d3eefcd0831116ce950dSherry Moore#
include $(BUILDDIR)/common/Library.gmk
#
# Add to the ambient vpath to pick up files in subdirectories
#
vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)
ifneq ($(PLATFORM), windows)
LDLIBS = -ldga -lX11 -ldl -lc
CPPFLAGS += \
-I$(SHARE_SRC)/javavm/export \
-I$(PLATFORM_SRC)/javavm/export \
-I$(OPENWIN_HOME)/include
endif
LDFLAGS += -L$(OPENWIN_LIB) -R$(OPENWIN_RUNTIME_LIB)