blob: 58c2640e8c719af16a5070d738f5098a67b95c20 (
plain)
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
|
--- pngcrush-1.7.27/Makefile.orig
+++ pngcrush-1.7.27/Makefile
@@ -11,8 +11,8 @@
# macros --------------------------------------------------------------------
# uncomment these 2 lines only if you are using an external copy of zlib:
-#ZINC = ../../zlib
-#ZLIB = ../../zlib
+ZINC = ../../zlib
+ZLIB = ../../zlib
CC = gcc
LD = gcc
@@ -20,10 +20,10 @@
#CFLAGS = -I. -O -Wall
#CFLAGS = -I. -O2
#CFLAGS = -I. -O3 -fomit-frame-pointer -Wall
-#CFLAGS = -I. -Os -fomit-frame-pointer -Wall
+CFLAGS = -I. -Os -fomit-frame-pointer -Wall
#CFLAGS = -I. -O3 -funroll-loops -fomit-frame-pointer -Wall -Wshadow
# Work around zlib compiler bug in 1.2.6
-CFLAGS = -I. -O3 -funroll-loops -fomit-frame-pointer -Wall -Wshadow -DZ_SOLO
+#CFLAGS = -I. -O3 -funroll-loops -fomit-frame-pointer -Wall -Wshadow -DZ_SOLO
#CFLAGS = -I${ZINC} -I. -O3 -fomit-frame-pointer -Wall
# [note that -Wall is a gcc-specific compilation flag ("all warnings on")]
@@ -37,15 +37,15 @@
PNGCRUSH = pngcrush
-LIBS = -lm
+LIBS = -lz -lm
#LIBS = -L${ZLIB} -lz -lm
#LIBS = ${ZLIB}/libz.a -lm
# uncomment these 4 lines only if you are NOT using an external copy of zlib:
-ZHDR = zlib.h
-ZOBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) \
- infback$(O) inffast$(O) inflate$(O) inftrees$(O) \
- trees$(O) uncompr$(O) zutil$(O)
+#ZHDR = zlib.h
+#ZOBJS = adler32$(O) compress$(O) crc32$(O) deflate$(O) \
+# infback$(O) inffast$(O) inflate$(O) inftrees$(O) \
+# trees$(O) uncompr$(O) zutil$(O)
OBJS = pngcrush$(O) png$(O) pngerror$(O) pngget$(O) pngmem$(O) \
pngpread$(O) pngread$(O) pngrio$(O) pngrtran$(O) pngrutil$(O) \
|