diff options
author | yzrh <yzrh@noema.org> | 2022-12-29 00:18:07 +0000 |
---|---|---|
committer | yzrh <yzrh@noema.org> | 2022-12-29 00:40:14 +0000 |
commit | 8083b30530a37d3529d453515465a00aac74a154 (patch) | |
tree | 0390c6550f642c96ad0f4b40aab949d1e120ffd0 /src/Makefile | |
parent | abce2fd2e4f8089779fb9b1dce94133716b0bb39 (diff) | |
download | melon-8083b30530a37d3529d453515465a00aac74a154.tar.gz melon-8083b30530a37d3529d453515465a00aac74a154.tar.zst |
Add JPEG 2000 support.
Signed-off-by: yzrh <yzrh@noema.org>
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile b/src/Makefile index 6943af3..065a8a5 100644 --- a/src/Makefile +++ b/src/Makefile @@ -4,11 +4,11 @@ # SPDX-License-Identifier: Apache-2.0 # -src = melon.c iconv.c zlib.c jbig.c jbig2.c jpeg.c \ +src = melon.c iconv.c zlib.c jbig.c jbig2.c jpeg.c jp2.c \ cnki_caj.c cnki_hn.c cnki_kdh.c cnki_outline_tree.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 jbig2.h jpeg.h \ +inc = extern.h version.h iconv.h zlib.h jbig.h jbig2.h jpeg.h jp2.h \ cnki.h pdf_cnki.h cnki_jbig.h pdf.h obj = ${src:.c=.o} @@ -16,7 +16,7 @@ obj = ${src:.c=.o} PREFIX = /usr/local CFLAGS = -O2 -pipe -flto -Wall -Wextra -LDFLAGS = -Wl,-O2 -lcrypto -liconv -lz -ljbig2dec -ljpeg -Wl,--as-needed +LDFLAGS = -Wl,-O2 -lcrypto -liconv -lz -ljbig2dec -ljpeg -lopenjp2 -Wl,--as-needed CFLAGS += -I/usr/local/include LDFLAGS += -L/usr/local/lib |