aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authoryzrh <yzrh@noema.org>2022-12-22 19:47:40 +0000
committeryzrh <yzrh@noema.org>2022-12-24 23:29:56 +0000
commit9c1f1d0b75de0d2ed299842d3025941f3e681c16 (patch)
tree302f6d4a2235acfe8872a3c0c1c216fecc323b95 /src/Makefile
parentac3b1dda63944f2cc8caaa52344774255e1956c8 (diff)
downloadmelon-9c1f1d0b75de0d2ed299842d3025941f3e681c16.tar.gz
melon-9c1f1d0b75de0d2ed299842d3025941f3e681c16.tar.zst
Fix HN conversion and add JBIG2 support.
Signed-off-by: yzrh <yzrh@noema.org>
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Makefile b/src/Makefile
index 7016c6c..6943af3 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -4,19 +4,19 @@
# SPDX-License-Identifier: Apache-2.0
#
-src = melon.c iconv.c zlib.c jbig.c jpeg.c \
+src = melon.c iconv.c zlib.c jbig.c jbig2.c jpeg.c \
cnki_caj.c cnki_hn.c cnki_kdh.c cnki_outline_tree.c \
- cnki_pdf.c cnki_xml.c cnki_zlib.c cnki_jbig.c cnki.c \
+ cnki_pdf.c cnki_zlib.c cnki_jbig.c cnki_jbig2.c cnki.c \
pdf_cnki.c pdf_get.c pdf_parser.c pdf_writer.c pdf.c
-inc = extern.h version.h iconv.h zlib.h jbig.h jpeg.h \
+inc = extern.h version.h iconv.h zlib.h jbig.h jbig2.h jpeg.h \
cnki.h pdf_cnki.h cnki_jbig.h pdf.h
obj = ${src:.c=.o}
PREFIX = /usr/local
-CFLAGS = -O2 -pipe -flto -Wall -Wextra -Wno-unused-parameter
-LDFLAGS = -Wl,-O2 -lcrypto -liconv -lz -ljbig -ljpeg -Wl,--as-needed
+CFLAGS = -O2 -pipe -flto -Wall -Wextra
+LDFLAGS = -Wl,-O2 -lcrypto -liconv -lz -ljbig2dec -ljpeg -Wl,--as-needed
CFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib