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 \
|
|
|
|
pdf-create
|
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)) ; \
|
2009-10-23 03:33:51 +00:00
|
|
|
$(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS) $(LDFLAGS_libqpdf),$(LIBS_libqpdf) $(LIBS))))
|