Now that we are adding our own target we can compile our own toolchain instead of using the stock one. This does mean that there isn't really a purpose to using the alpine cc65 image though
22 lines
388 B
Makefile
22 lines
388 B
Makefile
.PHONY: all install bootloader kernel clean
|
|
|
|
all: toolchain bootloader kernel
|
|
|
|
install: all
|
|
sh script/format_disk.sh
|
|
sh script/copy_files.sh
|
|
|
|
toolchain:
|
|
@$(MAKE) -j4 -C cc65
|
|
|
|
bootloader:
|
|
@$(MAKE) -C bootloader
|
|
|
|
kernel:
|
|
@$(MAKE) -C kernel
|
|
|
|
|
|
clean:
|
|
@$(MAKE) -C bootloader --no-print-directory $@
|
|
@$(MAKE) -C kernel --no-print-directory $@
|
|
@$(MAKE) -C cc65 --no-print-directory $@
|