0N/A#
3909N/A# Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.
0N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A#
0N/A# This code is free software; you can redistribute it and/or modify it
0N/A# under the terms of the GNU General Public License version 2 only, as
2362N/A# published by the Free Software Foundation. Oracle designates this
0N/A# particular file as subject to the "Classpath" exception as provided
2362N/A# by Oracle in the LICENSE file that accompanied this code.
0N/A#
0N/A# This code is distributed in the hope that it will be useful, but WITHOUT
0N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A# version 2 for more details (a copy is included in the LICENSE file that
0N/A# accompanied this code).
0N/A#
0N/A# You should have received a copy of the GNU General Public License version
0N/A# 2 along with this work; if not, write to the Free Software Foundation,
0N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A#
2362N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A# or visit www.oracle.com if you need additional information or have any
2362N/A# questions.
0N/A#
0N/A
0N/A
0N/ABUILDDIR = ../..
0N/APACKAGE = java.util.zip
0N/ALIBRARY = zip
0N/APRODUCT = sun
0N/Ainclude $(BUILDDIR)/common/Defs.gmk
0N/A
1592N/A#
1592N/A# ZLIB_VERSION is defined in make/common/Defs.gmk
1592N/A#
0N/A
0N/A#
0N/A# Files to compile.
0N/A#
0N/Ainclude FILES_c.gmk
0N/AAUTO_FILES_JAVA_DIRS = java/util/zip
0N/A
0N/AFILES_export = \
0N/A java/util/zip/CRC32.java \
0N/A java/util/zip/Adler32.java \
0N/A java/util/zip/Inflater.java \
0N/A java/util/zip/Deflater.java \
0N/A java/util/zip/ZipFile.java \
0N/A java/util/zip/ZipEntry.java \
0N/A java/util/jar/JarFile.java
0N/A
0N/Aifneq ($(PLATFORM), windows)
3867N/A # Use mmap unless explicitly disallowed
3867N/A ifneq ($(LIBZIP_CAN_USE_MMAP),false)
3867N/A OTHER_CFLAGS += -DUSE_MMAP
3867N/A endif
0N/Aendif
0N/A
5353N/Aifeq ($(SYSTEM_ZLIB),true)
5353N/A OTHER_CFLAGS += $(ZLIB_CFLAGS)
5353N/Aendif
5353N/A
0N/A#
0N/A# Library to compile.
0N/A#
0N/Aifeq ($(PLATFORM), solaris)
0N/A ifneq ($(ARCH), amd64)
0N/A FILES_reorder += reorder-$(ARCH)
0N/A endif
0N/Aendif
0N/Ainclude $(BUILDDIR)/common/Mapfile-vers.gmk
0N/Ainclude $(BUILDDIR)/common/Library.gmk
0N/A
0N/Aifeq ($(PLATFORM), windows)
0N/AOTHER_LCF = -export:ZIP_Open -export:ZIP_Close -export:ZIP_FindEntry \
0N/A -export:ZIP_ReadEntry -export:ZIP_GetNextEntry
0N/Aelse
0N/ACPPFLAGS += -UDEBUG
0N/Aendif
0N/A
0N/ACPPFLAGS += -I$(SHARE_SRC)/native/java/io
0N/ACPPFLAGS += -I$(PLATFORM_SRC)/native/java/io
0N/A
4632N/Aifneq ($(SYSTEM_ZLIB),true)
4632N/ACPPFLAGS += -I$(SHARE_SRC)/native/java/util/zip/zlib-$(ZLIB_VERSION)
4632N/A
0N/A#
0N/A# Add to ambient vpath so we pick up the library files
0N/A#
0N/Avpath %.c $(SHARE_SRC)/native/$(PKGDIR)/zlib-$(ZLIB_VERSION)
4632N/Aendif
0N/A
0N/A#
0N/A# Link to JVM library for JVM_Zip* functions
0N/A#
4632N/Aifeq ($(SYSTEM_ZLIB),true)
5353N/AOTHER_LDLIBS = $(ZLIB_LIBS)
4632N/Aelse
0N/AOTHER_LDLIBS = $(JVMLIB)
4632N/Aendif
4632N/A