c99dc28cf55a36bebcb9ce3b13ec7e98e0ec18ac
[reactos.git] / reactos / dll / win32 / zlib / contrib / untgz / makefile.w32
1 # Makefile for zlib. Modified for mingw32
2 # For conditions of distribution and use, see copyright notice in zlib.h
3
4 # To compile,
5 #
6 # make -fmakefile.w32
7 #
8
9 CC=gcc
10
11 # Generate dependencies (see end of the file)
12
13 CPPFLAGS=-MMD
14
15 #CFLAGS=-MMD -O
16 #CFLAGS=-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7
17 #CFLAGS=-MMD -g -DDEBUG
18 CFLAGS=-O3 $(BUTT) -Wall -Wwrite-strings -Wpointer-arith -Wconversion \
19 -Wstrict-prototypes -Wmissing-prototypes
20
21 # If cp.exe is not found, replace with copy /Y .
22 CP=cp -f
23
24 # The default value of RM is "rm -f."
25 # If "rm.exe" is not found, uncomment:
26 # RM=del
27
28 LD=gcc
29 LDLIBS=-L. -lz
30 LDFLAGS=-s
31
32
33 INCL=zlib.h zconf.h
34 LIBS=libz.a
35
36 AR=ar rcs
37
38 OBJS = adler32.o compress.o crc32.o gzio.o uncompr.o deflate.o trees.o \
39 zutil.o inflate.o infblock.o inftrees.o infcodes.o infutil.o \
40 inffast.o
41
42 TEST_OBJS = minigzip.o untgz.o
43
44 all: minigzip.exe untgz.exe
45
46 rebuild: clean all
47
48 libz.a: $(OBJS)
49 $(AR) $@ $(OBJS)
50
51 %.exe : %.o $(LIBS)
52 $(LD) $(LDFLAGS) -o $@ $< $(LDLIBS)
53
54 .PHONY : clean
55
56 clean:
57 $(RM) *.d *.o *.exe libz.a foo.gz
58
59 DEPS := $(wildcard *.d)
60 ifneq ($(DEPS),)
61 include $(DEPS)
62 endif
63