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 55 56 57 58
|
# Makefile for zlib
# Copyright (C) 1995-2003 Jean-loup Gailly.
# For conditions of distribution and use, see copyright notice in zlib.h
# Modified for AWS (Ada Web Server) by Dmitriy Anisimkov and Pascal Obry
.PHONY: all
CC = gcc
CFLAGS = -O3
#CFLAGS=-g -DDEBUG
LIBZ_static = ../../lib/libz.a
ifeq (${OS}, Windows_NT)
LIBZ_shared = ../../lib/z$(SOEXT)
else
LIBZ_shared = ../../lib/libz$(SOEXT)
endif
ifeq (${SHARED}, true)
LIB = $(LIBZ_shared)
else
LIB = $(LIBZ_static)
endif
OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
zutil.o inflate.o infback.o inftrees.o inffast.o
all: $(LIB)
$(LIBZ_static): $(OBJS)
$(AR) rc $@ $(OBJS)
$(LIBZ_shared): $(OBJS)
$(GCC) -shared -o $@ $(OBJS)
clean:
-rm -f $(LIB) *.o *~
# DO NOT DELETE THIS LINE -- make depend depends on it.
adler32.o: zlib.h zconf.h
compress.o: zlib.h zconf.h
crc32.o: crc32.h zlib.h zconf.h
deflate.o: deflate.h zutil.h zlib.h zconf.h
example.o: zlib.h zconf.h
gzio.o: zutil.h zlib.h zconf.h
inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
inftrees.o: zutil.h zlib.h zconf.h inftrees.h
minigzip.o: zlib.h zconf.h
trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
uncompr.o: zlib.h zconf.h
zutil.o: zutil.h zlib.h zconf.h
|