diff options
author | Anas Nashif <anas.nashif@intel.com> | 2013-06-14 00:32:51 -0400 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2013-06-14 00:32:51 -0400 |
commit | f61cd1fa36fc1529f22b2fa7855d3ff6b9e33762 (patch) | |
tree | 943a8fca974f593b1dc85b97933dd0d81ffe3d6c /libtests/build.mk | |
download | qpdf-f61cd1fa36fc1529f22b2fa7855d3ff6b9e33762.tar.gz qpdf-f61cd1fa36fc1529f22b2fa7855d3ff6b9e33762.tar.bz2 qpdf-f61cd1fa36fc1529f22b2fa7855d3ff6b9e33762.zip |
Imported Upstream version 3.0.2upstream/3.0.2
Diffstat (limited to 'libtests/build.mk')
-rw-r--r-- | libtests/build.mk | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/libtests/build.mk b/libtests/build.mk new file mode 100644 index 0000000..6464502 --- /dev/null +++ b/libtests/build.mk @@ -0,0 +1,41 @@ +BINS_libtests = \ + aes \ + ascii85 \ + bits \ + buffer \ + concatenate \ + flate \ + hex \ + lzw \ + md5 \ + pcre \ + png_filter \ + pointer_holder \ + qutil \ + rc4 + +TARGETS_libtests = $(foreach B,$(BINS_libtests),libtests/$(OUTPUT_DIR)/$(call binname,$(B))) + +$(TARGETS_libtests): $(TARGETS_libqpdf) + +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) $(LDFLAGS_libqpdf),$(LIBS) $(LIBS_libqpdf)))) |