J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | # |
| 2 | # Copyright 2005-2006 Sun Microsystems, Inc. All Rights Reserved. |
| 3 | # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
| 4 | # |
| 5 | # This code is free software; you can redistribute it and/or modify it |
| 6 | # under the terms of the GNU General Public License version 2 only, as |
| 7 | # published by the Free Software Foundation. Sun designates this |
| 8 | # particular file as subject to the "Classpath" exception as provided |
| 9 | # by Sun in the LICENSE file that accompanied this code. |
| 10 | # |
| 11 | # This code is distributed in the hope that it will be useful, but WITHOUT |
| 12 | # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 13 | # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
| 14 | # version 2 for more details (a copy is included in the LICENSE file that |
| 15 | # accompanied this code). |
| 16 | # |
| 17 | # You should have received a copy of the GNU General Public License version |
| 18 | # 2 along with this work; if not, write to the Free Software Foundation, |
| 19 | # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
| 20 | # |
| 21 | # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
| 22 | # CA 95054 USA or visit www.sun.com if you need additional information or |
| 23 | # have any questions. |
| 24 | # |
| 25 | |
| 26 | BUILDDIR = ../.. |
| 27 | PACKAGE = sun.awt |
| 28 | LIBRARY = splashscreen |
| 29 | PRODUCT = sun |
| 30 | include $(BUILDDIR)/common/Defs.gmk |
| 31 | |
| 32 | # |
| 33 | # Files |
| 34 | # |
| 35 | include FILES_c.gmk |
| 36 | |
| 37 | FILES_java = \ |
| 38 | java/awt/SplashScreen.java |
| 39 | |
| 40 | FILES_export = \ |
| 41 | java/awt/SplashScreen.java |
| 42 | |
| 43 | |
| 44 | # |
| 45 | # Rules |
| 46 | # |
| 47 | # FIXME!!!! |
| 48 | #ifeq ($(PLATFORM), solaris) |
| 49 | # ifneq ($(ARCH), amd64) |
| 50 | # FILES_reorder += reorder-$(ARCH) |
| 51 | # endif |
| 52 | #endif |
| 53 | include $(BUILDDIR)/common/Mapfile-vers.gmk |
| 54 | include $(BUILDDIR)/common/Library.gmk |
| 55 | |
| 56 | JAVALIB= |
| 57 | |
| 58 | # |
| 59 | # C Flags |
| 60 | # |
| 61 | |
| 62 | CFLAGS += -DSPLASHSCREEN |
| 63 | |
| 64 | ifneq ($(PLATFORM), windows) |
| 65 | CFLAGS += -DWITH_X11 |
| 66 | CPPFLAGS += -I$(OPENWIN_HOME)/include -I$(OPENWIN_HOME)/include/X11/extensions |
| 67 | OTHER_LDLIBS += -L$(OPENWIN_LIB) -lX11 -lXext $(LIBM) -lpthread |
| 68 | else # PLATFORM |
| 69 | CFLAGS += -DWITH_WIN32 |
| 70 | OTHER_LDLIBS += kernel32.lib user32.lib gdi32.lib |
| 71 | #$(JVMLIB) $(OBJDIR)/../../jpeg/$(OBJDIRNAME)/jpeg$(SUFFIX).lib |
| 72 | endif # PLATFORM |
| 73 | |
| 74 | # |
| 75 | # Add to ambient vpath to get files in a subdirectory |
| 76 | # |
| 77 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/splashscreen |
| 78 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR) |
| 79 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/giflib |
| 80 | vpath %.c $(SHARE_SRC)/native/java/util/zip/zlib-1.1.3 |
| 81 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/libpng |
| 82 | vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image/jpeg |
| 83 | vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/splashscreen |
| 84 | |
| 85 | CPPFLAGS += -I$(PLATFORM_SRC)/native/$(PKGDIR)/splashscreen -I$(SHARE_SRC)/native/$(PKGDIR)/splashscreen |
| 86 | CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/image/jpeg -I$(SHARE_SRC)/native/java/util/zip/zlib-1.1.3 |
| 87 | |