beta-0.89.2
[luatex.git] / source / libs / zlib / Makefile.am
blobc012d8d8154c2482ff043a7bc8f2249f3ce933c4
1 ## Proxy Makefile.am to build zlib for TeX Live.
2 ##
3 ##   Copyright (C) 2016 Karl Berry <tex-live@tug.org>
4 ##   Copyright (C) 2009-2015 Peter Breitenlohner <tex-live@tug.org>
5 ##
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.
9 ##
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)
22 SUBDIRS = . include
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 \
32         @ZLIB_TREE@/crc32.c \
33         @ZLIB_TREE@/crc32.h \
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 \
39         @ZLIB_TREE@/gzlib.c \
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 \
49         @ZLIB_TREE@/trees.c \
50         @ZLIB_TREE@/trees.h \
51         @ZLIB_TREE@/uncompr.c \
52         @ZLIB_TREE@/zutil.h \
53         @ZLIB_TREE@/zutil.c
55 $(libz_a_OBJECTS): zconf.h
57 ## Tests
59 if build
60 check_PROGRAMS = example minigzip
61 dist_check_SCRIPTS = zlib.test
62 TESTS = zlib.test
63 endif build
64 zlib.log: example$(EXEEXT) minigzip$(EXEEXT)
65 CLEANFILES = foo.gz foo_gz
67 LDADD = libz.a
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
78 # Rebuild
79 rebuild_prereq =
80 rebuild_target = all
82 include $(srcdir)/../../am/rebuild.am