12 lines
324 B
Makefile
12 lines
324 B
Makefile
BIOS_ASM_SRC := $(wildcard src/bios/*.s)
|
|
BIOS_C_SRC := $(wildcard src/bios/*.c)
|
|
|
|
BIOS_OBJ := $(BIOS_ASM_SRC:.s=.o)
|
|
BIOS_OBJ += $(BIOS_C_SRC:.c=.o)
|
|
|
|
BIOS_LDFLAGS := --list-file build/bios.lst
|
|
|
|
build/bios.bin: $(BIOS_OBJ)
|
|
echo "Linking $@..."
|
|
$(LD) -o $@ config/bios.scm $(LDFLAGS) $(BIOS_LDFLAGS) $^
|
|
mv build/bios.raw $@
|