1
# Makefile for UnZip's bzip2 support library
2
# Unix, and other ports using sufficiently unix-compatible
3
# library naming conventions (e.g. misc. GCC ports)
5
# (c) 2006-2007 Info-ZIP
6
# Last revision: Christian Spieler, 2007-Mar-31
8
# This Makefile is intended to be called from UnZip's main make procedure.
12
# To assist in cross-compiling
20
CFLAGS=-Wall -Winline -O2 -g
21
CCBZ2DEFS=-DBZ_NO_STDIO
32
# How to compile sources
34
$(CC) $(CFLAGS) $(CCBZ2DEFS) -o $@ -c $<
40
$(AR) cq libbz2.a $(OBJS)
44
$(RM) $(OBJS) libbz2.a
46
$(OBJS): bzlib.h bzlib_private.h
48
blocksort$(O): blocksort.c
49
huffman$(O): huffman.c
50
crctable$(O): crctable.c
51
randtable$(O): randtable.c
52
compress$(O): compress.c
53
decompress$(O): decompress.c