aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..64435ba
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,11 @@
+all: prog1
+
+prog1: prog1.o
+ ld -m elf_i386 -o $@ $<
+
+prog1.o: prog1.asm
+ nasm -f elf -g -o $@ $<
+
+.PHONY: clean
+clean:
+ rm -rf *.o prog1