2012-11-15 14:06:22 +00:00
|
|
|
## -*- mode: makefile; tab-width: 4 -*-
|
|
|
|
|
|
|
|
## note: -D flags taken from a zip config build under Linux
|
|
|
|
|
2014-04-17 15:41:01 +00:00
|
|
|
include ../Makefile.incl
|
2012-11-15 14:06:22 +00:00
|
|
|
|
2014-04-16 22:14:53 +00:00
|
|
|
SUBDIRS = zip unzip
|
2012-11-15 14:06:22 +00:00
|
|
|
|
2014-04-17 15:41:01 +00:00
|
|
|
AM_CFLAGS += -I$(top_srcdir) -I$(top_srcdir)/zip/zip -I$(top_srcdir)/zip/unzip -I$(top_srcdir)/lib -DUNIX -DDLL -DUSE_ZIPMAIN -DNO_OFF_T -DNO_CRYPT -DNO_LCHOWN -DNO_LCHMOD -DIZ_PWLEN=80 -Dinflate=inflate_boinc -Ddeflate=deflate_boinc -Dget_crc_table=get_crc_table_boinc -Dlongest_match=longest_match_boinc -Dinflate_codes=inflate_codes_boinc -Dcrc32=crc32_boinc
|
|
|
|
AM_CXXFLAGS += -I$(top_srcdir) -I$(top_srcdir)/zip/zip -I$(top_srcdir)/zip/unzip -I$(top_srcdir)/lib -DUNIX -DDLL -DUSE_ZIPMAIN -DNO_OFF_T -DNO_CRYPT -DNO_LCHOWN -DNO_LCHMOD -DIZ_PWLEN=80 -Dinflate=inflate_boinc -Ddeflate=deflate_boinc -Dget_crc_table=get_crc_table_boinc -Dlongest_match=longest_match_boinc -Dinflate_codes=inflate_codes_boinc -Dcrc32=crc32_boinc
|
2012-11-15 14:06:22 +00:00
|
|
|
|
2014-05-02 00:44:34 +00:00
|
|
|
if OS_WIN32
|
|
|
|
AM_CFLAGS += -DFORCE_WIN32_OVER_UNIX
|
|
|
|
AM_CXXFLAGS += -DFORCE_WIN32_OVER_UNIX
|
|
|
|
endif
|
|
|
|
|
2012-11-15 14:06:22 +00:00
|
|
|
if INSTALL_HEADERS
|
|
|
|
pkginclude_HEADERS = boinc_zip.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
libboinc_zip_sources = \
|
|
|
|
boinc_zip.cpp \
|
2014-05-02 00:44:34 +00:00
|
|
|
./unzip/api.c \
|
|
|
|
./unzip/apihelp.c \
|
|
|
|
./unzip/crc32.c \
|
|
|
|
./unzip/explode.c \
|
|
|
|
./unzip/extract.c \
|
|
|
|
./unzip/fileio.c \
|
|
|
|
./unzip/globals.c \
|
|
|
|
./unzip/inflate.c \
|
|
|
|
./unzip/list.c \
|
|
|
|
./unzip/match.c \
|
|
|
|
./unzip/process.c \
|
|
|
|
./unzip/ttyio.c \
|
|
|
|
./unzip/unreduce.c \
|
|
|
|
./unzip/unshrink.c \
|
|
|
|
./unzip/unzip.c \
|
|
|
|
./unzip/zipinfo.c \
|
|
|
|
./zip/deflate.c \
|
|
|
|
./zip/trees.c \
|
|
|
|
./zip/util.c \
|
|
|
|
./zip/z_fileio.c \
|
|
|
|
./zip/z_globals.c \
|
|
|
|
./zip/zip.c \
|
|
|
|
./zip/zipfile.c \
|
|
|
|
./zip/zipup.c
|
|
|
|
|
|
|
|
if OS_WIN32
|
|
|
|
libboinc_zip_sources += \
|
|
|
|
./unzip/win32/nt.c \
|
|
|
|
./unzip/win32/win32.c \
|
|
|
|
./zip/win32/win32_boinc.c \
|
|
|
|
./zip/win32/win32i64.c \
|
|
|
|
./zip/win32/z_nt.c \
|
|
|
|
./zip/win32/win32zip.c
|
|
|
|
else
|
|
|
|
libboinc_zip_sources += \
|
|
|
|
./unzip/unix/unix.c \
|
|
|
|
./zip/unix/z_unix.c
|
|
|
|
endif
|
2012-11-15 14:06:22 +00:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = libboinc_zip.la
|
|
|
|
libboinc_zip_la_SOURCES = $(libboinc_zip_sources)
|
2017-02-27 20:59:27 +00:00
|
|
|
libboinc_zip_la_LDFLAGS = -version-number $(LIBBOINC_VERSION)
|
2012-11-15 14:06:22 +00:00
|
|
|
libboinc_zip_la_LIBADD =
|
|
|
|
|
2012-11-15 17:24:14 +00:00
|
|
|
# Some OSs may not prefix libraries with lib.
|
2012-11-15 14:06:22 +00:00
|
|
|
# For example OS2
|
|
|
|
if OS_OS2
|
|
|
|
LIBBOINC_ZIP_STATIC=boinc_zip.${LIBEXT}
|
|
|
|
else
|
|
|
|
LIBBOINC_ZIP_STATIC=libboinc_zip.${LIBEXT}
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
all_local = $(LIBBOINC_ZIP_STATIC)
|
|
|
|
|
|
|
|
all-local: $(all_local)
|
|
|
|
|
|
|
|
$(LIBBOINC_ZIP_STATIC): libboinc_zip.la
|
|
|
|
rm -f $(LIBBOINC_ZIP_STATIC)
|
|
|
|
$(LN) .libs/$(LIBBOINC_ZIP_STATIC) .
|
|
|
|
|