summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfaissaloo <faissaloo@gmail.com>2016-07-23 19:41:37 +0100
committerfaissaloo <faissaloo@gmail.com>2016-07-23 19:41:37 +0100
commit5532c77d3fbc6417fd1a54eb4a5a3dbef0f5497a (patch)
tree8873b89fe2eb02a055ff7ed3a4197e1f8a93b103
parentc2b6ae2d55e3eba64e10eaeb39c126ab569e85ae (diff)
downloaddbsh-5532c77d3fbc6417fd1a54eb4a5a3dbef0f5497a.tar.gz
Better makefile, cleans up after itself, makes smaller executables and hassle free debug
-rw-r--r--makefile7
-rwxr-xr-xshbin4664 -> 1704 bytes
-rw-r--r--sh.obin4880 -> 0 bytes
3 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
diff --git a/sh b/sh
index c4ab5f8..72cb49c 100755
--- a/sh
+++ b/sh
Binary files differ
diff --git a/sh.o b/sh.o
deleted file mode 100644
index a108f8e..0000000
--- a/sh.o
+++ /dev/null
Binary files differ