mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
kernel: integrate flanterm into build system
This commit is contained in:
+9
-4
@@ -8,14 +8,19 @@ ARCHDIR=$(shell pwd)/arch/$(TARGET)/
|
||||
LDFLAGS=-ffreestanding -nostdlib -lgcc -Wl,-T,"$(ARCHDIR)/kernel.ld" -debug
|
||||
# required for mpaland printf so it doesn't compile with floating point support, which results in build failures
|
||||
PRINTFOPTS=-DPRINTF_DISABLE_SUPPORT_FLOAT
|
||||
CFLAGS=-ffreestanding -mcmodel=kernel -O2 -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -nostdlib -Wall -I "${INCDIR}" -I "$(ARCHINCDIR)" $(PRINTFOPTS)
|
||||
# flanterm includes break if the headers are moved into the include dir in the tree
|
||||
FLANTERMINCDIR=$(shell pwd)/flanterm
|
||||
CFLAGS=-ffreestanding -mcmodel=kernel -O2 -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -nostdlib -Wall -I "${INCDIR}" -I "$(ARCHINCDIR)" -I "$(FLANTERMINCDIR)" $(PRINTFOPTS)
|
||||
ASFLAGS=-felf64
|
||||
|
||||
astral: $(OBJS)
|
||||
$(LD) $(LDFLAGS) -o $@ $^
|
||||
@echo [LD] $@
|
||||
@$(LD) $(LDFLAGS) -o $@ $^
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
@echo [CC] $@
|
||||
@$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
%.asmo: %.asm
|
||||
nasm $(ASFLAGS) -o $@ $<
|
||||
@echo [AS] $@
|
||||
@nasm $(ASFLAGS) -o $@ $<
|
||||
|
||||
Reference in New Issue
Block a user