From 21491514b3642a321ce65f2a07428f63c4d9feb5 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 8 Nov 2020 11:11:49 -0500 Subject: manual viewer, "swap colors" system call --- makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index a0500b7..421f963 100644 --- a/makefile +++ b/makefile @@ -8,7 +8,6 @@ out/disk.vdi: out/disk.img VBoxManage convertfromraw out/disk.img out/disk.vdi --uuid a61929ed-3bf2-45ff-b98a-44f87c616dba out/disk.img: out/kernel.bin out/boot.bin out/fs - #TODO: have this regenerate after out/fs mkdir -p obj /sbin/mkfs.fat -C -f 1 -F 16 -n "PORTLAND OS" -R 65 -s 1 -S 512 obj/shadow.img 8192 echo -n -e '\xeb\x3c' > obj/jmp.bin @@ -28,10 +27,15 @@ out/fs/bin/%: obj/%.elf mkdir -p $(shell dirname $@) objcopy -S $< $@ +out/fs/man/%.man: src/man/%.pre + mkdir -p $(shell dirname $@) + python3 tools/man-gen.py $< $@ + out/fs: out/fs/bin/init out/fs/bin/meminfo out/fs/bin/highway \ out/fs/bin/hello out/fs/bin/dumptext out/fs/bin/dumphex \ - out/fs/bin/dirinfo out/fs/bin/fileman - mkdir -p out/fs + out/fs/bin/dirinfo out/fs/bin/fileman out/fs/bin/manual \ + out/fs/man/index.man out/fs/man/dev/kmemmap.man + touch out/fs cp -r fs-skel/* out/fs/ obj/kernel/%.ko: src/kernel/%.c @@ -98,4 +102,7 @@ obj/dirinfo.elf: obj/dirinfo/dirinfo.o obj/knob.so obj/c.rto ld -T src/user/runtimes/c/elf.ld $^ -o $@ obj/fileman.elf: obj/fileman/fileman.o obj/knob.so obj/c.rto + ld -T src/user/runtimes/c/elf.ld $^ -o $@ + +obj/manual.elf: obj/manual/manual.o obj/knob.so obj/c.rto ld -T src/user/runtimes/c/elf.ld $^ -o $@ \ No newline at end of file -- cgit v1.2.3