1 ## Proxy Makefile.am to build zlib for TeX Live.
3 ## Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
5 ## This file is free software; the copyright holder
6 ## gives unlimited permission to copy and/or distribute it,
7 ## with or without modifications, as long as this notice is preserved.
9 ## We want to re-distribute the whole zlib source tree.
11 EXTRA_DIST = $(ZLIB_TREE)
13 ## Changes applied to the original source tree
15 EXTRA_DIST += $(ZLIB_TREE)-PATCHES
17 # Files not to be distributed
18 include $(srcdir)/../../am/dist_hook.am
19 NEVER_NAMES += $(NEVER_NAMES_SUB)
23 AM_CPPFLAGS = -I$(top_srcdir)/$(ZLIB_TREE) $(ZLIB_DEFINES)
24 AM_CFLAGS = $(VISIBILITY_CFLAGS) # $(WARNING_CFLAGS)
26 noinst_LIBRARIES = libz.a
28 nodist_libz_a_SOURCES = \
29 @ZLIB_TREE@/adler32.c \
30 @ZLIB_TREE@/compress.c \
33 @ZLIB_TREE@/deflate.c \
34 @ZLIB_TREE@/deflate.h \
35 @ZLIB_TREE@/infback.c \
36 @ZLIB_TREE@/gzclose.c \
37 @ZLIB_TREE@/gzguts.h \
39 @ZLIB_TREE@/gzread.c \
40 @ZLIB_TREE@/gzwrite.c \
41 @ZLIB_TREE@/inffast.c \
42 @ZLIB_TREE@/inffast.h \
43 @ZLIB_TREE@/inffixed.h \
44 @ZLIB_TREE@/inflate.c \
45 @ZLIB_TREE@/inflate.h \
46 @ZLIB_TREE@/inftrees.c \
47 @ZLIB_TREE@/inftrees.h \
50 @ZLIB_TREE@/uncompr.c \
54 $(libz_a_OBJECTS): zconf.h
59 check_PROGRAMS = example minigzip
60 dist_check_SCRIPTS = zlib.test
63 zlib.log: example$(EXEEXT) minigzip$(EXEEXT)
64 CLEANFILES = foo.gz foo_gz
68 nodist_example_SOURCES = @ZLIB_TREE@/test/example.c
69 nodist_minigzip_SOURCES = @ZLIB_TREE@/test/minigzip.c
71 zconf.h: $(ZLIB_TREE)/zconf.h.in config.status
72 echo '$(SHELL) ./config.status $@'
73 $(SHELL) ./config.status $@
75 DISTCLEANFILES = zconf.h
81 include $(srcdir)/../../am/rebuild.am