Add ports files and add use ANSI C.

This commit is contained in:
Nicolás Ortega Froysa
2018-02-24 10:00:00 +01:00
parent 842ae8b49d
commit 37cb11cec0
3 changed files with 44 additions and 3 deletions

View File

@ -1,11 +1,11 @@
ASM=nasm
BIN=bin
CFLAGS=-ffreestanding -fno-pie -m32
CFLAGS=-ffreestanding -fno-pie -m32 -ansi
CC=gcc
LD=ld
LDFLAGS=-melf_i386 -Ttext 0x1000 --oformat binary
OBJ=kernel/kernel_entry.o kernel/kernel.o
OBJ=kernel/kernel_entry.o kernel/kernel.o kernel/ports.o
all: os-image
@ -29,5 +29,5 @@ kernel/kernel.bin: $(OBJ)
.PHONY: clean
clean:
rm -rf boot/*.bin boot/*.o
rm -rf boot/*.bin kernel/*.bin
rm -rf kernel/*.o boot/*.o drivers/*.o