summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-21 11:51:01 +0200
committerPaul Buetow <paul@buetow.org>2026-02-21 11:51:01 +0200
commit6c912a9d72ae2a43923c638538d320e6bf585952 (patch)
tree727f66d158210e01abf8c18a83ef4db6066e0c1a /Makefile
parent32136b8cb18944157ff1f361bc0755f6b627fd47 (diff)
Migrate make targets to mage
Amp-Thread-ID: https://ampcode.com/threads/T-019c7f4e-cc5f-76f1-aaf0-dd7cbaabbb18 Co-authored-by: Amp <amp@ampcode.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile68
1 files changed, 0 insertions, 68 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index 7d65af7..0000000
--- a/Makefile
+++ /dev/null
@@ -1,68 +0,0 @@
-export LIBBPFGO = $(CURDIR)/../libbpfgo
-export CC = clang
-export GOOS = linux
-export GOARCH = amd64
-export CGO_CFLAGS = -I$(LIBBPFGO)/output -I$(LIBBPFGO)/selftest/common
-export CGO_LDFLAGS = -lelf -lzstd $(LIBBPFGO)/output/libbpf/libbpf.a
-export GO ?= go
-export TEST_NAME ?= TestEventloop
-
-all: bpfbuild gobuild
-
-.PHONY: bpfbuild
-bpfbuild:
- make -C ./internal/c redo
- cp -v ./internal/c/ior.bpf.o .
-
-gen: generate
-generate: generate
-
-.PHONY: generate
-generate:
- make -C ./internal/c generate
- make -C ./internal/tracepoints generate
- make -C ./internal/types generate
-
-.PHONY: gobuild
-gobuild:
- $(GO) build -tags netgo -ldflags '-w -extldflags "-static"' -o ior ./cmd/ior/main.go
-gobuild_race:
- $(GO) build -tags netgo -ldflags '-w -extldflags "-static"' -race -o ior ./cmd/ior/main.go
-
-.PHONY: clean
-clean:
- find . -type f -name ior -delete
- if [ -e ior.bpf.o ]; then rm ior.bpf.o; fi
- make -C ./internal/c clean
-
-.PHONY: mrproper
-mrproper: clean
- find . -type f -name \*.zst -delete
- find . -type f -name \*.collapsed -delete
- find . -type f -name \*.svg -delete
- find . -type f -name \*profile -delete
- find . -type f -name \*.pdf -delete
- find . -type f -name \*.tmp -delete
- find . -type f -name palete.map -delete
-
-.PHONY: world
-world: clean generate test all
-
-.PHONY: prof
-prof:
- $(GO) tool pprof -pdf ./ior ior.cpuprofile > cpuprofile.pdf && evince cpuprofile.pdf &
- $(GO) tool pprof -pdf ./ior ior.memprofile > memprofile.pdf && evince memprofile.pdf &
-
-.PHONY: test
-test:
- $(GO) clean -testcache
- $(GO) test ./... -v -failfast
-
-.PHONY: test_with_name
-test_with_name:
- $(GO) clean -testcache
- $(GO) test ./... -run ^$(TEST_NAME)$$ -v -failfast
-
-.PHONY: bench
-bench:
- $(GO) test ./... -v -bench=. -run xxx