29 lines
822 B
Makefile
Executable File
29 lines
822 B
Makefile
Executable File
KERNEL_ASM_SRC := $(wildcard src/kernel/*.s) \
|
|
$(wildcard src/kernel/*/*.s) \
|
|
$(wildcard src/kernel/*/*/*.s) \
|
|
$(wildcard src/kernel/*/*/*/*.s) \
|
|
$(wildcard src/kernel/*/*/*/*.s)
|
|
|
|
KERNEL_C_SRC := $(wildcard src/kernel/*.c) \
|
|
$(wildcard src/kernel/*/*.c) \
|
|
$(wildcard src/kernel/*/*/*.c) \
|
|
$(wildcard src/kernel/*/*/*/*.c) \
|
|
$(wildcard src/kernel/*/*/*/*/*.c)
|
|
|
|
FONT_SOURCES := $(wildcard src/kernel/hardware/vera/vera_font_*.ase)
|
|
|
|
KERNEL_OBJ := $(KERNEL_ASM_SRC:.s=.o)
|
|
KERNEL_OBJ += $(KERNEL_C_SRC:.c=.o)
|
|
|
|
FONTS := $(FONT_SOURCES:.ase=.fnt)
|
|
|
|
KERNEL_LDFLAGS := --list-file build/kernel.lst
|
|
|
|
.PHONY: fonts
|
|
fonts: $(FONTS)
|
|
|
|
build/kernel.bin: $(KERNEL_OBJ)
|
|
echo "Linking $@..."
|
|
echo "$(FONTS)"
|
|
$(LD) -o $@ config/kernel.scm $(LDFLAGS) $(KERNEL_LDFLAGS) $^
|
|
mv build/kernel.raw $@
|