This repository has been archived on 2026-05-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
piquant/Makefile

24 lines
374 B
Makefile
Raw Normal View History

all: boot.img kernel.bin
2015-01-23 20:26:12 -08:00
boot.bin: asm/bootloader.S asm/bootloader.S
nasm asm/bootloader.S -f bin -o $@
2015-01-23 20:26:12 -08:00
asm/%.o: asm/%.S
nasm $< -f as86 -o $@
src/%.o: src/%.c
bcc -ansi -3 -c -o $@ $<
kernel.bin: src/kernel.o
ld86 -T0x1000 -o $@ $^
boot.img: boot.bin kernel.bin
cat $^ > $@
2015-01-23 20:26:12 -08:00
test: boot.img
bochs -f bochsrc -q
.PHONY: clean
clean:
rm -f boot.bin asm/*o src/*o