summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-10-19 14:35:16 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-10-19 15:13:07 +0300
commit743fb001f3d381b14d48f3fdfc9ee648a7c0644c (patch)
treee46f65bfac59427b1389a4fb5d8c13ca34ed1c69 /Makefile
parent6cb8c44fef192f3f8e7164d9c3baccacc9db620c (diff)
Refactor project, offer uio variant of region-rw
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index c9dd6b5..71ce55b 100644
--- a/Makefile
+++ b/Makefile
@@ -7,17 +7,20 @@ WARNINGS := -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=3 -Wstrict-ove
-Wfloat-equal -Wcast-align -Wpointer-arith -Wchar-subscripts -Warray-bounds=2
override CFLAGS ?= -g
-override CFLAGS += -std=c99 -D_DEFAULT_SOURCE $(WARNINGS)
+override CFLAGS += -std=c99 $(WARNINGS)
+override CPPFLAGS += -Isrc
-bins = proc-region-rw binsearch bintrim
+bins = ptrace-region-rw uio-region-rw binsearch bintrim
all: $(bins)
$(bins): %:
$(LINK.c) $^ $(LDLIBS) -o $@
-proc-region-rw: proc-region-rw.c
-binsearch: binsearch.c
-bintrim: bintrim.c
+ptrace-region-rw: src/ptrace-region-rw.c src/cli/proc-region-rw.c src/io/io-ptrace.c
+uio-region-rw: private CPPFLAGS += -D_GNU_SOURCE
+uio-region-rw: src/uio-region-rw.c src/cli/proc-region-rw.c src/io/io-uio.c
+binsearch: src/binsearch.c
+bintrim: src/bintrim.c
install-bin: $(bins)
install -Dm755 $^ -t "$(DESTDIR)$(PREFIX)$(bindir)"