From 8c2ad212d78184d59e4181993c195b35c4cde166 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 27 Apr 2016 13:30:47 +0200 Subject: Improve library translations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 9bbd442..0c693d3 100644 --- a/Makefile +++ b/Makefile @@ -107,6 +107,9 @@ BENCHMARK_CPP_libtfm = '-DBENCHMARK_LIB="libtfm.h"' BENCHMARK_CPP_hebimath = '-DBENCHMARK_LIB="libhebimath.h"' BENCHMARK_CPP_libhebimath = '-DBENCHMARK_LIB="libhebimath.h"' +BENCHMARK_C_hebimath = -static +BENCHMARK_C_libhebimath = -static + CPPFLAGS += $(BENCHMARK_CPP_$(BENCHMARK_LIB)) CFLAGS_WITHOUT_O = $$(printf '%s\n' $(CFLAGS) | sed '/^-O.*$$/d') @@ -128,10 +131,12 @@ test: test.c libzahl.a test-random.c $(CC) $(LDFLAGS) $(CFLAGS_WITHOUT_O) -O0 $(CPPFLAGS) -o $@ test.c libzahl.a benchmark: bench/benchmark.c $(BENCHMARK_DEP_$(BENCHMARK_LIB)) - $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) -o $@ bench/benchmark.c $(BENCHMARK_LIB_$(BENCHMARK_LIB)) + $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) -o $@ bench/benchmark.c \ + $(BENCHMARK_LIB_$(BENCHMARK_LIB)) $(BENCHMARK_C_$(BENCHMARK_LIB)) benchmark-func: bench/benchmark-func.c $(BENCHMARK_DEP_$(BENCHMARK_LIB)) - $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) -o $@ bench/benchmark-func.c $(BENCHMARK_LIB_$(BENCHMARK_LIB)) + $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) -o $@ bench/benchmark-func.c \ + $(BENCHMARK_LIB_$(BENCHMARK_LIB)) $(BENCHMARK_C_$(BENCHMARK_LIB)) benchmark-zrand: bench/benchmark-zrand.c libzahl.a $(CC) $(LDFLAGS) $(CFLAGS) $(CPPFLAGS) -o $@ $^ -- cgit v1.2.3-70-g09d2