This repository has been archived on 2024-12-31. You can view files and clone it, but cannot push or open issues or pull requests.
MEMZ/PayloadMBR/Makefile

34 lines
828 B
Makefile
Raw Normal View History

2017-04-12 06:15:35 -04:00
IMAGES = $(wildcard Data/Image/frames/*.png)
MUSIC = Data/Song/nyan.mid
all: disk.img
image.bin: $(IMAGES)
2017-04-12 09:17:52 -04:00
python2 Data/Image/png2bin.py `echo $(IMAGES) | sort -h` $@
2017-04-12 06:15:35 -04:00
song.bin: $(MUSIC)
python2 Data/Song/midi2bin.py $< $@
data.o: song.bin image.bin
cat image.bin song.bin Data/Other/message.txt > data.o
2017-04-12 08:03:32 -04:00
Data/compressed.bin: data.o Data/Compressor/compress.c
2017-04-12 07:13:36 -04:00
cc Data/Compressor/compress.c -o Data/Compressor/compress
Data/Compressor/compress data.o Data/compressed.bin
2017-04-12 08:03:32 -04:00
#comp.o: decompress.asm
# nasm decompress.asm -o comp.o -f aout
kernel.o: kernel.asm decompress.asm Data/compressed.bin
nasm kernel.asm -o kernel.o -f aout
2017-04-12 06:15:35 -04:00
2017-04-12 08:03:32 -04:00
disk.img: kernel.o linker.ld Data/compressed.bin
ld -o disk.img -T linker.ld kernel.o -m elf_i386
2017-04-12 06:15:35 -04:00
test: disk.img
qemu-system-i386 -s -soundhw pcspk -fda disk.img
2017-04-12 08:03:32 -04:00
.PHONY: test all