diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-19 14:35:16 +0300 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2018-10-19 15:13:07 +0300 |
commit | 743fb001f3d381b14d48f3fdfc9ee648a7c0644c (patch) | |
tree | e46f65bfac59427b1389a4fb5d8c13ca34ed1c69 /Makefile | |
parent | 6cb8c44fef192f3f8e7164d9c3baccacc9db620c (diff) |
Refactor project, offer uio variant of region-rw
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -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)" |