2018-05-18 23:34:45 +02:00
|
|
|
diff -u -r ../zopfli-zopfli-1.0.2/Makefile ./Makefile
|
|
|
|
--- ../zopfli-zopfli-1.0.2/Makefile 2018-05-18 10:16:14.000000000 +0000
|
|
|
|
+++ ./Makefile 2018-05-18 21:27:42.159933403 +0000
|
|
|
|
@@ -1,8 +1,8 @@
|
2016-01-10 02:51:28 +01:00
|
|
|
-CC = gcc
|
|
|
|
-CXX = g++
|
2018-05-18 23:34:45 +02:00
|
|
|
+CC ?= gcc
|
|
|
|
+CXX ?= g++
|
|
|
|
|
|
|
|
-CFLAGS = -W -Wall -Wextra -ansi -pedantic -lm -O2 -Wno-unused-function
|
2016-01-10 02:51:28 +01:00
|
|
|
-CXXFLAGS = -W -Wall -Wextra -ansi -pedantic -O2
|
2018-05-18 23:34:45 +02:00
|
|
|
+CFLAGS ?= -W -Wall -Wextra -ansi -pedantic -lm -O2 -Wno-unused-function
|
|
|
|
+CXXFLAGS ?= -W -Wall -Wextra -ansi -pedantic -O2
|
|
|
|
|
2016-01-10 02:51:28 +01:00
|
|
|
ZOPFLILIB_SRC = src/zopfli/blocksplitter.c src/zopfli/cache.c\
|
|
|
|
src/zopfli/deflate.c src/zopfli/gzip_container.c\
|
2018-05-18 23:34:45 +02:00
|
|
|
@@ -20,22 +20,22 @@
|
2016-01-10 02:51:28 +01:00
|
|
|
|
|
|
|
# Zopfli binary
|
|
|
|
zopfli:
|
|
|
|
- $(CC) $(ZOPFLILIB_SRC) $(ZOPFLIBIN_SRC) $(CFLAGS) -o zopfli
|
|
|
|
+ $(CC) $(ZOPFLILIB_SRC) $(ZOPFLIBIN_SRC) $(CFLAGS) -o zopfli -lm
|
|
|
|
|
|
|
|
# Zopfli shared library
|
|
|
|
-libzopfli:
|
|
|
|
+install:
|
|
|
|
$(CC) $(ZOPFLILIB_SRC) $(CFLAGS) -fPIC -c
|
2018-05-18 23:34:45 +02:00
|
|
|
- $(CC) $(ZOPFLILIB_OBJ) $(CFLAGS) -shared -Wl,-soname,libzopfli.so.1 -o libzopfli.so.1.0.2
|
2016-09-01 19:59:38 +02:00
|
|
|
+ $(CC) $(ZOPFLILIB_OBJ) $(CFLAGS) -shared -o @TERMUX_PREFIX@/lib/libzopfli.so -lm
|
2016-01-10 02:51:28 +01:00
|
|
|
|
|
|
|
# ZopfliPNG binary
|
|
|
|
zopflipng:
|
|
|
|
$(CC) $(ZOPFLILIB_SRC) $(CFLAGS) -c
|
|
|
|
- $(CXX) $(ZOPFLILIB_OBJ) $(LODEPNG_SRC) $(ZOPFLIPNGLIB_SRC) $(ZOPFLIPNGBIN_SRC) $(CFLAGS) -o zopflipng
|
2018-03-03 22:47:32 +01:00
|
|
|
+ $(CXX) $(ZOPFLILIB_OBJ) $(LODEPNG_SRC) $(ZOPFLIPNGLIB_SRC) $(ZOPFLIPNGBIN_SRC) $(CFLAGS) $(LDFLAGS) -o zopflipng -lm
|
2016-01-10 02:51:28 +01:00
|
|
|
|
|
|
|
# ZopfliPNG shared library
|
|
|
|
libzopflipng:
|
|
|
|
$(CC) $(ZOPFLILIB_SRC) $(CFLAGS) -fPIC -c
|
2018-05-18 23:34:45 +02:00
|
|
|
- $(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.1.0.2 -lm
|
2016-01-10 02:51:28 +01:00
|
|
|
|
|
|
|
# Remove all libraries and binaries
|
|
|
|
clean:
|