annotate make/sun/splashscreen/Makefile @ 6581:cea72c2bf071

7197491: update copyright year to match last edit in jdk8 jdk repository Reviewed-by: chegar, ksrini
author alanb
date Fri, 02 Nov 2012 15:50:11 +0000
parents 35e024c6a62c
children 747a09471fd9
rev   line source
duke@0 1 #
alanb@6581 2 # Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
duke@0 3 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
duke@0 4 #
duke@0 5 # This code is free software; you can redistribute it and/or modify it
duke@0 6 # under the terms of the GNU General Public License version 2 only, as
ohair@2362 7 # published by the Free Software Foundation. Oracle designates this
duke@0 8 # particular file as subject to the "Classpath" exception as provided
ohair@2362 9 # by Oracle in the LICENSE file that accompanied this code.
duke@0 10 #
duke@0 11 # This code is distributed in the hope that it will be useful, but WITHOUT
duke@0 12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
duke@0 13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
duke@0 14 # version 2 for more details (a copy is included in the LICENSE file that
duke@0 15 # accompanied this code).
duke@0 16 #
duke@0 17 # You should have received a copy of the GNU General Public License version
duke@0 18 # 2 along with this work; if not, write to the Free Software Foundation,
duke@0 19 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
duke@0 20 #
ohair@2362 21 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
ohair@2362 22 # or visit www.oracle.com if you need additional information or have any
ohair@2362 23 # questions.
duke@0 24 #
duke@0 25
duke@0 26 BUILDDIR = ../..
duke@0 27 PACKAGE = sun.awt
duke@0 28 LIBRARY = splashscreen
duke@0 29 PRODUCT = sun
duke@0 30 include $(BUILDDIR)/common/Defs.gmk
duke@0 31
duke@0 32 #
duke@0 33 # Files
duke@0 34 #
duke@0 35 include FILES_c.gmk
duke@0 36
duke@0 37 FILES_java = \
duke@0 38 java/awt/SplashScreen.java
duke@0 39
duke@0 40 FILES_export = \
duke@0 41 java/awt/SplashScreen.java
duke@0 42
duke@0 43
duke@0 44 #
duke@0 45 # Rules
duke@0 46 #
duke@0 47 # FIXME!!!!
duke@0 48 #ifeq ($(PLATFORM), solaris)
duke@0 49 # ifneq ($(ARCH), amd64)
duke@0 50 # FILES_reorder += reorder-$(ARCH)
duke@0 51 # endif
duke@0 52 #endif
duke@0 53 include $(BUILDDIR)/common/Mapfile-vers.gmk
duke@0 54 include $(BUILDDIR)/common/Library.gmk
duke@0 55
duke@0 56 JAVALIB=
duke@0 57
duke@0 58 #
duke@0 59 # C Flags
duke@0 60 #
duke@0 61
duke@0 62 CFLAGS += -DSPLASHSCREEN
duke@0 63
michaelm@5177 64 ifeq ($(PLATFORM), macosx)
michaelm@5177 65 CFLAGS += -DWITH_MACOSX
michaelm@5177 66
michaelm@5177 67 # CFLAGS and CPPFLAGS are added when linking as well, so we use VARIANT
michaelm@5177 68 # instead to specify that we're actually compiling objective-c code here
michaelm@5177 69 CFLAGS_$(VARIANT)/java_awt_SplashScreen.o = -x objective-c
michaelm@5177 70 CFLAGS_$(VARIANT)/splashscreen_gfx_impl.o = -x objective-c
michaelm@5177 71 CFLAGS_$(VARIANT)/splashscreen_gif.o = -x objective-c
michaelm@5177 72 CFLAGS_$(VARIANT)/splashscreen_impl.o = -x objective-c
michaelm@5177 73 CFLAGS_$(VARIANT)/splashscreen_jpeg.o = -x objective-c
michaelm@5177 74 CFLAGS_$(VARIANT)/splashscreen_png.o = -x objective-c
michaelm@5177 75 CFLAGS_$(VARIANT)/splashscreen_sys.o = -x objective-c
michaelm@5177 76
michaelm@5177 77 OTHER_CFLAGS += -F/System/Library/Frameworks/ApplicationServices.framework/Frameworks
michaelm@5177 78 CPPFLAGS += -I/System/Library/Frameworks/AppKit.framework/Versions/C/Headers
michaelm@5177 79 OTHER_LDLIBS += $(LIBM) -lpthread -liconv -losxapp \
michaelm@5177 80 -framework ApplicationServices \
michaelm@5177 81 -framework Foundation \
michaelm@5177 82 -framework Cocoa \
michaelm@5177 83 -framework JavaNativeFoundation
michaelm@5177 84 else ifneq ($(PLATFORM), windows)
duke@0 85 CFLAGS += -DWITH_X11
michaelm@5177 86 ifeq ($(PLATFORM), macosx))
michaelm@5177 87 OTHER_LDLIBS += -liconv
michaelm@5177 88 CPPFLAGS += -I$(OPENWIN_HOME)/include \
michaelm@5177 89 -I$(OPENWIN_HOME)/include/X11/extensions
michaelm@5177 90 OTHER_LDLIBS += -L$(OPENWIN_LIB) -lX11 -lXext $(LIBM) -pthread
michaelm@5177 91 else
michaelm@5177 92 CPPFLAGS += -I$(OPENWIN_HOME)/include -I$(OPENWIN_HOME)/include/X11/extensions
michaelm@5177 93 OTHER_LDLIBS += -L$(OPENWIN_LIB) -lX11 -lXext $(LIBM) -lpthread
michaelm@5177 94 endif
duke@0 95 else # PLATFORM
duke@0 96 CFLAGS += -DWITH_WIN32
art@862 97 OTHER_LDLIBS += kernel32.lib user32.lib gdi32.lib delayimp.lib /DELAYLOAD:user32.dll
duke@0 98 #$(JVMLIB) $(OBJDIR)/../../jpeg/$(OBJDIRNAME)/jpeg$(SUFFIX).lib
duke@0 99 endif # PLATFORM
duke@0 100
duke@0 101 #
duke@0 102 # Add to ambient vpath to get files in a subdirectory
duke@0 103 #
duke@0 104 vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/splashscreen
duke@0 105 vpath %.c $(SHARE_SRC)/native/$(PKGDIR)
duke@0 106 vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/giflib
michaelm@5177 107 ifneq ($(SYSTEM_ZLIB),true)
michaelm@5177 108 vpath %.c $(SHARE_SRC)/native/java/util/zip/zlib-$(ZLIB_VERSION)
michaelm@5177 109 endif
duke@0 110 vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/libpng
duke@0 111 vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image/jpeg
michaelm@5177 112 ifneq ($(PLATFORM), macosx)
michaelm@5177 113 vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/splashscreen
michaelm@5177 114 else
michaelm@5177 115 vpath %.m $(call NativeSrcDirList,,native/$(PKGDIR)/splashscreen)
michaelm@5177 116 endif
duke@0 117
michaelm@5177 118 ifneq ($(PLATFORM), macosx)
michaelm@5177 119 CPPFLAGS += -I$(PLATFORM_SRC)/native/$(PKGDIR)/splashscreen
michaelm@5177 120 else
michaelm@5177 121 CPPFLAGS += $(call NativeSrcDirList,-I,native/$(PKGDIR)/splashscreen)
michaelm@5177 122 CPPFLAGS += $(call NativeSrcDirList,-I,/native/sun/osxapp)
michaelm@5177 123 endif
michaelm@5177 124 CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/splashscreen
michaelm@5177 125 CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/image/jpeg
michaelm@5177 126 ifneq ($(SYSTEM_ZLIB),true)
michaelm@5177 127 CPPFLAGS += -I$(SHARE_SRC)/native/java/util/zip/zlib-$(ZLIB_VERSION)
michaelm@5177 128 else
andrew@6114 129 OTHER_CFLAGS += $(ZLIB_CFLAGS)
andrew@6114 130 OTHER_LDLIBS += $(ZLIB_LIBS)
michaelm@5177 131 endif
duke@0 132
martin@867 133 # Shun the less than portable MMX assembly code in pnggccrd.c,
martin@867 134 # and use alternative implementations in C.
martin@867 135 CPPFLAGS += -DPNG_NO_MMX_CODE