summaryrefslogtreecommitdiff
path: root/xxx/boot2/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'xxx/boot2/Makefile')
-rw-r--r--xxx/boot2/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/xxx/boot2/Makefile b/xxx/boot2/Makefile
new file mode 100644
index 0000000..f2537ce
--- /dev/null
+++ b/xxx/boot2/Makefile
@@ -0,0 +1,28 @@
+#master boot record
+
+include ../Makefile.common
+
+.PHONY: all clean
+
+STAGE2=stage2.bin
+MP=mp.bin
+CONFIG=config.inc
+
+
+
+ASM_SOURCES=$(wildcard *.asm)
+
+all: $(STAGE2) $(MP)
+
+$(CONFIG): ../kernel/config.h
+ cat ../kernel/config.h | grep "^#define" | sed -e "s/#/%/" -e "s/\/\/.*//" > $@
+
+$(STAGE2): $(ASM_SOURCES) $(CONFIG)
+$(MP): $(ASM_SOURCES)
+
+clean:
+ -rm $(STAGE2) $(MP) $(CONFIG)
+
+
+
+