Integrate flaterm terminal
This commit is contained in:
@ -1,14 +1,22 @@
|
||||
.PHONY: all clean
|
||||
|
||||
ARCH ?= x86_64
|
||||
PUTCHAR_ ?= fb
|
||||
|
||||
CFLAGS := -ffreestanding -Wall -Wextra -g -fcommon -nostdinc
|
||||
|
||||
CFLAGS += -I. \
|
||||
-I../limine \
|
||||
-I./std/include \
|
||||
-I./flanterm/src \
|
||||
-DPRINTF_INCLUDE_CONFIG_H=1
|
||||
|
||||
ifeq ($(PUTCHAR_),fb)
|
||||
CFLAGS += -DPUTCHAR_=PUTCHAR_FB
|
||||
else
|
||||
CFLAGS += -DPUTCHAR_=PUTCHAR_SERIAL
|
||||
endif
|
||||
|
||||
LDFLAGS := -nostdlib -static -T arch/$(ARCH)/link.ld
|
||||
|
||||
include arch/$(ARCH)/$(ARCH).mk
|
||||
@ -20,10 +28,14 @@ SRCFILES := $(wildcard *.c) \
|
||||
$(wildcard pmm/*.c) \
|
||||
$(wildcard bootinfo/*.c) \
|
||||
$(wildcard spinlock/*.c) \
|
||||
$(wildcard term/*.c) \
|
||||
$(wildcard hal/*.c) \
|
||||
$(wildcard hal/$(ARCH)/*.c) \
|
||||
$(wildcard hal/$(ARCH)/*.S) \
|
||||
$(wildcard *.S)
|
||||
$(wildcard *.S) \
|
||||
$(wildcard std/*.c) \
|
||||
$(wildcard flanterm/src/*.c) \
|
||||
$(wildcard flanterm/src/flanterm_backends/*.c)
|
||||
CFILES := $(filter %.c,$(SRCFILES))
|
||||
ASFILES := $(filter %.S,$(SRCFILES))
|
||||
OBJ := $(patsubst %.c,%.o,$(CFILES)) $(patsubst %.S,%.o,$(ASFILES))
|
||||
|
Reference in New Issue
Block a user