diff options
author | Marvin Borner | 2019-11-28 21:26:22 +0100 |
---|---|---|
committer | Marvin Borner | 2019-11-28 21:27:53 +0100 |
commit | 4ada94d4db995ebf150dd3ecfc8efd3241a6ff84 (patch) | |
tree | 18f67894b7d517ade02ee1bada0bcdf8688eeec4 /Makefile | |
parent | e294302ec8940669e7c8c5559eff2441f9ce4988 (diff) |
Made font external module
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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: |