]> git.dujemihanovic.xyz Git - nameless-os.git/blob - Makefile
Add Makefile
[nameless-os.git] / Makefile
1 AS = yasm # choose yasm or nasm here
2 ASFLAGS = -f bin # compile a raw binary
3
4 boot: boot.s print.s
5 $(AS) $(ASFLAGS) -o $@ boot.s
6
7 clean:
8 -rm boot
9
10 run:
11 qemu-system-i386 boot
12
13 help:
14 @echo "Run 'make' to compile."
15 @echo "Run 'make clean' to delete compiled objects."
16 @echo "Run 'make run' to run the compiled object. Must have qemu-system-i386 (but x86_64 should work too)."
17
18 .PHONY = clean run help