2009-10-10 15:28:33 +00:00
|
|
|
TARGETS_libqpdf = libqpdf/$(OUTPUT_DIR)/$(call libname,qpdf)
|
2008-04-29 12:55:25 +00:00
|
|
|
|
2021-12-28 16:58:19 +00:00
|
|
|
ifeq ($(MAINTAINER_MODE), 1)
|
|
|
|
ifeq ($(shell if ./generate_auto_job --check; then echo 0; else echo 1; fi), 1)
|
|
|
|
_ := $(shell ./generate_auto_job --generate)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2009-10-23 03:20:03 +00:00
|
|
|
INCLUDES_libqpdf = include libqpdf
|
2009-10-11 00:24:22 +00:00
|
|
|
LDFLAGS_libqpdf = -Llibqpdf/$(OUTPUT_DIR)
|
|
|
|
LIBS_libqpdf = -lqpdf
|
2008-04-29 12:55:25 +00:00
|
|
|
|
2019-11-04 20:11:00 +00:00
|
|
|
CRYPTO_NATIVE = \
|
2019-11-04 18:59:19 +00:00
|
|
|
libqpdf/AES_PDF_native.cc \
|
2019-11-04 20:11:00 +00:00
|
|
|
libqpdf/MD5_native.cc \
|
|
|
|
libqpdf/QPDFCrypto_native.cc \
|
|
|
|
libqpdf/RC4_native.cc \
|
|
|
|
libqpdf/SHA2_native.cc \
|
|
|
|
libqpdf/rijndael.cc \
|
|
|
|
libqpdf/sha2.c \
|
|
|
|
libqpdf/sha2big.c
|
|
|
|
|
2020-04-06 03:19:56 +00:00
|
|
|
CRYPTO_OPENSSL = \
|
|
|
|
libqpdf/QPDFCrypto_openssl.cc
|
|
|
|
|
2019-11-05 19:32:28 +00:00
|
|
|
CRYPTO_GNUTLS = \
|
|
|
|
libqpdf/QPDFCrypto_gnutls.cc
|
|
|
|
|
2019-11-04 20:11:00 +00:00
|
|
|
SRCS_libqpdf = \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/BitStream.cc \
|
|
|
|
libqpdf/BitWriter.cc \
|
|
|
|
libqpdf/Buffer.cc \
|
2012-07-21 09:37:14 +00:00
|
|
|
libqpdf/BufferInputSource.cc \
|
2018-06-22 16:15:22 +00:00
|
|
|
libqpdf/ClosedFileInputSource.cc \
|
2018-02-02 23:21:34 +00:00
|
|
|
libqpdf/ContentNormalizer.cc \
|
2020-04-06 14:19:37 +00:00
|
|
|
libqpdf/CryptoRandomDataProvider.cc \
|
2012-07-21 09:37:14 +00:00
|
|
|
libqpdf/FileInputSource.cc \
|
|
|
|
libqpdf/InputSource.cc \
|
2013-11-30 17:02:56 +00:00
|
|
|
libqpdf/InsecureRandomDataProvider.cc \
|
2018-12-17 16:55:11 +00:00
|
|
|
libqpdf/JSON.cc \
|
2022-01-19 14:31:28 +00:00
|
|
|
libqpdf/JSONHandler.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/MD5.cc \
|
2021-01-16 13:31:56 +00:00
|
|
|
libqpdf/NNTree.cc \
|
2012-12-25 19:38:18 +00:00
|
|
|
libqpdf/OffsetInputSource.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/Pipeline.cc \
|
2009-10-17 03:14:47 +00:00
|
|
|
libqpdf/Pl_AES_PDF.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/Pl_ASCII85Decoder.cc \
|
|
|
|
libqpdf/Pl_ASCIIHexDecoder.cc \
|
|
|
|
libqpdf/Pl_Buffer.cc \
|
2012-06-27 05:00:18 +00:00
|
|
|
libqpdf/Pl_Concatenate.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/Pl_Count.cc \
|
2017-08-18 23:52:53 +00:00
|
|
|
libqpdf/Pl_DCT.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/Pl_Discard.cc \
|
|
|
|
libqpdf/Pl_Flate.cc \
|
|
|
|
libqpdf/Pl_LZWDecoder.cc \
|
|
|
|
libqpdf/Pl_MD5.cc \
|
|
|
|
libqpdf/Pl_PNGFilter.cc \
|
|
|
|
libqpdf/Pl_QPDFTokenizer.cc \
|
|
|
|
libqpdf/Pl_RC4.cc \
|
2017-08-16 10:26:31 +00:00
|
|
|
libqpdf/Pl_RunLength.cc \
|
2012-12-29 13:07:46 +00:00
|
|
|
libqpdf/Pl_SHA2.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/Pl_StdioFile.cc \
|
2018-01-13 19:15:20 +00:00
|
|
|
libqpdf/Pl_TIFFPredictor.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/QPDF.cc \
|
2018-06-19 13:26:41 +00:00
|
|
|
libqpdf/QPDFAcroFormDocumentHelper.cc \
|
|
|
|
libqpdf/QPDFAnnotationObjectHelper.cc \
|
2021-12-30 20:50:31 +00:00
|
|
|
libqpdf/QPDFArgParser.cc \
|
2019-11-04 01:36:53 +00:00
|
|
|
libqpdf/QPDFCryptoProvider.cc \
|
2021-02-08 23:07:21 +00:00
|
|
|
libqpdf/QPDFEFStreamObjectHelper.cc \
|
|
|
|
libqpdf/QPDFEmbeddedFileDocumentHelper.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/QPDFExc.cc \
|
2021-02-08 23:07:21 +00:00
|
|
|
libqpdf/QPDFFileSpecObjectHelper.cc \
|
2018-06-19 13:26:41 +00:00
|
|
|
libqpdf/QPDFFormFieldObjectHelper.cc \
|
2022-01-03 15:16:28 +00:00
|
|
|
libqpdf/QPDFJob.cc \
|
2022-01-05 22:20:20 +00:00
|
|
|
libqpdf/QPDFJob_argv.cc \
|
2022-01-23 14:46:02 +00:00
|
|
|
libqpdf/QPDFJob_config.cc \
|
2018-12-24 21:28:08 +00:00
|
|
|
libqpdf/QPDFMatrix.cc \
|
2018-12-19 02:56:56 +00:00
|
|
|
libqpdf/QPDFNameTreeObjectHelper.cc \
|
2018-12-18 18:08:55 +00:00
|
|
|
libqpdf/QPDFNumberTreeObjectHelper.cc \
|
2013-06-14 15:22:04 +00:00
|
|
|
libqpdf/QPDFObjGen.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/QPDFObject.cc \
|
|
|
|
libqpdf/QPDFObjectHandle.cc \
|
2018-12-19 02:08:53 +00:00
|
|
|
libqpdf/QPDFOutlineDocumentHelper.cc \
|
|
|
|
libqpdf/QPDFOutlineObjectHelper.cc \
|
2018-06-18 19:05:53 +00:00
|
|
|
libqpdf/QPDFPageDocumentHelper.cc \
|
2018-12-18 16:29:00 +00:00
|
|
|
libqpdf/QPDFPageLabelDocumentHelper.cc \
|
2018-06-18 19:05:53 +00:00
|
|
|
libqpdf/QPDFPageObjectHelper.cc \
|
2020-12-23 11:12:49 +00:00
|
|
|
libqpdf/QPDFStreamFilter.cc \
|
2018-08-13 23:48:02 +00:00
|
|
|
libqpdf/QPDFSystemError.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/QPDFTokenizer.cc \
|
|
|
|
libqpdf/QPDFWriter.cc \
|
|
|
|
libqpdf/QPDFXRefEntry.cc \
|
|
|
|
libqpdf/QPDF_Array.cc \
|
|
|
|
libqpdf/QPDF_Bool.cc \
|
|
|
|
libqpdf/QPDF_Dictionary.cc \
|
2013-01-20 19:55:01 +00:00
|
|
|
libqpdf/QPDF_InlineImage.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/QPDF_Integer.cc \
|
|
|
|
libqpdf/QPDF_Name.cc \
|
|
|
|
libqpdf/QPDF_Null.cc \
|
2013-01-23 14:38:05 +00:00
|
|
|
libqpdf/QPDF_Operator.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/QPDF_Real.cc \
|
2012-07-08 18:19:19 +00:00
|
|
|
libqpdf/QPDF_Reserved.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/QPDF_Stream.cc \
|
|
|
|
libqpdf/QPDF_String.cc \
|
|
|
|
libqpdf/QPDF_encryption.cc \
|
|
|
|
libqpdf/QPDF_linearization.cc \
|
|
|
|
libqpdf/QPDF_optimization.cc \
|
2012-06-21 13:18:49 +00:00
|
|
|
libqpdf/QPDF_pages.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/QTC.cc \
|
|
|
|
libqpdf/QUtil.cc \
|
2009-09-27 03:11:29 +00:00
|
|
|
libqpdf/RC4.cc \
|
2021-03-01 21:13:03 +00:00
|
|
|
libqpdf/ResourceFinder.cc \
|
2013-11-30 17:02:56 +00:00
|
|
|
libqpdf/SecureRandomDataProvider.cc \
|
2020-12-23 11:12:49 +00:00
|
|
|
libqpdf/SF_FlateLzwDecode.cc \
|
2019-08-17 22:54:24 +00:00
|
|
|
libqpdf/SparseOHArray.cc \
|
2019-11-04 20:11:00 +00:00
|
|
|
libqpdf/qpdf-c.cc
|
|
|
|
|
2019-11-05 03:13:13 +00:00
|
|
|
ifeq ($(USE_CRYPTO_NATIVE), 1)
|
2019-11-04 20:11:00 +00:00
|
|
|
SRCS_libqpdf += $(CRYPTO_NATIVE)
|
2019-11-05 03:13:13 +00:00
|
|
|
endif
|
2008-04-29 12:55:25 +00:00
|
|
|
|
2020-04-06 03:19:56 +00:00
|
|
|
ifeq ($(USE_CRYPTO_OPENSSL), 1)
|
|
|
|
SRCS_libqpdf += $(CRYPTO_OPENSSL)
|
|
|
|
endif
|
|
|
|
|
2019-11-05 19:32:28 +00:00
|
|
|
ifeq ($(USE_CRYPTO_GNUTLS), 1)
|
|
|
|
SRCS_libqpdf += $(CRYPTO_GNUTLS)
|
|
|
|
endif
|
|
|
|
|
2008-04-29 12:55:25 +00:00
|
|
|
# -----
|
|
|
|
|
2012-12-29 12:06:25 +00:00
|
|
|
CCSRCS_libqpdf = $(filter %.cc,$(SRCS_libqpdf))
|
|
|
|
CSRCS_libqpdf = $(filter %.c,$(SRCS_libqpdf))
|
|
|
|
|
|
|
|
CCOBJS_libqpdf = $(call src_to_lobj,$(CCSRCS_libqpdf))
|
|
|
|
COBJS_libqpdf = $(call c_src_to_lobj,$(CSRCS_libqpdf))
|
|
|
|
OBJS_libqpdf = $(CCOBJS_libqpdf) $(COBJS_libqpdf)
|
2008-04-29 12:55:25 +00:00
|
|
|
|
|
|
|
ifeq ($(GENDEPS),1)
|
|
|
|
-include $(call lobj_to_dep,$(OBJS_libqpdf))
|
|
|
|
endif
|
|
|
|
|
2012-12-29 12:06:25 +00:00
|
|
|
$(CCOBJS_libqpdf): libqpdf/$(OUTPUT_DIR)/%.$(LOBJ): libqpdf/%.cc
|
2008-04-29 12:55:25 +00:00
|
|
|
$(call libcompile,$<,$(INCLUDES_libqpdf))
|
2012-12-29 12:06:25 +00:00
|
|
|
$(COBJS_libqpdf): libqpdf/$(OUTPUT_DIR)/%.$(LOBJ): libqpdf/%.c
|
|
|
|
$(call c_libcompile,$<,$(INCLUDES_libqpdf))
|
2008-04-29 12:55:25 +00:00
|
|
|
|
2017-08-11 08:56:22 +00:00
|
|
|
$(TARGETS_libqpdf): $(OBJS_libqpdf)
|
|
|
|
$(call makelib,$(OBJS_libqpdf),$@,$(LDFLAGS),$(LIBS),$(LT_CURRENT),$(LT_REVISION),$(LT_AGE))
|