aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-04-27 13:30:47 +0200
committerMattias Andrée <maandree@kth.se>2016-04-27 13:30:47 +0200
commit8c2ad212d78184d59e4181993c195b35c4cde166 (patch)
treed4cc9d6a6808ce55102666c727eeb51f8870457e /Makefile
parentFix const-correctness in libtommath translation and add error checking in hebimath translation (diff)
downloadlibzahl-8c2ad212d78184d59e4181993c195b35c4cde166.tar.gz
libzahl-8c2ad212d78184d59e4181993c195b35c4cde166.tar.bz2
libzahl-8c2ad212d78184d59e4181993c195b35c4cde166.tar.xz
Improve library translations
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
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 $@ $^