blob: 1b51d3a6484f2537734a7b1d8095752aa336b1f8 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001#
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
26BUILDDIR = ../..
27PACKAGE = sun.awt
28LIBRARY = splashscreen
29PRODUCT = sun
30include $(BUILDDIR)/common/Defs.gmk
31
32#
33# Files
34#
35include FILES_c.gmk
36
37FILES_java = \
38 java/awt/SplashScreen.java
39
40FILES_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
53include $(BUILDDIR)/common/Mapfile-vers.gmk
54include $(BUILDDIR)/common/Library.gmk
55
56JAVALIB=
57
58#
59# C Flags
60#
61
62CFLAGS += -DSPLASHSCREEN
63
64ifneq ($(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
68else # PLATFORM
69 CFLAGS += -DWITH_WIN32
70 OTHER_LDLIBS += kernel32.lib user32.lib gdi32.lib
71#$(JVMLIB) $(OBJDIR)/../../jpeg/$(OBJDIRNAME)/jpeg$(SUFFIX).lib
72endif # PLATFORM
73
74#
75# Add to ambient vpath to get files in a subdirectory
76#
77vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/splashscreen
78vpath %.c $(SHARE_SRC)/native/$(PKGDIR)
79vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/giflib
80vpath %.c $(SHARE_SRC)/native/java/util/zip/zlib-1.1.3
81vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/libpng
82vpath %.c $(SHARE_SRC)/native/$(PKGDIR)/image/jpeg
83vpath %.c $(PLATFORM_SRC)/native/$(PKGDIR)/splashscreen
84
85CPPFLAGS += -I$(PLATFORM_SRC)/native/$(PKGDIR)/splashscreen -I$(SHARE_SRC)/native/$(PKGDIR)/splashscreen
86CPPFLAGS += -I$(SHARE_SRC)/native/$(PKGDIR)/image/jpeg -I$(SHARE_SRC)/native/java/util/zip/zlib-1.1.3
87