Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update makefile to manage shared context feature compil

  • Loading branch information...
commit 3deeee8e64d24e89db26cd8c295af64b66efdca5 1 parent 87b7a76
Emeric authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 Makefile
View
13 Makefile
@@ -3,6 +3,19 @@ all: stud
stud: stud.c
gcc -O2 -g -std=c99 -fno-strict-aliasing -Wall -W -I/usr/local/include -L/usr/local/lib -I. -o stud ringbuffer.c stud.c -D_GNU_SOURCE -lssl -lcrypto -lev
+ebtree/libebtree.a: ebtree/*.c
+ make -C ebtree
+
+ebtree: ebtree/libebtree.a
+ @echo "Please download libebtree at http://1wt.eu/tools/ebtree/ untar it. and create a symbolik link named 'ebtree' to point on it"
+
+stud-shared: stud.c shctx.c
+ gcc -O2 -g -std=c99 -fno-strict-aliasing -Wall -W -I/usr/local/include -L/usr/local/lib -Lebtree -I. -DUSE_SHARED_CACHE -o stud ringbuffer.c shctx.c stud.c -D_GNU_SOURCE -lssl -lcrypto -lev -lpthread -lebtree
+
+
+stud-shared-futex: stud.c shctx.c
+ gcc -O2 -g -std=c99 -fno-strict-aliasing -Wall -W -I/usr/local/include -L/usr/local/lib -Lebtree -I. -DUSE_SHARED_CACHE -DUSE_SYSCALL_FUTEX -o stud ringbuffer.c shctx.c stud.c -D_GNU_SOURCE -lssl -lcrypto -lev -lebtree
+
install: stud
cp stud /usr/local/bin
Please sign in to comment.
Something went wrong with that request. Please try again.