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
|
LINK=ld
|
||||||
ISO=genisoimage
|
ISO=genisoimage
|
||||||
|
|
||||||
OBJECTS=loader.o framebuffer.o
|
OBJECTS=core/loader.o core/framebuffer.o
|
||||||
AFLAGS=-f elf32
|
AFLAGS=-f elf32
|
||||||
CFLAGS=-m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles \
|
CFLAGS=-m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector -nostartfiles \
|
||||||
-nodefaultlibs -Wall -Wextra -Werror -c
|
-nodefaultlibs -Wall -Wextra -Werror -c
|
||||||
@ -29,11 +29,11 @@ os.iso: kernel.elf
|
|||||||
iso
|
iso
|
||||||
|
|
||||||
# Building C objecets
|
# Building C objecets
|
||||||
%.o: %.c
|
core/%.o: %.c
|
||||||
$(CC) $(CFLAGS) $< -o $@
|
$(CC) $(CFLAGS) $< -o $@
|
||||||
|
|
||||||
# Builind asm objects
|
# Builind asm objects
|
||||||
%.o: %.asm
|
core/%.o: %.asm
|
||||||
$(ASM) $(AFLAGS) $< -o $@
|
$(ASM) $(AFLAGS) $< -o $@
|
||||||
|
|
||||||
# Running (no recipes called)
|
# Running (no recipes called)
|
||||||
|
Loading…
Reference in New Issue
Block a user