Index: arch/ia32/boot/Makefile
===================================================================
--- arch/ia32/boot/Makefile	(revision f761f1eb635bfe9a5deaf70a0f0a51aa8d2f5f22)
+++ arch/ia32/boot/Makefile	(revision f761f1eb635bfe9a5deaf70a0f0a51aa8d2f5f22)
@@ -0,0 +1,18 @@
+.PHONY: nothing build clean
+
+nothing:
+
+build: boot.bin
+	dd if=boot.bin of=../../../src/image.bin bs=512 conv=sync
+	-cat ../../../src/kernel.bin >>../../../src/image.bin
+
+boot.bin: boot.o
+	ld -T boot.ld -entry _start_0x7c00 --oformat binary boot.o -o $@
+
+boot.o: boot.S
+	gcc -E -DKERNEL_SIZE=$(KERNEL_SIZE) boot.S >boot.s
+	as boot.s -o $@
+	rm boot.s
+
+clean:
+	-rm *.o *.bin
