2008-04-29 12:55:25 +00:00
|
|
|
BINS_libtests = \
|
2009-10-17 03:14:47 +00:00
|
|
|
aes \
|
2008-04-29 12:55:25 +00:00
|
|
|
ascii85 \
|
|
|
|
bits \
|
|
|
|
buffer \
|
2012-06-27 14:02:23 +00:00
|
|
|
concatenate \
|
2008-04-29 12:55:25 +00:00
|
|
|
flate \
|
|
|
|
hex \
|
|
|
|
lzw \
|
|
|
|
md5 \
|
|
|
|
pcre \
|
|
|
|
png_filter \
|
|
|
|
pointer_holder \
|
|
|
|
qutil \
|
2013-11-30 17:02:56 +00:00
|
|
|
random \
|
2012-12-29 13:07:46 +00:00
|
|
|
rc4 \
|
|
|
|
sha2
|
2008-04-29 12:55:25 +00:00
|
|
|
|
2009-10-10 14:15:09 +00:00
|
|
|
TARGETS_libtests = $(foreach B,$(BINS_libtests),libtests/$(OUTPUT_DIR)/$(call binname,$(B)))
|
2008-04-29 12:55:25 +00:00
|
|
|
|
|
|
|
$(TARGETS_libtests): $(TARGETS_libqpdf)
|
|
|
|
|
2009-10-23 03:20:03 +00:00
|
|
|
INCLUDES_libtests = include libqpdf
|
2008-04-29 12:55:25 +00:00
|
|
|
|
|
|
|
TC_SRCS_libtests = $(wildcard libqpdf/*.cc) $(wildcard libtests/*.cc) \
|
|
|
|
libqpdf/bits.icc
|
|
|
|
|
|
|
|
# -----
|
|
|
|
|
|
|
|
$(foreach B,$(BINS_libtests),$(eval \
|
|
|
|
OBJS_$(B) = $(call src_to_obj,libtests/$(B).cc)))
|
|
|
|
|
|
|
|
ifeq ($(GENDEPS),1)
|
|
|
|
-include $(foreach B,$(BINS_libtests),$(call obj_to_dep,$(OBJS_$(B))))
|
|
|
|
endif
|
|
|
|
|
|
|
|
$(foreach B,$(BINS_libtests),$(eval \
|
2009-10-10 14:15:09 +00:00
|
|
|
$(OBJS_$(B)): libtests/$(OUTPUT_DIR)/%.$(OBJ): libtests/$(B).cc ; \
|
2008-04-29 12:55:25 +00:00
|
|
|
$(call compile,libtests/$(B).cc,$(INCLUDES_libtests))))
|
|
|
|
|
|
|
|
$(foreach B,$(BINS_libtests),$(eval \
|
2009-10-10 14:15:09 +00:00
|
|
|
libtests/$(OUTPUT_DIR)/$(call binname,$(B)): $(OBJS_$(B)) ; \
|
2009-10-11 00:24:22 +00:00
|
|
|
$(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS) $(LDFLAGS_libqpdf),$(LIBS) $(LIBS_libqpdf))))
|