zlib/Makefile.in

406 lines
13 KiB
Makefile
Raw Normal View History

2011-09-10 02:14:39 -04:00
# Makefile for zlib
2013-04-19 03:38:15 -04:00
# Copyright (C) 1995-2013 Jean-loup Gailly, Mark Adler
2011-09-10 02:22:37 -04:00
# For conditions of distribution and use, see copyright notice in zlib.h
2011-09-10 02:14:39 -04:00
# To compile and test, type:
2011-09-10 02:22:37 -04:00
# ./configure; make test
2011-09-10 02:26:40 -04:00
# Normally configure builds both a static and a shared library.
# If you want to build just a static library, use: ./configure --static
2011-09-10 02:14:39 -04:00
2011-09-10 02:22:37 -04:00
# To use the asm code, type:
# cp contrib/asm?86/match.S ./match.S
# make LOC=-DASMV OBJA=match.o
2011-09-10 02:14:39 -04:00
# To install /usr/local/lib/libz.* and /usr/local/include/zlib.h, type:
# make install
# To install in $HOME instead of /usr/local, use:
# make install prefix=$HOME
CC=cc
CFLAGS=-O
#CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
#CFLAGS=-g -DZLIB_DEBUG
2011-09-10 02:14:39 -04:00
#CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
# -Wstrict-prototypes -Wmissing-prototypes
2011-09-10 02:25:38 -04:00
SFLAGS=-O
2011-09-10 02:34:55 -04:00
LDFLAGS=
2011-09-10 02:34:30 -04:00
TEST_LDFLAGS=-L. libz.a
2011-09-10 02:14:39 -04:00
LDSHARED=$(CC)
2011-09-10 02:20:29 -04:00
CPP=$(CC) -E
2011-09-10 02:14:39 -04:00
2011-09-10 02:26:40 -04:00
STATICLIB=libz.a
2011-09-10 02:17:33 -04:00
SHAREDLIB=libz.so
2013-05-03 02:12:54 -04:00
SHAREDLIBV=libz.so.1.2.8.1
2011-09-10 02:23:01 -04:00
SHAREDLIBM=libz.so.1
2011-09-10 02:34:22 -04:00
LIBS=$(STATICLIB) $(SHAREDLIBV)
2011-09-10 02:14:39 -04:00
AR=ar
ARFLAGS=rc
2011-09-10 02:14:39 -04:00
RANLIB=ranlib
2011-09-10 02:34:22 -04:00
LDCONFIG=ldconfig
LDSHAREDLIBC=-lc
2011-09-10 02:14:39 -04:00
TAR=tar
2011-09-10 02:17:33 -04:00
SHELL=/bin/sh
2011-09-10 02:23:14 -04:00
EXE=
2011-09-10 02:14:39 -04:00
2011-09-10 02:20:15 -04:00
prefix = /usr/local
exec_prefix = ${prefix}
2011-09-10 02:20:29 -04:00
libdir = ${exec_prefix}/lib
2011-09-10 02:34:45 -04:00
sharedlibdir = ${libdir}
2011-09-10 02:20:29 -04:00
includedir = ${prefix}/include
2011-09-10 02:22:37 -04:00
mandir = ${prefix}/share/man
man3dir = ${mandir}/man3
2011-09-10 02:25:27 -04:00
pkgconfigdir = ${libdir}/pkgconfig
SRCDIR=
ZINC=
ZINCOUT=-I.
2011-09-10 02:14:39 -04:00
OBJZ = adler32.o crc32.o deflate.o infback.o inffast.o inflate.o inftrees.o trees.o zutil.o
OBJG = compress.o uncompr.o gzclose.o gzlib.o gzread.o gzwrite.o
OBJC = $(OBJZ) $(OBJG)
2011-09-10 02:14:39 -04:00
PIC_OBJZ = adler32.lo crc32.lo deflate.lo infback.lo inffast.lo inflate.lo inftrees.lo trees.lo zutil.lo
PIC_OBJG = compress.lo uncompr.lo gzclose.lo gzlib.lo gzread.lo gzwrite.lo
PIC_OBJC = $(PIC_OBJZ) $(PIC_OBJG)
2011-09-10 02:20:29 -04:00
2011-09-10 02:27:17 -04:00
# to use the asm code: make OBJA=match.o, PIC_OBJA=match.lo
OBJA =
PIC_OBJA =
2011-09-10 02:27:08 -04:00
2011-09-10 02:27:17 -04:00
OBJS = $(OBJC) $(OBJA)
2011-09-10 02:25:38 -04:00
2011-09-10 02:27:17 -04:00
PIC_OBJS = $(PIC_OBJC) $(PIC_OBJA)
2011-09-10 02:26:40 -04:00
all: static shared
2011-09-10 02:25:38 -04:00
2011-09-10 02:26:40 -04:00
static: example$(EXE) minigzip$(EXE)
2011-09-10 02:14:39 -04:00
2011-09-10 02:26:40 -04:00
shared: examplesh$(EXE) minigzipsh$(EXE)
2011-09-10 02:14:39 -04:00
2011-09-10 02:26:40 -04:00
all64: example64$(EXE) minigzip64$(EXE)
check: test
2011-09-10 02:26:29 -04:00
2011-09-10 02:26:40 -04:00
test: all teststatic testshared
2011-09-10 02:26:29 -04:00
2011-09-10 02:26:40 -04:00
teststatic: static
@TMPST=tmpst_$$; \
if echo hello world | ./minigzip | ./minigzip -d && ./example $$TMPST ; then \
2011-09-10 02:18:57 -04:00
echo ' *** zlib test OK ***'; \
else \
2011-09-10 02:27:17 -04:00
echo ' *** zlib test FAILED ***'; false; \
fi; \
rm -f $$TMPST
2011-09-10 02:14:39 -04:00
2011-09-10 02:26:40 -04:00
testshared: shared
2011-09-10 02:26:29 -04:00
@LD_LIBRARY_PATH=`pwd`:$(LD_LIBRARY_PATH) ; export LD_LIBRARY_PATH; \
2011-09-10 02:26:40 -04:00
LD_LIBRARYN32_PATH=`pwd`:$(LD_LIBRARYN32_PATH) ; export LD_LIBRARYN32_PATH; \
2011-09-10 02:26:29 -04:00
DYLD_LIBRARY_PATH=`pwd`:$(DYLD_LIBRARY_PATH) ; export DYLD_LIBRARY_PATH; \
SHLIB_PATH=`pwd`:$(SHLIB_PATH) ; export SHLIB_PATH; \
TMPSH=tmpsh_$$; \
if echo hello world | ./minigzipsh | ./minigzipsh -d && ./examplesh $$TMPSH; then \
2011-09-10 02:26:29 -04:00
echo ' *** zlib shared test OK ***'; \
else \
2011-09-10 02:27:17 -04:00
echo ' *** zlib shared test FAILED ***'; false; \
fi; \
rm -f $$TMPSH
2011-09-10 02:26:29 -04:00
2011-09-10 02:26:40 -04:00
test64: all64
@TMP64=tmp64_$$; \
if echo hello world | ./minigzip64 | ./minigzip64 -d && ./example64 $$TMP64; then \
2011-09-10 02:26:40 -04:00
echo ' *** zlib 64-bit test OK ***'; \
else \
2011-09-10 02:27:17 -04:00
echo ' *** zlib 64-bit test FAILED ***'; false; \
fi; \
rm -f $$TMP64
2011-09-10 02:26:29 -04:00
infcover.o: $(SRCDIR)test/infcover.c $(SRCDIR)zlib.h zconf.h
$(CC) $(CFLAGS) $(ZINCOUT) -c -o $@ $(SRCDIR)test/infcover.c
infcover: infcover.o libz.a
$(CC) $(CFLAGS) -o $@ infcover.o libz.a
cover: infcover
rm -f *.gcda
./infcover
gcov inf*.c
2011-09-10 02:25:38 -04:00
libz.a: $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
2011-09-10 02:17:33 -04:00
-@ ($(RANLIB) $@ || true) >/dev/null 2>&1
2011-09-10 02:14:39 -04:00
2011-09-10 02:27:17 -04:00
match.o: match.S
2011-09-10 02:20:29 -04:00
$(CPP) match.S > _match.s
2011-09-10 02:27:17 -04:00
$(CC) -c _match.s
mv _match.o match.o
2011-09-10 02:20:29 -04:00
rm -f _match.s
2011-09-10 02:27:17 -04:00
match.lo: match.S
2011-09-10 02:25:38 -04:00
$(CPP) match.S > _match.s
2011-09-10 02:27:17 -04:00
$(CC) -c -fPIC _match.s
mv _match.o match.lo
2011-09-10 02:25:38 -04:00
rm -f _match.s
example.o: $(SRCDIR)test/example.c $(SRCDIR)zlib.h zconf.h
$(CC) $(CFLAGS) $(ZINCOUT) -c -o $@ $(SRCDIR)test/example.c
2011-09-10 02:26:40 -04:00
minigzip.o: $(SRCDIR)test/minigzip.c $(SRCDIR)zlib.h zconf.h
$(CC) $(CFLAGS) $(ZINCOUT) -c -o $@ $(SRCDIR)test/minigzip.c
example64.o: $(SRCDIR)test/example.c $(SRCDIR)zlib.h zconf.h
$(CC) $(CFLAGS) $(ZINCOUT) -D_FILE_OFFSET_BITS=64 -c -o $@ $(SRCDIR)test/example.c
minigzip64.o: $(SRCDIR)test/minigzip.c $(SRCDIR)zlib.h zconf.h
$(CC) $(CFLAGS) $(ZINCOUT) -D_FILE_OFFSET_BITS=64 -c -o $@ $(SRCDIR)test/minigzip.c
2011-09-10 02:26:40 -04:00
adler32.o: $(SRCDIR)adler32.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)adler32.c
crc32.o: $(SRCDIR)crc32.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)crc32.c
deflate.o: $(SRCDIR)deflate.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)deflate.c
infback.o: $(SRCDIR)infback.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)infback.c
inffast.o: $(SRCDIR)inffast.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)inffast.c
inflate.o: $(SRCDIR)inflate.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)inflate.c
inftrees.o: $(SRCDIR)inftrees.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)inftrees.c
trees.o: $(SRCDIR)trees.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)trees.c
zutil.o: $(SRCDIR)zutil.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)zutil.c
compress.o: $(SRCDIR)compress.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)compress.c
uncompr.o: $(SRCDIR)uncompr.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)uncompr.c
gzclose.o: $(SRCDIR)gzclose.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)gzclose.c
gzlib.o: $(SRCDIR)gzlib.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)gzlib.c
gzread.o: $(SRCDIR)gzread.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)gzread.c
gzwrite.o: $(SRCDIR)gzwrite.c
$(CC) $(CFLAGS) $(ZINC) -c -o $@ $(SRCDIR)gzwrite.c
adler32.lo: $(SRCDIR)adler32.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/adler32.o $(SRCDIR)adler32.c
-@mv objs/adler32.o $@
crc32.lo: $(SRCDIR)crc32.c
2011-09-10 02:34:55 -04:00
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/crc32.o $(SRCDIR)crc32.c
-@mv objs/crc32.o $@
deflate.lo: $(SRCDIR)deflate.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/deflate.o $(SRCDIR)deflate.c
-@mv objs/deflate.o $@
infback.lo: $(SRCDIR)infback.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/infback.o $(SRCDIR)infback.c
-@mv objs/infback.o $@
inffast.lo: $(SRCDIR)inffast.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/inffast.o $(SRCDIR)inffast.c
-@mv objs/inffast.o $@
inflate.lo: $(SRCDIR)inflate.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/inflate.o $(SRCDIR)inflate.c
-@mv objs/inflate.o $@
inftrees.lo: $(SRCDIR)inftrees.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/inftrees.o $(SRCDIR)inftrees.c
-@mv objs/inftrees.o $@
trees.lo: $(SRCDIR)trees.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/trees.o $(SRCDIR)trees.c
-@mv objs/trees.o $@
zutil.lo: $(SRCDIR)zutil.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/zutil.o $(SRCDIR)zutil.c
-@mv objs/zutil.o $@
compress.lo: $(SRCDIR)compress.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/compress.o $(SRCDIR)compress.c
-@mv objs/compress.o $@
uncompr.lo: $(SRCDIR)uncompr.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/uncompr.o $(SRCDIR)uncompr.c
-@mv objs/uncompr.o $@
gzclose.lo: $(SRCDIR)gzclose.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/gzclose.o $(SRCDIR)gzclose.c
-@mv objs/gzclose.o $@
gzlib.lo: $(SRCDIR)gzlib.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/gzlib.o $(SRCDIR)gzlib.c
-@mv objs/gzlib.o $@
gzread.lo: $(SRCDIR)gzread.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/gzread.o $(SRCDIR)gzread.c
-@mv objs/gzread.o $@
gzwrite.lo: $(SRCDIR)gzwrite.c
-@mkdir objs 2>/dev/null || test -d objs
$(CC) $(SFLAGS) $(ZINC) -DPIC -c -o objs/gzwrite.o $(SRCDIR)gzwrite.c
-@mv objs/gzwrite.o $@
2011-09-10 02:25:38 -04:00
2011-09-11 14:04:49 -04:00
placebo $(SHAREDLIBV): $(PIC_OBJS) libz.a
2011-09-10 02:34:30 -04:00
$(LDSHARED) $(SFLAGS) -o $@ $(PIC_OBJS) $(LDSHAREDLIBC) $(LDFLAGS)
2011-09-10 02:23:01 -04:00
rm -f $(SHAREDLIB) $(SHAREDLIBM)
2011-09-10 02:17:33 -04:00
ln -s $@ $(SHAREDLIB)
2011-09-10 02:23:01 -04:00
ln -s $@ $(SHAREDLIBM)
2011-09-10 02:27:17 -04:00
-@rmdir objs
2011-09-10 02:14:39 -04:00
2011-09-10 02:27:17 -04:00
example$(EXE): example.o $(STATICLIB)
2011-09-10 02:34:30 -04:00
$(CC) $(CFLAGS) -o $@ example.o $(TEST_LDFLAGS)
2011-09-10 02:14:39 -04:00
2011-09-10 02:27:17 -04:00
minigzip$(EXE): minigzip.o $(STATICLIB)
2011-09-10 02:34:30 -04:00
$(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS)
2011-09-10 02:14:39 -04:00
2011-09-10 02:27:17 -04:00
examplesh$(EXE): example.o $(SHAREDLIBV)
$(CC) $(CFLAGS) -o $@ example.o -L. $(SHAREDLIBV)
2011-09-10 02:26:40 -04:00
2011-09-10 02:27:17 -04:00
minigzipsh$(EXE): minigzip.o $(SHAREDLIBV)
$(CC) $(CFLAGS) -o $@ minigzip.o -L. $(SHAREDLIBV)
2011-09-10 02:26:40 -04:00
2011-09-10 02:27:17 -04:00
example64$(EXE): example64.o $(STATICLIB)
2011-09-10 02:34:30 -04:00
$(CC) $(CFLAGS) -o $@ example64.o $(TEST_LDFLAGS)
2011-09-10 02:26:29 -04:00
2011-09-10 02:27:17 -04:00
minigzip64$(EXE): minigzip64.o $(STATICLIB)
2011-09-10 02:34:30 -04:00
$(CC) $(CFLAGS) -o $@ minigzip64.o $(TEST_LDFLAGS)
2011-09-10 02:26:29 -04:00
2011-09-10 02:25:38 -04:00
install-libs: $(LIBS)
2011-09-10 02:25:27 -04:00
-@if [ ! -d $(DESTDIR)$(exec_prefix) ]; then mkdir -p $(DESTDIR)$(exec_prefix); fi
-@if [ ! -d $(DESTDIR)$(libdir) ]; then mkdir -p $(DESTDIR)$(libdir); fi
2011-09-10 02:34:45 -04:00
-@if [ ! -d $(DESTDIR)$(sharedlibdir) ]; then mkdir -p $(DESTDIR)$(sharedlibdir); fi
2011-09-10 02:25:27 -04:00
-@if [ ! -d $(DESTDIR)$(man3dir) ]; then mkdir -p $(DESTDIR)$(man3dir); fi
-@if [ ! -d $(DESTDIR)$(pkgconfigdir) ]; then mkdir -p $(DESTDIR)$(pkgconfigdir); fi
2011-09-10 02:34:45 -04:00
cp $(STATICLIB) $(DESTDIR)$(libdir)
2011-09-11 14:04:49 -04:00
chmod 644 $(DESTDIR)$(libdir)/$(STATICLIB)
-@($(RANLIB) $(DESTDIR)$(libdir)/libz.a || true) >/dev/null 2>&1
-@if test -n "$(SHAREDLIBV)"; then \
cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir); \
echo "cp $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)"; \
chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV); \
echo "chmod 755 $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBV)"; \
rm -f $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \
ln -s $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIB); \
ln -s $(SHAREDLIBV) $(DESTDIR)$(sharedlibdir)/$(SHAREDLIBM); \
2011-09-10 02:34:22 -04:00
($(LDCONFIG) || true) >/dev/null 2>&1; \
2011-09-10 02:14:39 -04:00
fi
cp $(SRCDIR)zlib.3 $(DESTDIR)$(man3dir)
2011-09-10 02:25:27 -04:00
chmod 644 $(DESTDIR)$(man3dir)/zlib.3
cp zlib.pc $(DESTDIR)$(pkgconfigdir)
chmod 644 $(DESTDIR)$(pkgconfigdir)/zlib.pc
2011-09-10 02:14:39 -04:00
# The ranlib in install is needed on NeXTSTEP which checks file times
2011-09-10 02:17:33 -04:00
# ldconfig is for Linux
2011-09-10 02:14:39 -04:00
2011-09-10 02:25:38 -04:00
install: install-libs
-@if [ ! -d $(DESTDIR)$(includedir) ]; then mkdir -p $(DESTDIR)$(includedir); fi
cp $(SRCDIR)zlib.h zconf.h $(DESTDIR)$(includedir)
2011-09-10 02:27:08 -04:00
chmod 644 $(DESTDIR)$(includedir)/zlib.h $(DESTDIR)$(includedir)/zconf.h
2011-09-10 02:25:38 -04:00
2011-09-10 02:14:39 -04:00
uninstall:
cd $(DESTDIR)$(includedir) && rm -f zlib.h zconf.h
cd $(DESTDIR)$(libdir) && rm -f libz.a; \
2011-09-11 14:04:49 -04:00
if test -n "$(SHAREDLIBV)" -a -f $(SHAREDLIBV); then \
2011-09-10 02:23:01 -04:00
rm -f $(SHAREDLIBV) $(SHAREDLIB) $(SHAREDLIBM); \
2011-09-10 02:14:39 -04:00
fi
cd $(DESTDIR)$(man3dir) && rm -f zlib.3
cd $(DESTDIR)$(pkgconfigdir) && rm -f zlib.pc
2011-09-10 02:14:39 -04:00
2011-09-10 02:32:36 -04:00
docs: zlib.3.pdf
zlib.3.pdf: $(SRCDIR)zlib.3
groff -mandoc -f H -T ps $(SRCDIR)zlib.3 | ps2pdf - $@
2011-09-10 02:32:36 -04:00
zconf.h.cmakein: $(SRCDIR)zconf.h.in
-@ TEMPFILE=zconfh_$$; \
echo "/#define ZCONF_H/ a\\\\\n#cmakedefine Z_PREFIX\\\\\n#cmakedefine Z_HAVE_UNISTD_H\n" >> $$TEMPFILE &&\
sed -f $$TEMPFILE $(SRCDIR)zconf.h.in > $@ &&\
touch -r $(SRCDIR)zconf.h.in $@ &&\
rm $$TEMPFILE
2011-09-10 02:32:36 -04:00
zconf: $(SRCDIR)zconf.h.in
cp -p $(SRCDIR)zconf.h.in zconf.h
2011-09-10 02:32:36 -04:00
2011-09-10 02:21:57 -04:00
mostlyclean: clean
2011-09-10 02:14:39 -04:00
clean:
2011-09-10 02:27:17 -04:00
rm -f *.o *.lo *~ \
2011-09-10 02:26:29 -04:00
example$(EXE) minigzip$(EXE) examplesh$(EXE) minigzipsh$(EXE) \
2011-09-10 02:26:40 -04:00
example64$(EXE) minigzip64$(EXE) \
infcover \
2011-09-10 02:23:14 -04:00
libz.* foo.gz so_locations \
2011-09-10 02:22:48 -04:00
_match.s maketree contrib/infback9/*.o
2011-09-10 02:27:17 -04:00
rm -rf objs
rm -f *.gcda *.gcno *.gcov
rm -f contrib/infback9/*.gcda contrib/infback9/*.gcno contrib/infback9/*.gcov
2011-09-10 02:14:39 -04:00
2011-09-10 02:21:57 -04:00
maintainer-clean: distclean
distclean: clean zconf zconf.h.cmakein docs
rm -f Makefile zlib.pc configure.log
2011-09-10 02:27:26 -04:00
-@rm -f .DS_Store
@if [ -f Makefile.in ]; then \
printf 'all:\n\t-@echo "Please use ./configure first. Thank you."\n' > Makefile ; \
printf '\ndistclean:\n\tmake -f Makefile.in distclean\n' >> Makefile ; \
touch -r $(SRCDIR)Makefile.in Makefile ; fi
@if [ ! -f zconf.h.in ]; then rm -f zconf.h zconf.h.cmakein ; fi
@if [ ! -f zlib.3 ]; then rm -f zlib.3.pdf ; fi
2011-09-10 02:17:33 -04:00
2011-09-10 02:22:37 -04:00
tags:
etags $(SRCDIR)*.[ch]
adler32.o zutil.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h
gzclose.o gzlib.o gzread.o gzwrite.o: $(SRCDIR)zlib.h zconf.h $(SRCDIR)gzguts.h
compress.o example.o minigzip.o uncompr.o: $(SRCDIR)zlib.h zconf.h
crc32.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)crc32.h
deflate.o: $(SRCDIR)deflate.h $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h
infback.o inflate.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h $(SRCDIR)inflate.h $(SRCDIR)inffast.h $(SRCDIR)inffixed.h
inffast.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h $(SRCDIR)inflate.h $(SRCDIR)inffast.h
inftrees.o: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h
trees.o: $(SRCDIR)deflate.h $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)trees.h
adler32.lo zutil.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h
gzclose.lo gzlib.lo gzread.lo gzwrite.lo: $(SRCDIR)zlib.h zconf.h $(SRCDIR)gzguts.h
compress.lo example.lo minigzip.lo uncompr.lo: $(SRCDIR)zlib.h zconf.h
crc32.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)crc32.h
deflate.lo: $(SRCDIR)deflate.h $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h
infback.lo inflate.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h $(SRCDIR)inflate.h $(SRCDIR)inffast.h $(SRCDIR)inffixed.h
inffast.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h $(SRCDIR)inflate.h $(SRCDIR)inffast.h
inftrees.lo: $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)inftrees.h
trees.lo: $(SRCDIR)deflate.h $(SRCDIR)zutil.h $(SRCDIR)zlib.h zconf.h $(SRCDIR)trees.h