From 5ac617f7fb9a240d143fb7f4b7fb69940d92b9b8 Mon Sep 17 00:00:00 2001 From: Patrick Pelissier Date: Tue, 25 Jul 2017 22:26:06 +0200 Subject: [PATCH] Update Makefile after adding qlibc. --- bench/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/bench/Makefile b/bench/Makefile index 31ac6c67..d28d2677 100644 --- a/bench/Makefile +++ b/bench/Makefile @@ -156,6 +156,18 @@ bench-uthash0: @./bench-uthash.exe 43 @./bench-uthash.exe 50 +# QLIBC shall point to the directory where the source are +bench-qlibc: + if test -n "$${QLIBC}" ; then make bench-qlibc0 ; else echo "Nothing to be done." ; fi + +bench-qlibc0: + $(CC) $(CFLAGS) $(CPPFLAGS) -I "$${QLIBC}/include" -L "$${QLIBC}/lib" -lqlibc -pthread bench-qlibc.c -o bench-qlibc.exe + @LD_LIBRARY_PATH="$${QLIBC}/lib:$${LD_LIBRARY_PATH}" ./bench-qlibc.exe 10 + @LD_LIBRARY_PATH="$${QLIBC}/lib:$${LD_LIBRARY_PATH}" ./bench-qlibc.exe 20 + @LD_LIBRARY_PATH="$${QLIBC}/lib:$${LD_LIBRARY_PATH}" ./bench-qlibc.exe 30 + @LD_LIBRARY_PATH="$${QLIBC}/lib:$${LD_LIBRARY_PATH}" ./bench-qlibc.exe 42 + @LD_LIBRARY_PATH="$${QLIBC}/lib:$${LD_LIBRARY_PATH}" ./bench-qlibc.exe 41 + ############################################################################ bench-plain: