2024-09-12 21:05:24 +08:00
|
|
|
# Makefile for zlib-ng
|
2023-12-27 12:06:17 +08:00
|
|
|
# Copyright (C) 1995-2013 Jean-loup Gailly, Mark Adler
|
2024-09-12 21:05:24 +08:00
|
|
|
# Copyright (C) 2024 Hans Kristian Rosbach
|
2023-12-27 12:06:17 +08:00
|
|
|
# For conditions of distribution and use, see copyright notice in zlib.h
|
|
|
|
|
|
|
|
CC=
|
|
|
|
CFLAGS=
|
|
|
|
SFLAGS=
|
|
|
|
INCLUDES=
|
|
|
|
|
|
|
|
SRCDIR=.
|
|
|
|
SRCTOP=../..
|
|
|
|
TOPDIR=$(SRCTOP)
|
|
|
|
|
2024-09-12 21:05:24 +08:00
|
|
|
all: \
|
|
|
|
adler32_c.o adler32_c.lo \
|
|
|
|
adler32_fold_c.o adler32_fold_c.lo \
|
|
|
|
chunkset_c.o chunkset_c.lo \
|
|
|
|
compare256_c.o compare256_c.lo \
|
|
|
|
crc32_braid_c.o crc32_braid_c.lo \
|
|
|
|
crc32_fold_c.o crc32_fold_c.lo \
|
|
|
|
slide_hash_c.o slide_hash_c.lo
|
|
|
|
|
|
|
|
|
|
|
|
adler32_c.o: $(SRCDIR)/adler32_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/adler32_p.h
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_c.c
|
|
|
|
|
|
|
|
adler32_c.lo: $(SRCDIR)/adler32_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/adler32_p.h
|
|
|
|
$(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_c.c
|
|
|
|
|
|
|
|
adler32_fold_c.o: $(SRCDIR)/adler32_fold_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/functable.h
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_fold_c.c
|
|
|
|
|
|
|
|
adler32_fold_c.lo: $(SRCDIR)/adler32_fold_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/functable.h
|
|
|
|
$(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/adler32_fold_c.c
|
|
|
|
|
|
|
|
chunkset_c.o: $(SRCDIR)/chunkset_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/chunkset_tpl.h $(SRCTOP)/inffast_tpl.h
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/chunkset_c.c
|
|
|
|
|
|
|
|
chunkset_c.lo: $(SRCDIR)/chunkset_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/chunkset_tpl.h $(SRCTOP)/inffast_tpl.h
|
|
|
|
$(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/chunkset_c.c
|
|
|
|
|
|
|
|
compare256_c.o: $(SRCDIR)/compare256_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/zutil_p.h $(SRCTOP)/deflate.h $(SRCTOP)/fallback_builtins.h
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/compare256_c.c
|
|
|
|
|
|
|
|
compare256_c.lo: $(SRCDIR)/compare256_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/zutil_p.h $(SRCTOP)/deflate.h $(SRCTOP)/fallback_builtins.h
|
|
|
|
$(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/compare256_c.c
|
|
|
|
|
|
|
|
crc32_braid_c.o: $(SRCDIR)/crc32_braid_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/crc32_braid_p.h $(SRCTOP)/crc32_braid_tbl.h
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/crc32_braid_c.c
|
|
|
|
|
|
|
|
crc32_braid_c.lo: $(SRCDIR)/crc32_braid_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/crc32_braid_p.h $(SRCTOP)/crc32_braid_tbl.h
|
|
|
|
$(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/crc32_braid_c.c
|
|
|
|
|
|
|
|
crc32_fold_c.o: $(SRCDIR)/crc32_fold_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/functable.h
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/crc32_fold_c.c
|
|
|
|
|
|
|
|
crc32_fold_c.lo: $(SRCDIR)/crc32_fold_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/functable.h
|
|
|
|
$(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/crc32_fold_c.c
|
|
|
|
|
|
|
|
slide_hash_c.o: $(SRCDIR)/slide_hash_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/deflate.h
|
|
|
|
$(CC) $(CFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_c.c
|
|
|
|
|
|
|
|
slide_hash_c.lo: $(SRCDIR)/slide_hash_c.c $(SRCTOP)/zbuild.h $(SRCTOP)/deflate.h
|
|
|
|
$(CC) $(SFLAGS) $(INCLUDES) -c -o $@ $(SRCDIR)/slide_hash_c.c
|
2023-12-27 12:06:17 +08:00
|
|
|
|
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
clean:
|
2024-09-12 21:05:24 +08:00
|
|
|
rm -f *.o *.lo *~
|
2023-12-27 12:06:17 +08:00
|
|
|
rm -rf objs
|
|
|
|
rm -f *.gcda *.gcno *.gcov
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile
|