2010-08-06 01:27:47 +00:00
|
|
|
BINS_examples = \
|
|
|
|
pdf-bookmarks \
|
2020-12-26 16:13:00 +00:00
|
|
|
pdf-count-strings \
|
|
|
|
pdf-create \
|
|
|
|
pdf-custom-filter \
|
2010-08-06 01:27:47 +00:00
|
|
|
pdf-double-page-size \
|
2020-12-26 16:13:00 +00:00
|
|
|
pdf-filter-tokens \
|
2012-06-23 02:07:58 +00:00
|
|
|
pdf-invert-images \
|
2020-12-26 16:13:00 +00:00
|
|
|
pdf-mod-info \
|
|
|
|
pdf-npages \
|
|
|
|
pdf-overlay-page \
|
2014-06-07 17:04:30 +00:00
|
|
|
pdf-parse-content \
|
2019-01-26 22:33:06 +00:00
|
|
|
pdf-set-form-values \
|
2020-12-26 16:13:00 +00:00
|
|
|
pdf-split-pages
|
2020-11-29 00:48:07 +00:00
|
|
|
CBINS_examples = \
|
|
|
|
pdf-c-objects \
|
|
|
|
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))))
|