Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
# the code was modified is included with the above copyright notice.
CPPFLAGS += -I../include
-CFLAGS += -O2 -g
+CFLAGS += -O2 -g -L../ -Wl,-rpath=../
LDFLAGS += -pthread
all: basic_percpu_ops_test
INCLUDES=$(wildcard ../include/rseq/*.h)
basic_percpu_ops_test: basic_percpu_ops_test.c ${INCLUDES}
- $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -shared -fpic \
- $< -o $@
+ $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) $< -lrseq -o $@
.PHONY: clean