diff options
author | Benji Dial <benji6283@gmail.com> | 2020-09-06 13:44:20 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2020-09-06 13:44:20 -0400 |
commit | 73bb0e48640b842824a0b45fe4854df8ff7faf7b (patch) | |
tree | 077dec8a426db1e835393964da4736e91ff4c69d /makefile | |
parent | cbc85f6e897808b29e2f712156e2fa4d073d8277 (diff) | |
download | portland-os-73bb0e48640b842824a0b45fe4854df8ff7faf7b.tar.gz |
bugfixes, init program, hello world
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -1,4 +1,4 @@ -disk: kernel boot skel init #psch +disk: kernel boot skel init hello mkdir -p obj out /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 @@ -32,16 +32,15 @@ init: knob gcc ${ugccargs} -c src/user/init/main.c -o obj/init/main.o ld -T src/user/elf.ld obj/init/main.o obj/knob.o -o obj/init.elf - cp obj/init.elf out/fs/bin/init.elf + objcopy -S obj/init.elf out/fs/bin/init.elf -psch: knob - mkdir -p obj/psch out/fs/bin +hello: knob + mkdir -p obj/hello out/fs/bin - gcc ${ugccargs} -c src/user/psch/main.c -o obj/psch/main.o - gcc ${ugccargs} -c src/user/psch/data.c -o obj/psch/data.o + gcc ${ugccargs} -c src/user/hello/hello.c -o obj/hello/hello.o - ld -T src/user/elf.ld obj/psch/*.o obj/knob.o -o obj/psch.elf - cp obj/psch.elf out/fs/bin/psch.elf + ld -T src/user/elf.ld obj/hello/hello.o obj/knob.o -o obj/hello.elf + objcopy -S obj/hello.elf out/fs/bin/hello.elf knob: mkdir -p obj/knob @@ -52,6 +51,7 @@ knob: gcc ${ugccargs} -c src/user/knob/heap.c -o obj/knob/heap.o gcc ${ugccargs} -c src/user/knob/quit.c -o obj/knob/quit.o gcc ${ugccargs} -c src/user/knob/user.c -o obj/knob/user.o + gcc ${ugccargs} -c src/user/knob/task.c -o obj/knob/task.o nasm ${nasmargs} src/user/knob/entry.asm -o obj/knob/entry.o ld ${partlink} obj/knob/*.o -o obj/knob.o |