|
@ -1,17 +1,20 @@ |
|
|
diff -u -r ../zopfli-zopfli-1.0.1/Makefile ./Makefile
|
|
|
diff -u -r ../zopfli-zopfli-1.0.2/Makefile ./Makefile
|
|
|
--- ../zopfli-zopfli-1.0.1/Makefile 2015-08-22 10:36:46.000000000 -0400
|
|
|
--- ../zopfli-zopfli-1.0.2/Makefile 2018-05-18 10:16:14.000000000 +0000
|
|
|
+++ ./Makefile 2016-01-09 20:43:38.611197626 -0500
|
|
|
+++ ./Makefile 2018-05-18 21:27:42.159933403 +0000
|
|
|
@@ -1,9 +1,3 @@
|
|
|
@@ -1,8 +1,8 @@
|
|
|
-CC = gcc
|
|
|
-CC = gcc
|
|
|
-CXX = g++
|
|
|
-CXX = g++
|
|
|
-
|
|
|
+CC ?= gcc
|
|
|
-CFLAGS = -W -Wall -Wextra -ansi -pedantic -lm -O2
|
|
|
+CXX ?= g++
|
|
|
|
|
|
|
|
|
|
|
|
-CFLAGS = -W -Wall -Wextra -ansi -pedantic -lm -O2 -Wno-unused-function
|
|
|
-CXXFLAGS = -W -Wall -Wextra -ansi -pedantic -O2
|
|
|
-CXXFLAGS = -W -Wall -Wextra -ansi -pedantic -O2
|
|
|
-
|
|
|
+CFLAGS ?= -W -Wall -Wextra -ansi -pedantic -lm -O2 -Wno-unused-function
|
|
|
|
|
|
+CXXFLAGS ?= -W -Wall -Wextra -ansi -pedantic -O2
|
|
|
|
|
|
|
|
|
ZOPFLILIB_SRC = src/zopfli/blocksplitter.c src/zopfli/cache.c\ |
|
|
ZOPFLILIB_SRC = src/zopfli/blocksplitter.c src/zopfli/cache.c\ |
|
|
src/zopfli/deflate.c src/zopfli/gzip_container.c\ |
|
|
src/zopfli/deflate.c src/zopfli/gzip_container.c\ |
|
|
src/zopfli/hash.c src/zopfli/katajainen.c\ |
|
|
@@ -20,22 +20,22 @@
|
|
|
@@ -20,22 +14,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
# Zopfli binary |
|
|
# Zopfli binary |
|
|
zopfli: |
|
|
zopfli: |
|
@ -22,7 +25,7 @@ diff -u -r ../zopfli-zopfli-1.0.1/Makefile ./Makefile |
|
|
-libzopfli:
|
|
|
-libzopfli:
|
|
|
+install:
|
|
|
+install:
|
|
|
$(CC) $(ZOPFLILIB_SRC) $(CFLAGS) -fPIC -c |
|
|
$(CC) $(ZOPFLILIB_SRC) $(CFLAGS) -fPIC -c |
|
|
- $(CC) $(ZOPFLILIB_OBJ) $(CFLAGS) -shared -Wl,-soname,libzopfli.so.1 -o libzopfli.so.1.0.1
|
|
|
- $(CC) $(ZOPFLILIB_OBJ) $(CFLAGS) -shared -Wl,-soname,libzopfli.so.1 -o libzopfli.so.1.0.2
|
|
|
+ $(CC) $(ZOPFLILIB_OBJ) $(CFLAGS) -shared -o @TERMUX_PREFIX@/lib/libzopfli.so -lm
|
|
|
+ $(CC) $(ZOPFLILIB_OBJ) $(CFLAGS) -shared -o @TERMUX_PREFIX@/lib/libzopfli.so -lm
|
|
|
|
|
|
|
|
|
# ZopfliPNG binary |
|
|
# ZopfliPNG binary |
|
@ -34,8 +37,8 @@ diff -u -r ../zopfli-zopfli-1.0.1/Makefile ./Makefile |
|
|
# ZopfliPNG shared library |
|
|
# ZopfliPNG shared library |
|
|
libzopflipng: |
|
|
libzopflipng: |
|
|
$(CC) $(ZOPFLILIB_SRC) $(CFLAGS) -fPIC -c |
|
|
$(CC) $(ZOPFLILIB_SRC) $(CFLAGS) -fPIC -c |
|
|
- $(CXX) $(ZOPFLILIB_OBJ) $(LODEPNG_SRC) $(ZOPFLIPNGLIB_SRC) $(CFLAGS) -fPIC --shared -Wl,-soname,libzopflipng.so.1 -o libzopflipng.so.1.0.0
|
|
|
- $(CXX) $(ZOPFLILIB_OBJ) $(LODEPNG_SRC) $(ZOPFLIPNGLIB_SRC) $(CFLAGS) -fPIC --shared -Wl,-soname,libzopflipng.so.1 -o libzopflipng.so.1.0.2
|
|
|
+ $(CXX) $(ZOPFLILIB_OBJ) $(LODEPNG_SRC) $(ZOPFLIPNGLIB_SRC) $(CFLAGS) -fPIC --shared -Wl,-soname,libzopflipng.so.1 -o libzopflipng.so -lm
|
|
|
+ $(CXX) $(ZOPFLILIB_OBJ) $(LODEPNG_SRC) $(ZOPFLIPNGLIB_SRC) $(CFLAGS) -fPIC --shared -Wl,-soname,libzopflipng.so.1 -o libzopflipng.so.1.0.2 -lm
|
|
|
|
|
|
|
|
|
# Remove all libraries and binaries |
|
|
# Remove all libraries and binaries |
|
|
clean: |
|
|
clean: |
|
|