summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBenji Dial <Benji3.141@gmail.com>2019-12-26 18:21:44 -0500
committerBenji Dial <Benji3.141@gmail.com>2019-12-26 18:21:44 -0500
commitc055a2f6a9778f93a8f09b6d820d2504d3fa2601 (patch)
treecdaf3f6cc2673571e67ecfde0dbf5b78c78037c2 /makefile
parentdc6b746faa656729de3ffc5b3ec5b087328dbd27 (diff)
downloadportland-os-c055a2f6a9778f93a8f09b6d820d2504d3fa2601.tar.gz
keyboard skeleton, skeleton, rcs, etc
Diffstat (limited to 'makefile')
-rw-r--r--makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/makefile b/makefile
index 8ff2c69..c126c46 100644
--- a/makefile
+++ b/makefile
@@ -1,27 +1,32 @@
-cd: kernel fs
+cd: files grub
+ grub2-mkrescue out/fs -o out/cd.iso --product-name=portland --product-version=0.0.9
+
+grub: kernel
mkdir -p out/fs/boot/grub
mv out/kernel.elf out/fs/boot/
cp src/grub.cfg out/fs/boot/grub/
- grub2-mkrescue out/fs -o out/cd.iso --product-name=portland --product-version=0.0.9
+
+files: out
+ mkdir -p out/fs
+ cp -r src/skel/* out/fs/
kernel: obj out
+ nasm src/kernel/keyb.asm -o obj/kkeyba.o -f elf32
nasm src/kernel/serial.asm -o obj/kserial.o -f elf32
nasm src/kernel/stub.asm -o obj/kstub.o -f elf32
gcc -c src/kernel/files.c -o obj/kfiles.o -ffreestanding -nostdlib -m32
+ gcc -c src/kernel/keyb.c -o obj/kkeybc.o -ffreestanding -nostdlib -m32
gcc -c src/kernel/main.c -o obj/kmain.o -ffreestanding -nostdlib -m32
gcc -c src/kernel/mem.c -o obj/kmem.o -ffreestanding -nostdlib -m32
gcc -c src/kernel/proc.c -o obj/kproc.o -ffreestanding -nostdlib -m32
gcc -c src/kernel/vga.c -o obj/kvga.o -ffreestanding -nostdlib -m32
- ld obj/kstub.o obj/kfiles.o obj/kmain.o obj/kmem.o obj/kproc.o obj/kserial.o obj/kvga.o \
+ ld obj/kkeyba.o obj/kstub.o obj/kfiles.o obj/kkeybc.o obj/kmain.o \
+ obj/kmem.o obj/kproc.o obj/kserial.o obj/kvga.o \
-o out/kernel.elf -T src/kernel/link.ld -s --orphan-handling=discard -melf_i386
-
clean:
rm -r obj out
-fs: out
- mkdir -p out/fs
-
obj:
mkdir -p obj