summaryrefslogtreecommitdiffstats
path: root/boot/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'boot/Makefile')
-rw-r--r--boot/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/boot/Makefile b/boot/Makefile
new file mode 100644
index 0000000..2fc7d3d
--- /dev/null
+++ b/boot/Makefile
@@ -0,0 +1,10 @@
+BOOT_FILES = boot/load.o
+
+boot/boot.o : $(BOOT_FILES)
+ @echo Linking $*.o
+ @ld -r -o $*.o $(BOOT_FILES)
+ @echo
+
+boot/load.o : boot/load.S include/asm/version.h
+ @echo Compiling boot/load.S
+ @cpp boot/load.S -I include | as -o $*.o