From 5532c77d3fbc6417fd1a54eb4a5a3dbef0f5497a Mon Sep 17 00:00:00 2001 From: faissaloo Date: Sat, 23 Jul 2016 19:41:37 +0100 Subject: Better makefile, cleans up after itself, makes smaller executables and hassle free debug --- makefile | 7 +++++++ sh | Bin 4664 -> 1704 bytes sh.o | Bin 4880 -> 0 bytes 3 files changed, 7 insertions(+) delete mode 100644 sh.o 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 Binary files a/sh and b/sh differ diff --git a/sh.o b/sh.o deleted file mode 100644 index a108f8e..0000000 Binary files a/sh.o and /dev/null differ -- cgit v1.2.3