 -    LIBS := $(LIBS) -ltbb
 -  endif
 +CXXFLAGS := $(CXXFLAGS) -DENABLE_THREADS -pthread
-+OBJS += parsec_barrier.o crc.o $(SHLPREFIX)/src/misc.o $(SHLPREFIX)/src/linux.o $(SHLPREFIX)/src/shl.o
++OBJS += parsec_barrier.o crc.o
 +
 +GIT_VERSION := $(shell git describe --abbrev=4 --dirty --always)
 +

+
+# Path informations
+ROOT := $(shell pwd)
+BASE := $(ROOT)/shoal/
+SHOAL := $(BASE)/shoal/
+LUA := $(BASE)/contrib/lua-5.2.3/src/
+
+INC := \
+	-I$(BASE)contrib/numactl-2.0.9 \
+	-I$(SHOAL)/inc \
+	-I$(BASE)contrib/papi-5.3.0/src \
+	-I$(BASE)contrib/pycrc \
+	-I$(LUA)
+
+LIB := \
+	-L$(BASE)contrib/numactl-2.0.9 -lnuma \
+	-L$(BASE)contrib/papi-5.3.0/src -lpapi \
+	-L$(BASE)contrib/papi-5.3.0/src/libpfm4/lib -lpfm \
+	-L$(SHOAL) -lshl \
+	-L$(LUA)/liblua.a -lm -ldl
+
+ifeq ($(BUILDTYPE),debug)
+	CXXFLAGS +=-g -O0 -pg -DSHL_DEBUG

diff -rupN /home/skaestle/Desktop/shl-sc/streamcluster/Makefile ./Makefile
--- /home/skaestle/Desktop/shl-sc/streamcluster/Makefile	2015-06-23 11:17:22.546771791 +0200
+++ ./Makefile	2015-06-23 11:20:53.525624020 +0200
@@ -2,30 +2,81 @@
 
 PREFIX=${PARSECDIR}/pkgs/kernels/streamcluster/inst/${PARSECPLAT}
 
 TARGET=streamcluster
 OBJS=streamcluster.o
 
