2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-04 20:37:50 +00:00
qpdf/libtests/build.mk

59 lines
1.2 KiB
Makefile
Raw Normal View History

BINS_libtests = \
2019-08-30 01:45:01 +00:00
cxx11 \
aes \
arg_parser \
ascii85 \
bits \
buffer \
closed_file_input_source \
2012-06-27 14:02:23 +00:00
concatenate \
dct_compress \
dct_uncompress \
flate \
hex \
input_source \
2018-12-17 16:55:11 +00:00
json \
json_handler \
2022-01-17 23:40:38 +00:00
json_parse \
lzw \
main_from_wmain \
2018-12-24 21:28:08 +00:00
matrix \
md5 \
nntree \
numrange \
pointer_holder \
2018-01-13 19:32:39 +00:00
predictors \
2019-06-19 22:53:22 +00:00
qintc \
qutil \
random \
rc4 \
2017-08-16 10:26:31 +00:00
runlength \
2019-08-17 22:54:24 +00:00
sha2 \
sparse_array
TARGETS_libtests = $(foreach B,$(BINS_libtests),libtests/$(OUTPUT_DIR)/$(call binname,$(B)))
$(TARGETS_libtests): $(TARGETS_libqpdf) $(TARGETS_qpdf)
INCLUDES_libtests = include libqpdf
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 \
$(OBJS_$(B)): libtests/$(OUTPUT_DIR)/%.$(OBJ): libtests/$(B).cc ; \
$(call compile,libtests/$(B).cc,$(INCLUDES_libtests))))
$(foreach B,$(BINS_libtests),$(eval \
libtests/$(OUTPUT_DIR)/$(call binname,$(B)): $(OBJS_$(B)) ; \
$(call makebin,$(OBJS_$(B)),$$@,$(LDFLAGS_libqpdf) $(LDFLAGS),$(LIBS_libqpdf) $(LIBS))))