summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2024-02-23 11:02:16 +0200
committerPaul Buetow <paul@buetow.org>2024-02-23 11:02:16 +0200
commit2427ed2b058d057882ca6280c5365a49234e322a (patch)
tree1b3a4a3d9480ed244ec00ce2f203f9a392f7ee72 /Makefile
parentaa3b3a508cd9ca6717245376bc01b1a89bfbef91 (diff)
initial RwEvent (read-write event) returning size
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7037e78..3c14d7a 100644
--- a/Makefile
+++ b/Makefile
@@ -12,12 +12,15 @@ bpfbuild:
make -C ./internal/c redo
cp -v ./internal/c/ioriotng.bpf.o .
+gen: generated
+generate: generated
+
.PHONY: generated
generated:
make -C ./internal/generated
.PHONY: gobuild
-gobuild: generated
+gobuild:
go build -tags netgo -ldflags '-w -extldflags "-static"' -o ioriotng ./cmd/ioriotng/main.go
.PHONY: clean
@@ -25,3 +28,7 @@ clean:
find . -type f -name ioriotng -delete
if [ -e ioriotng.bpf.o ]; then rm ioriotng.bpf.o; fi
make -C ./internal/c clean
+
+.PHONY: foo
+foo: clean generate all
+ sudo ./ioriotng --uid $$(id -u)