-
Notifications
You must be signed in to change notification settings - Fork 36
/
mf-zlib.mingw-cross
42 lines (33 loc) · 1.08 KB
/
mf-zlib.mingw-cross
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
STATICLIB = libz.a
CC = /opt/mingw64/bin/x86_64-w64-mingw32-gcc -m32
CFLAGS = -march=i386 -mtune=i386 -O2
LD = $(CC)
LDFLAGS =
AR = /opt/mingw64/bin/x86_64-w64-mingw32-ar
ARFLAGS = rcs
OBJS = adler32.o compress.o crc32.o deflate.o gzclose.o gzlib.o gzread.o \
gzwrite.o infback.o inffast.o inflate.o inftrees.o trees.o uncompr.o \
zutil.o
all: $(STATICLIB)
.c.o:
$(CC) $(CFLAGS) -c -o $@ $<
$(STATICLIB): $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
clean:
-$(RM) $(STATICLIB)
-$(RM) *.o
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
gzclose.o: zlib.h zconf.h gzguts.h
gzlib.o: zlib.h zconf.h gzguts.h
gzread.o: zlib.h zconf.h gzguts.h
gzwrite.o: zlib.h zconf.h gzguts.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
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