aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2019-05-20 14:43:45 -0400
committerJack Lloyd <[email protected]>2019-05-20 15:11:05 -0400
commit8e781e5a1be3ecc456c8e109571a084ec8bb792e (patch)
tree8a9f67a062bc213a26c8d30332c7cc675ce2ddc0 /src/build-data
parentd3de77765b2f3e871a5686d7b6b338865c904254 (diff)
Add a shim for testing Botan using BoGo
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/makefile.in14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/build-data/makefile.in b/src/build-data/makefile.in
index 7111c7b19..55e7a3546 100644
--- a/src/build-data/makefile.in
+++ b/src/build-data/makefile.in
@@ -27,7 +27,7 @@ SCRIPTS_DIR = %{scripts_dir}
INSTALLED_LIB_DIR = %{prefix}/%{libdir}
# The primary target
-all: libs cli tests docs
+all: %{all_targets}
# Executable targets
CLI = %{cli_exe}
@@ -78,7 +78,7 @@ $(TEST): $(LIBRARIES) $(TESTOBJS)
FUZZERS = %{fuzzer_bin}
-fuzzers: libs $(FUZZERS)
+fuzzers: $(LIBRARIES) $(FUZZERS)
fuzzer_corpus:
git clone --depth=1 https://github.com/randombit/crypto-corpus.git fuzzer_corpus
@@ -88,6 +88,16 @@ fuzzer_corpus_zip: fuzzer_corpus
%{endif}
+%{if build_bogo_shim}
+
+bogo_shim: %{out_dir}/botan_bogo_shim
+
+# BoGo shim
+%{out_dir}/botan_bogo_shim: %{bogo_shim_src} $(LIBRARIES)
+ $(CXX) $(BUILD_FLAGS) %{include_paths} %{bogo_shim_src} $(EXE_LINKS_TO) $(LDFLAGS) %{output_to_exe}$@
+
+%{endif}
+
# Library targets
%{if build_static_lib}