From 75f9922f6d3c1e5bbbe7b90ca170392cc0f5efbc Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sun, 21 Oct 2018 16:23:23 +0300 Subject: 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. --- Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2