2009-10-10 15:28:33 +00:00
|
|
|
TARGETS_libqpdf = libqpdf/$(OUTPUT_DIR)/$(call libname,qpdf)
|
2008-04-29 12:55:25 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
SRCS_libqpdf = \
|
|
|
|
libqpdf/BitStream.cc \
|
|
|
|
libqpdf/BitWriter.cc \
|
|
|
|
libqpdf/Buffer.cc \
|
2012-07-21 09:37:14 +00:00
|
|
|
libqpdf/BufferInputSource.cc \
|
|
|
|
libqpdf/FileInputSource.cc \
|
|
|
|
libqpdf/InputSource.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/MD5.cc \
|
2012-12-25 19:38:18 +00:00
|
|
|
libqpdf/OffsetInputSource.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/PCRE.cc \
|
|
|
|
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 \
|
|
|
|
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 \
|
2012-12-29 13:07:46 +00:00
|
|
|
libqpdf/Pl_SHA2.cc \
|
2008-04-29 12:55:25 +00:00
|
|
|
libqpdf/Pl_StdioFile.cc \
|
|
|
|
libqpdf/QPDF.cc \
|
|
|
|
libqpdf/QPDFExc.cc \
|
|
|
|
libqpdf/QPDFObject.cc \
|
|
|
|
libqpdf/QPDFObjectHandle.cc \
|
|
|
|
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 \
|
2009-10-17 15:01:20 +00:00
|
|
|
libqpdf/qpdf-c.cc \
|
2012-12-29 12:06:25 +00:00
|
|
|
libqpdf/rijndael.cc \
|
|
|
|
libqpdf/sha2.c \
|
|
|
|
libqpdf/sha2big.c
|
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
|
|
|
|
|
|
|
# Last three arguments to makelib are CURRENT,REVISION,AGE.
|
|
|
|
#
|
|
|
|
# * If any interfaces have been removed or changed, we are not binary
|
|
|
|
# compatible. Increment CURRENT, and set AGE and REVISION to 0.
|
2012-06-20 16:48:27 +00:00
|
|
|
# Also update libqpdf.map, changing the numeric portion to match
|
|
|
|
# CURRENT.
|
2008-04-29 12:55:25 +00:00
|
|
|
#
|
|
|
|
# * Otherwise, if any interfaces have been added since the last
|
|
|
|
# public release, then increment CURRENT and AGE, and set REVISION
|
|
|
|
# to 0.
|
|
|
|
#
|
|
|
|
# * Otherwise, increment REVISION
|
|
|
|
|
2009-10-10 14:15:09 +00:00
|
|
|
$(TARGETS_libqpdf): $(OBJS_libqpdf)
|
2013-01-17 14:51:04 +00:00
|
|
|
$(call makelib,$(OBJS_libqpdf),$@,$(LDFLAGS),$(LIBS),10,1,0)
|