summaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorBenji Dial <benji3.141@gmail.com>2020-05-16 09:53:58 -0400
committerBenji Dial <benji3.141@gmail.com>2020-05-16 09:53:58 -0400
commitc0daede46df4f546639bd2d3e11dcf064d554966 (patch)
tree2042d915325dc66baf063238b8a3c685bb91d17b /makefile
parentf7820301d583ae190b683bdd1371ee6f7a35ac16 (diff)
downloadportland-os-c0daede46df4f546639bd2d3e11dcf064d554966.tar.gz
starting over
Diffstat (limited to 'makefile')
-rw-r--r--makefile41
1 files changed, 0 insertions, 41 deletions
diff --git a/makefile b/makefile
deleted file mode 100644
index 090b3a8..0000000
--- a/makefile
+++ /dev/null
@@ -1,41 +0,0 @@
-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/
-
-files: out
- mkdir -p out/fs
- cp -r src/skel/* out/fs/
-
-kernel: obj out
- nasm src/kernel/ata.asm -o obj/kata.o -f elf32
- nasm src/kernel/floppy.asm -o obj/kfloppy.o -f elf32
- nasm src/kernel/ide.asm -o obj/kide.o -f elf32
- 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/diskio.c -o obj/kdiskio.o -ffreestanding -nostdlib -m32
- gcc -c src/kernel/fat12.c -o obj/kfat12.o -ffreestanding -nostdlib -m32
- gcc -c src/kernel/files.c -o obj/kfiles.o -ffreestanding -nostdlib -m32
- gcc -c src/kernel/iso9660.c -o obj/kiso9660.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/kata.o obj/kfloppy.o obj/kide.o obj/kkeyba.o obj/kserial.o \
- obj/kstub.o obj/kdiskio.o obj/kfat12.o obj/kfiles.o obj/kiso9660.o \
- obj/kkeybc.o obj/kmain.o obj/kmem.o obj/kproc.o obj/kvga.o \
- -o out/kernel.elf -T src/kernel/link.ld -s --orphan-handling=discard -melf_i386
-
-clean:
- rm -r obj out
-
-obj:
- mkdir -p obj
-
-out:
- mkdir -p out \ No newline at end of file