summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2026-06-10 16:31:09 +0000
committeronelin <oscar@nelin.dk>2026-06-10 16:31:09 +0000
commitbdab60d74d14eeea7a5e35a983e5e319686ae192 (patch)
tree358deef22e22c41668e4ecff0c08784323ae35d6 /Makefile
parent7cc1a2e6ccc8f4a87e73c35672e7bb973e965470 (diff)
Add shstrtab
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9f3c9a5..35738ae 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,13 @@
.PHONY: fmt
+all: fmt test.out
+
write-elf: main.c write_elf.c registers.h instructions.h
gcc -static-pie main.c -o write-elf
+test.out: write-elf
+ ./write-elf
+
tiny: tiny.s
nasm -f elf64 tiny.s