restructuring build setup

This commit is contained in:
shockrahwow 2019-09-12 11:46:41 -07:00
parent b3ef53ccab
commit ee4026a89e
4 changed files with 4 additions and 3 deletions

1
core/kernel.c Normal file
View File

@ -0,0 +1 @@
// Main kernel code (duh)

View File

@ -3,7 +3,7 @@ ASM=nasm
LINK=ld
ISO=genisoimage
OBJECTS=loader.o framebuffer.o
OBJECTS=core/loader.o core/framebuffer.o
AFLAGS=-f elf32
CFLAGS=-m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles \
-nodefaultlibs -Wall -Wextra -Werror -c
@ -29,11 +29,11 @@ os.iso: kernel.elf
iso
# Building C objecets
%.o: %.c
core/%.o: %.c
$(CC) $(CFLAGS) $< -o $@
# Builind asm objects
%.o: %.asm
core/%.o: %.asm
$(ASM) $(AFLAGS) $< -o $@
# Running (no recipes called)