| 1 |
## $Id: Makefile.am 44647 2017-06-20 00:49:02Z kakuto $ |
| 2 |
## Proxy Makefile.am to build zziplib for TeX Live. |
| 3 |
## |
| 4 |
## Copyright 2017 Karl Berry <[email protected]> |
| 5 |
## Copyright 2010-2015 Peter Breitenlohner <[email protected]> |
| 6 |
## |
| 7 |
## This file is free software; the copyright holder |
| 8 |
## gives unlimited permission to copy and/or distribute it, |
| 9 |
## with or without modifications, as long as this notice is preserved. |
| 10 |
|
| 11 |
## We want to re-distribute the whole zziplib source tree. |
| 12 |
EXTRA_DIST = $(ZZIPLIB_TREE) |
| 13 |
|
| 14 |
## Changes applied to the original source tree |
| 15 |
EXTRA_DIST += TLpatches |
| 16 |
|
| 17 |
# Files not to be distributed |
| 18 |
include $(srcdir)/../../am/dist_hook.am |
| 19 |
NEVER_NAMES += $(NEVER_NAMES_SUB) |
| 20 |
|
| 21 |
SUBDIRS = . include/zzip |
| 22 |
|
| 23 |
AM_CPPFLAGS = -Iinclude -I$(top_srcdir)/$(ZZIPLIB_TREE) $(ZLIB_INCLUDES) |
| 24 |
AM_CPPFLAGS += $(ZZIPLIB_DEFINES) |
| 25 |
AM_CFLAGS = $(VISIBILITY_CFLAGS) $(WARNING_CFLAGS) |
| 26 |
|
| 27 |
noinst_LIBRARIES=libzzip.a |
| 28 |
|
| 29 |
nodist_libzzip_a_SOURCES = \ |
| 30 |
@ZZIPLIB_TREE@/zzip/dir.c \ |
| 31 |
@ZZIPLIB_TREE@/zzip/err.c \ |
| 32 |
@ZZIPLIB_TREE@/zzip/fetch.c \ |
| 33 |
@ZZIPLIB_TREE@/zzip/file.c \ |
| 34 |
@ZZIPLIB_TREE@/zzip/info.c \ |
| 35 |
@ZZIPLIB_TREE@/zzip/plugin.c \ |
| 36 |
@ZZIPLIB_TREE@/zzip/stat.c \ |
| 37 |
@ZZIPLIB_TREE@/zzip/write.c \ |
| 38 |
@ZZIPLIB_TREE@/zzip/zip.c |
| 39 |
|
| 40 |
$(libzzip_a_OBJECTS): config.force |
| 41 |
|
| 42 |
DISTCLEANFILES = include/_msvc.in _configs.sed |
| 43 |
|
| 44 |
AM_TESTS_ENVIRONMENT = ZZIPLIB_TREE=$(ZZIPLIB_TREE); export ZZIPLIB_TREE; |
| 45 |
if build |
| 46 |
TESTS = zziplib.test |
| 47 |
check_PROGRAMS = unzzip |
| 48 |
dist_check_SCRIPTS = zziplib.test |
| 49 |
endif build |
| 50 |
zziplib.log: unzzip$(EXEEXT) |
| 51 |
|
| 52 |
distclean-local: |
| 53 |
rm -rf test |
| 54 |
|
| 55 |
nodist_unzzip_SOURCES = @ZZIPLIB_TREE@/bins/unzzip.c \ |
| 56 |
@ZZIPLIB_TREE@/bins/unzzipcat-zip.c @ZZIPLIB_TREE@/bins/unzzipdir-zip.c |
| 57 |
unzzip_LDADD = libzzip.a $(ZLIB_LIBS) |
| 58 |
|
| 59 |
## Rebuild zlib |
| 60 |
@ZLIB_RULE@ |
| 61 |
|
| 62 |
# Reconfig |
| 63 |
reconfig_prereq = $(ZLIB_DEPEND) |
| 64 |
|
| 65 |
include $(srcdir)/../../am/reconfig.am |
| 66 |
|
| 67 |
# Rebuild |
| 68 |
rebuild_prereq = |
| 69 |
rebuild_target = all |
| 70 |
CLEANFILES = |
| 71 |
|
| 72 |
include $(srcdir)/../../am/rebuild.am |