summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGentoo <installgentoo@endianness.com>2021-03-27 09:47:14 +1100
committerGentoo <installgentoo@endianness.com>2021-03-27 09:47:14 +1100
commit655d184ceacd8ea943add55d52ececd76bb720c9 (patch)
tree00763f8f6e7444e2957abf977b16a27d0b36fb09 /Makefile
downloadfizzbuzz-asm-655d184ceacd8ea943add55d52ececd76bb720c9.tar.gz
fizzbuzz-asm-655d184ceacd8ea943add55d52ececd76bb720c9.tar.bz2
fizzbuzz-asm-655d184ceacd8ea943add55d52ececd76bb720c9.zip
initial commitHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..f57703f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+fizzbuzz: fizzbuzz.o
+ ld -m elf_x86_64 -o fizzbuzz fizzbuzz.o
+fizzbuzz.o: fizzbuzz.asm
+ nasm -f elf64 fizzbuzz.asm
+strip: strip.o
+ ld -m elf_x86_64 -o strip strip.o
+strip.o: fizzbuzz.asm
+ nasm -f elf64 fizzbuzz.asm -o strip.o
+clean:
+ rm *.o
+ rm fizzbuzz
+ rm strip
+run: fizzbuzz
+ ./fizzbuzz