StupidOS/Makefile

23 lines
377 B
Makefile
Raw Normal View History

2020-05-27 16:36:29 +00:00
all: stupid.img kern.bin
2020-05-06 10:40:10 +00:00
stupid.img: floppy.bin kern.bin
2020-05-27 16:36:29 +00:00
mkdosfs -F 12 -C $@ 1440
dd status=noxfer conv=notrunc if=floppy.bin of=$@
mcopy -i $@ kern.bin ::kern.sys
2020-05-06 10:40:10 +00:00
floppy.bin: boot/floppy.s
nasm -fbin -o $@ $^
kern.bin: kern/kernel.s
nasm -fbin -o $@ $^
clean:
2020-05-27 16:36:29 +00:00
rm -rf floppy.bin kern.bin
2020-05-06 10:40:10 +00:00
2020-05-27 16:36:29 +00:00
fclean: clean
rm -rf stupid.img
2020-05-06 10:40:10 +00:00
re: fclean all
.PHONY: all clean fclean re