aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarvin Borner2019-11-30 13:22:16 +0100
committerGitHub2019-11-30 13:22:16 +0100
commit728d764f314b98adec26d8e674b7235db6c4ad63 (patch)
treeddbe09554a056eba4a470041c9e3d74ddd64ff8a /Makefile
parente294302ec8940669e7c8c5559eff2441f9ce4988 (diff)
parentde2f84f733776b19c0adecbfc8b31ea88f7b6291 (diff)
Merged external font
External font resources (smaller kernel)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 11534d0..7df77b6 100644
--- a/Makefile
+++ b/Makefile
@@ -29,12 +29,18 @@ build: clean
rm ./build/tmp; \
i686-elf-gcc -T ./src/kernel/linker.ld -I ./src -o ./build/melvix.bin -std=gnu99 -ffreestanding -O2 -nostdlib ./build/*.o || exit; \
+ # Modules
+ i686-elf-gcc -c ./src/assets/font.c -o ./build/font.o -I ./src -std=gnu99 -ffreestanding -O2 -nostdlib; \
+ objcopy -O binary ./build/font.o ./build/font.bin; \
+ rm ./build/font.o; \
+
# Create ISO
mkdir -p ./iso/boot/; \
mv ./build/melvix.bin ./iso/boot/kernel.bin; \
nasm ./src/bootloader/cd.asm -f bin -o ./iso/boot/cd.bin || exit; \
nasm ./src/bootloader/hdd1.asm -f bin -o ./iso/boot/hdd1.bin || exit; \
nasm ./src/bootloader/hdd2.asm -f bin -o ./iso/boot/hdd2.bin || exit; \
+ cp ./build/font.bin ./iso/font.bin || exit; \
genisoimage -quiet -input-charset utf-8 -no-emul-boot -b boot/cd.bin -o ./build/melvix.iso ./iso;
cross: