summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2018-10-21 16:23:23 +0300
committerJari Vetoniemi <mailroxas@gmail.com>2018-10-21 16:23:23 +0300
commit75f9922f6d3c1e5bbbe7b90ca170392cc0f5efbc (patch)
treed79e445e87ae9a55e146c6c3b46fef6f238d23e7 /Makefile
parentd81411896f140981400e4fbf4aafacdbabad96cd (diff)
Refactor io utils, add *-address-rw tools
Namespace io_ stuff into mem_io_ to be less likely to collision with anything else. Add io-stream utility for working with streams instead of direct buffers. Add address-rw tools for simple memory read/write, where regions aren't needed.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 71ce55b..f7d3abe 100644
--- a/Makefile
+++ b/Makefile
@@ -10,15 +10,18 @@ override CFLAGS ?= -g
override CFLAGS += -std=c99 $(WARNINGS)
override CPPFLAGS += -Isrc
-bins = ptrace-region-rw uio-region-rw binsearch bintrim
+bins = ptrace-region-rw ptrace-address-rw uio-region-rw uio-address-rw binsearch bintrim
all: $(bins)
$(bins): %:
$(LINK.c) $^ $(LDLIBS) -o $@
-ptrace-region-rw: src/ptrace-region-rw.c src/cli/proc-region-rw.c src/io/io-ptrace.c
+ptrace-address-rw: src/ptrace-address-rw.c src/cli/proc-address-rw.c src/mem/io-ptrace.c src/mem/io-stream.c
+ptrace-region-rw: src/ptrace-region-rw.c src/cli/proc-region-rw.c src/mem/io-ptrace.c src/mem/io-stream.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
+uio-region-rw: src/uio-region-rw.c src/cli/proc-region-rw.c src/mem/io-uio.c src/mem/io-stream.c
+uio-address-rw: private CPPFLAGS += -D_GNU_SOURCE
+uio-address-rw: src/uio-address-rw.c src/cli/proc-address-rw.c src/mem/io-uio.c src/mem/io-stream.c
binsearch: src/binsearch.c
bintrim: src/bintrim.c