summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/makefile b/makefile
index 3725a30..e86f784 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,12 @@
all:
nasm sh.asm -f elf64 -o sh.o
ld sh.o -o sh
+ strip sh
+ rm sh.o
+dbg:
+ nasm sh.asm -f elf64 -o sh.o
+ ld sh.o -o sh
+ rm sh.o
+ gdb --eval-command="layout asm" -tui sh
clean:
rm -f sh.o sh