synch with TL 37803
[luatex.git] / source / libs / zlib / Makefile.am
blob7395a84116f34401f75ef815a8ee33a11ba86cb0
1 ## Proxy Makefile.am to build zlib for TeX Live.
2 ##
3 ##   Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
4 ##
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.
8 ##
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)
21 SUBDIRS = . include
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 \
31         @ZLIB_TREE@/crc32.c \
32         @ZLIB_TREE@/crc32.h \
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 \
38         @ZLIB_TREE@/gzlib.c \
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 \
48         @ZLIB_TREE@/trees.c \
49         @ZLIB_TREE@/trees.h \
50         @ZLIB_TREE@/uncompr.c \
51         @ZLIB_TREE@/zutil.h \
52         @ZLIB_TREE@/zutil.c
54 $(libz_a_OBJECTS): zconf.h
56 ## Tests
58 if build
59 check_PROGRAMS = example minigzip
60 dist_check_SCRIPTS = zlib.test
61 TESTS = zlib.test
62 endif build
63 zlib.log: example$(EXEEXT) minigzip$(EXEEXT)
64 CLEANFILES = foo.gz foo_gz
66 LDADD = libz.a
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
77 # Rebuild
78 rebuild_prereq =
79 rebuild_target = all
81 include $(srcdir)/../../am/rebuild.am