Makefile revision 381
2521N/A#
2521N/A# Copyright 2005-2008 Sun Microsystems, Inc. All Rights Reserved.
2521N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2521N/A#
2521N/A# This code is free software; you can redistribute it and/or modify it
2521N/A# under the terms of the GNU General Public License version 2 only, as
2521N/A# published by the Free Software Foundation. Sun designates this
2521N/A# particular file as subject to the "Classpath" exception as provided
2521N/A# by Sun in the LICENSE file that accompanied this code.
2521N/A#
2521N/A# This code is distributed in the hope that it will be useful, but WITHOUT
2521N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
2521N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
2521N/A# version 2 for more details (a copy is included in the LICENSE file that
2521N/A# accompanied this code).
2521N/A#
2521N/A# You should have received a copy of the GNU General Public License version
2521N/A# 2 along with this work; if not, write to the Free Software Foundation,
2521N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
2521N/A#
2521N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
2521N/A# CA 95054 USA or visit www.sun.com if you need additional information or
5403N/A# have any questions.
2521N/A#
3998N/A
2521N/ABUILDDIR = ../..
3998N/APACKAGE = sun.awt
3998N/ALIBRARY = splashscreen
2521N/APRODUCT = sun
5403N/Ainclude $(BUILDDIR)/common/Defs.gmk
5403N/A
5403N/A#
2521N/A# Files
2521N/A#
2521N/Ainclude FILES_c.gmk
5403N/A
2521N/AFILES_java = \
3533N/A java/awt/SplashScreen.java
2521N/A
3998N/AFILES_export = \
3998N/A java/awt/SplashScreen.java
3998N/A
5403N/A
3998N/A#
5403N/A# Rules
5403N/A#
3998N/A# FIXME!!!!
3998N/A#ifeq ($(PLATFORM), solaris)
3998N/A# ifneq ($(ARCH), amd64)
5403N/A# FILES_reorder += reorder-$(ARCH)
3998N/A# endif
3998N/A#endif
3998N/Ainclude $(BUILDDIR)/common/Mapfile-vers.gmk
3998N/Ainclude $(BUILDDIR)/common/Library.gmk
3998N/A
3998N/AJAVALIB=
3998N/A
5403N/A#
3998N/A# C Flags
5403N/A#
3998N/A
5403N/ACFLAGS += -DSPLASHSCREEN
5403N/A
5403N/Aifneq ($(PLATFORM), windows)
3998N/A CFLAGS += -DWITH_X11
3998N/A CPPFLAGS += -I$(OPENWIN_HOME)/include -I$(OPENWIN_HOME)/include/X11/extensions
3998N/A OTHER_LDLIBS += -L$(OPENWIN_LIB) -lX11 -lXext $(LIBM) -lpthread
3998N/Aelse # PLATFORM
3998N/A CFLAGS += -DWITH_WIN32
3998N/A OTHER_LDLIBS += kernel32.lib user32.lib gdi32.lib
4194N/A#$(JVMLIB) $(OBJDIR)/../../jpeg/$(OBJDIRNAME)/jpeg$(SUFFIX).lib
3998N/Aendif # PLATFORM
3998N/A
3998N/A#
3998N/A# Add to ambient vpath to get files in a subdirectory
3998N/A#
3998N/Avpath %.c $(SHARE_SRC)/native/$(PKGDIR)/splashscreen
3998N/Avpath %.c $(SHARE_SRC)/native/$(PKGDIR)
4194N/Avpath %.c $(SHARE_SRC)/native/$(PKGDIR)/giflib
4194N/Avpath %.c $(SHARE_SRC)/native/java/util/zip/zlib-1.1.3
3998N/Avpath %.c $(SHARE_SRC)/native/$(PKGDIR)/libpng
3998N/Avpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image/jpeg
3998N/Avpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/splashscreen
3998N/A
3998N/ACPPFLAGS += -I$(PLATFORM_SRC)/native/$(PKGDIR)/splashscreen -I$(SHARE_SRC)/native/$(PKGDIR)/splashscreen
3998N/ACPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/image/jpeg -I$(SHARE_SRC)/native/java/util/zip/zlib-1.1.3
4194N/A
4194N/Aifeq ($(PLATFORM), linux)
3998N/A ifeq ($(ARCH_DATA_MODEL), 64)
3998N/A # 64-bit gcc has problems compiling MMX instructions.
3998N/A # Google it for more details. Possibly the newer versions of
5425N/A # the PNG-library and/or the new compiler will not need this
3998N/A # option in the future.
3998N/A CPPFLAGS += -DPNG_NO_MMX_CODE
3998N/A endif
4194N/Aendif
4194N/A
3998N/A