summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichal Idziorek <m.i@gmx.at>2014-08-27 11:41:40 +0200
committerMichal Idziorek <m.i@gmx.at>2014-08-27 11:41:40 +0200
commit2b194b83286424408694bd9b230b816736fd6c5f (patch)
treee35834b8989158825d96285aae40e9fecd34c856 /Makefile
parent13dd8822cf60ad30fb346bbb0dfa6875e3abd46a (diff)
added simple binary font data
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 6f193e9..659d86d 100644
--- a/Makefile
+++ b/Makefile
@@ -9,14 +9,25 @@
#lets use the size of a 1.44 floppy for a start for our boot img
IMAGE_SIZE=1474560
+#data starts at 0x8000
+DATA_START=32768
#final image
all: FoolOS.img
#assembling of final image
-FoolOS.img: mbr.bin kernel.bin fill.bin
+FoolOS.img: Fool.img FoolData.img fill.bin
cat $^ | head -c $(IMAGE_SIZE) > $@
+Fool.img: mbr.bin kernel.bin fill.bin
+ cat $^ | head -c $(DATA_START) > $@
+
+FoolData.img: binfont.bin
+ cat $^ > $@
+
+binfont.bin: binfont.src
+ python makefont.py
+
#some data just to fill up to the target image_size
fill.bin: boot/fill.asm
nasm -f bin $^ -o $@