2010-08-06 01:27:47 +00:00
|
|
|
BINS_examples = \
|
|
|
|
pdf-bookmarks \
|
|
|
|
pdf-mod-info \
|
|
|
|
pdf-npages \
|
|
|
|
pdf-double-page-size \
|
2012-06-23 02:07:58 +00:00
|
|
|
pdf-invert-images \
|
2013-01-20 20:26:45 +00:00
|
|
|
pdf-create \
|
2014-06-07 17:04:30 +00:00
|
|
|
pdf-parse-content \
|
2018-02-03 19:52:40 +00:00
|
|
|
pdf-split-pages \
|
2018-02-11 20:41:02 +00:00
|
|
|
pdf-filter-tokens \
|
2018-06-21 19:54:02 +00:00
|
|
|
pdf-count-strings \
|
2019-01-26 22:33:06 +00:00
|
|
|
pdf-set-form-values \
|
|
|
|
pdf-overlay-page
|
2009-09-27 20:59:16 +00:00
|
|
|
CBINS_examples = pdf-linearize
|
2008-04-29 12:55:25 +00:00
|
|
|
|
2009-10-10 14:15:09 +00:00
|
|
|
TARGETS_examples = $(foreach B,$(BINS_examples) $(CBINS_examples),examples/$(OUTPUT_DIR)/$(call binname,$(B)))
|
2008-04-29 12:55:25 +00:00
|
|
|
|
|
|
|
$(TARGETS_examples): $(TARGETS_qpdf)
|
|
|
|
|
|
|
|
INCLUDES_examples = include
|
|
|
|
|
|
|
|
TC_SRCS_examples = $(wildcard examples/*.cc)
|
|
|
|
|
|
|
|
# -----
|
|
|
|
|
|
|
|
$(foreach B,$(BINS_examples),$(eval \
|
|
|
|
OBJS_$(B) = $(call src_to_obj,examples/$(B).cc)))
|
|
|
|
|
2009-09-27 20:59:16 +00:00
|
|
|
$(foreach B,$(CBINS_examples),$(eval \
|
|
|
|
OBJS_$(B) = $(call c_src_to_obj,examples/$(B).c)))
|
|
|
|
|
2008-04-29 12:55:25 +00:00
|
|
|
ifeq ($(GENDEPS),1)
|
2009-09-27 20:59:16 +00:00
|
|
|
-include $(foreach B,$(BINS_examples) $(CBINS_examples),$(call obj_to_dep,$(OBJS_$(B))))
|
2008-04-29 12:55:25 +00:00
|
|
|
endif
|
|
|
|
|
|
|
|
$(foreach B,$(BINS_examples),$(eval \
|
2009-10-10 14:15:09 +00:00
|
|
|
$(OBJS_$(B)): examples/$(OUTPUT_DIR)/%.$(OBJ): examples/$(B).cc ; \
|
2008-04-29 12:55:25 +00:00
|
|
|
$(call compile,examples/$(B).cc,$(INCLUDES_examples))))
|
|
|
|
|
2009-09-27 20:59:16 +00:00
|
|
|
$(foreach B,$(CBINS_examples),$(eval \
|
2009-10-10 14:15:09 +00:00
|
|
|
$(OBJS_$(B)): examples/$(OUTPUT_DIR)/%.$(OBJ): examples/$(B).c ; \
|
2009-09-27 20:59:16 +00:00
|
|
|
$(call c_compile,examples/$(B).c,$(INCLUDES_examples))))
|
|
|
|
|
|
|
|
$(foreach B,$(BINS_examples) $(CBINS_examples),$(eval \
|
2009-10-10 14:15:09 +00:00
|
|
|
examples/$(OUTPUT_DIR)/$(call binname,$(B)): $(OBJS_$(B)) ; \
|
2018-01-14 00:51:31 +00:00
|
|
|
$(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS_libqpdf) $(LDFLAGS),$(LIBS_libqpdf) $(LIBS))))
|