restructuring build setup

This commit is contained in:
shockrahwow committed 2019-09-12 11:46:41 -07:00
1 parent b3ef53ccab
commit ee4026a89e
4 files changed
+4 -3

No files matched your search

File renamed without changes.
File renamed without changes.
+1
View File
@@ -0,0 +1 @@
// Main kernel code (duh)
+3 -3
View File
@@ -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)