File: Makebz2.iz

package info (click to toggle)
unzip 6.0-16%2Bdeb8u3
  • links: PTS
  • area: main
  • in suites: jessie
  • size: 8,768 kB
  • ctags: 10,194
  • sloc: ansic: 55,133; cpp: 4,084; makefile: 2,517; asm: 1,789; cs: 1,012; sh: 119
file content (54 lines) | stat: -rw-r--r-- 1,033 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Makefile for UnZip's bzip2 support library
# Unix, and other ports using sufficiently unix-compatible
# library naming conventions (e.g. misc. GCC ports)
#
# (c) 2006-2007 Info-ZIP
# Last revision: Christian Spieler, 2007-Mar-31
#
# This Makefile is intended to be called from UnZip's main make procedure.

SHELL=/bin/sh

# To assist in cross-compiling
CC=gcc
AR=ar
RANLIB=ranlib
RM=rm -f
LDFLAGS=
O=.o

CFLAGS=-Wall -Winline -O2 -g
CCBZ2DEFS=-DBZ_NO_STDIO


OBJS= blocksort$(O)  \
      huffman$(O)    \
      crctable$(O)   \
      randtable$(O)  \
      compress$(O)   \
      decompress$(O) \
      bzlib$(O)

# How to compile sources
.c$(O):
	$(CC) $(CFLAGS) $(CCBZ2DEFS) -o $@ -c $<

all: libbz2.a

libbz2.a: $(OBJS)
	-@$(RM) libbz2.a
	$(AR) cq libbz2.a $(OBJS)
	-$(RANLIB) libbz2.a

clean:
	$(RM) $(OBJS) libbz2.a

$(OBJS): bzlib.h bzlib_private.h

blocksort$(O): blocksort.c
huffman$(O): huffman.c
crctable$(O): crctable.c
randtable$(O): randtable.c
compress$(O): compress.c
decompress$(O): decompress.c
bzlib$(O): bzlib.c