summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGentoo <installgentoo@endianness.com>2021-03-27 09:49:11 +1100
committerGentoo <installgentoo@endianness.com>2021-03-27 09:49:11 +1100
commite22a8e69af35b694e24ed30068f536501212f356 (patch)
tree11c8d01f0c731d62cdaf2b3bc320e1b8fb399ee5 /Makefile
downloadhello-world-asm-master.tar.gz
hello-world-asm-master.tar.bz2
hello-world-asm-master.zip
initial commitHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f645cb3
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,9 @@
+hello-world: hello-world.o
+ ld -m elf_x86_64 -o hello-world hello-world.o
+hello-world.o: hello-world.asm
+ nasm -f elf64 hello-world.asm
+clean:
+ rm *.o
+ rm hello-world
+run: hello-world
+ ./hello-world