diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-10-10 00:32:43 -0400 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2016-10-10 00:32:43 -0400 |
commit | b4e7da079f9dab9720b89e4899247b8ef976d247 (patch) | |
tree | 910bc45d66c662a4b3f899073abc7476dc397d6e | |
parent | f0a321a91230dafc3d9d5c68bbcec86fcf0511e0 (diff) | |
download | kernel-fun-b4e7da079f9dab9720b89e4899247b8ef976d247.tar.gz |
C testing entry point
-rw-r--r-- | Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -15,11 +15,17 @@ irq.o: irq.asm kernel.o: kernel.asm $(nasm) -o kernel.o kernel.asm -$(TARGET): irq.o io.o kernel.o boot.o - ld -g -m elf_i386 -T link.ld -o $(TARGET) boot.o io.o irq.o kernel.o +ctest.o: ctest.c + gcc -c -o ctest.o -m32 -O3 -nostdlib -nostdinc \ + -fno-builtin -fno-stack-protector \ + -nostartfiles -nodefaultlibs \ + -Wall -Wextra \ + ctest.c +$(TARGET): ctest.o irq.o io.o kernel.o boot.o + ld -g -m elf_i386 -T link.ld -o $(TARGET) boot.o io.o irq.o ctest.o kernel.o run: $(TARGET) - qemu-system-i386 -m 2M -kernel $(TARGET) + qemu-system-i386 -m 8M -kernel $(TARGET) debug: $(TARGET) qemu-system-i386 -d int,guest_errors -no-reboot -s -S -m 8M -kernel $(TARGET) & |