1 ## Proxy Makefile.am to build zlib for TeX Live.
3 ## Copyright (C) 2016 Karl Berry <tex-live@tug.org>
4 ## Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
6 ## This file is free software; the copyright holder
7 ## gives unlimited permission to copy and/or distribute it,
8 ## with or without modifications, as long as this notice is preserved.
10 ## We want to re-distribute the whole zlib source tree.
12 EXTRA_DIST = $(ZLIB_TREE)
14 ## Changes applied to the original source tree
16 EXTRA_DIST += zlib-PATCHES
18 # Files not to be distributed
19 include $(srcdir)/../../am/dist_hook.am
20 NEVER_NAMES += $(NEVER_NAMES_SUB)
24 AM_CPPFLAGS = -I$(top_srcdir)/$(ZLIB_TREE) $(ZLIB_DEFINES)
25 AM_CFLAGS = $(VISIBILITY_CFLAGS) # $(WARNING_CFLAGS)
27 noinst_LIBRARIES = libz.a
29 nodist_libz_a_SOURCES = \
30 @ZLIB_TREE@/adler32.c \
31 @ZLIB_TREE@/compress.c \
34 @ZLIB_TREE@/deflate.c \
35 @ZLIB_TREE@/deflate.h \
36 @ZLIB_TREE@/infback.c \
37 @ZLIB_TREE@/gzclose.c \
38 @ZLIB_TREE@/gzguts.h \
40 @ZLIB_TREE@/gzread.c \
41 @ZLIB_TREE@/gzwrite.c \
42 @ZLIB_TREE@/inffast.c \
43 @ZLIB_TREE@/inffast.h \
44 @ZLIB_TREE@/inffixed.h \
45 @ZLIB_TREE@/inflate.c \
46 @ZLIB_TREE@/inflate.h \
47 @ZLIB_TREE@/inftrees.c \
48 @ZLIB_TREE@/inftrees.h \
51 @ZLIB_TREE@/uncompr.c \
55 $(libz_a_OBJECTS): zconf.h
60 check_PROGRAMS = example minigzip
61 dist_check_SCRIPTS = zlib.test
64 zlib.log: example$(EXEEXT) minigzip$(EXEEXT)
65 CLEANFILES = foo.gz foo_gz
69 nodist_example_SOURCES = @ZLIB_TREE@/test/example.c
70 nodist_minigzip_SOURCES = @ZLIB_TREE@/test/minigzip.c
72 zconf.h: $(ZLIB_TREE)/zconf.h.in config.status
73 echo '$(SHELL) ./config.status $@'
74 $(SHELL) ./config.status $@
76 DISTCLEANFILES = zconf.h
82 include $(srcdir)/../../am/rebuild.am