Update makefile and readme
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Oct 2018 20:22:28 +0000 (16:22 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 1 Oct 2018 20:22:28 +0000 (16:22 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Makefile
README.md

index 3d95a97d51f4b92f87a3a4d4e91dbe36fe0e935e..8dddb504d0fa3e6d0251548feefa21fee42e4ddf 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,10 @@
 # granted, provided the above notices are retained, and a notice that
 # the code was modified is included with the above copyright notice.
 
-CPPFLAGS = -O2 -g -I./include
-LDFLAGS = -pthread
+
+CPPFLAGS += -I./include
+CFLAGS += -O2 -g
+LDFLAGS += -pthread
 
 all: librseq.so
 
@@ -19,7 +21,7 @@ INCLUDES=$(wildcard remote/*.h)
 librseq.so: src/rseq.c ${INCLUDES}
        $(CC) $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -shared -fpic src/rseq.c -o $@
 
-.PHONY: clean fetch
+.PHONY: clean
 
 clean:
        rm -f librseq.so
index aaed89c2bbd8fbe11795b0f21ae959ccefbfd5a9..f587137b30b5fc421dcd321990b574800c7bedae 100644 (file)
--- a/README.md
+++ b/README.md
@@ -6,3 +6,10 @@ Library for Restartable Sequences
 It requires Linux kernel headers from kernel >= 4.18 to build on x86, arm, ppc,
 and mips. It requires Linux kernel headers from kernel >= 4.19 to build on
 s390.
+
+# Building against local version of kernel headers
+
+cd /path/to/kernel/sources
+make headers_install
+cd /path/to/librseq
+CPPFLAGS=-I/path/to/kernel/sources/usr/include make
This page took 0.025401 seconds and 4 git commands to generate.