restructuring build setup
This commit is contained in:
parent
b3ef53ccab
commit
ee4026a89e
1
core/kernel.c
Normal file
1
core/kernel.c
Normal file
@ -0,0 +1 @@
|
||||
// Main kernel code (duh)
|
6
makefile
6
makefile
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user