2020-06-11 09:48:36 +01:00
|
|
|
TARGETS := exosphere.bin warmboot.bin program.lz4
|
|
|
|
CLEAN_TARGETS := exosphere-clean program-clean boot_code-clean warmboot-clean
|
2020-05-05 07:33:16 +01:00
|
|
|
|
|
|
|
SUBFOLDERS := $(MODULES)
|
|
|
|
|
2020-06-11 09:48:36 +01:00
|
|
|
all: exosphere.bin warmboot.bin
|
2020-05-05 07:33:16 +01:00
|
|
|
|
|
|
|
clean: $(CLEAN_TARGETS)
|
|
|
|
@rm -f exosphere.bin
|
|
|
|
|
|
|
|
exosphere.bin: program.lz4 boot_code.lz4
|
|
|
|
$(MAKE) -C loader_stub
|
|
|
|
@cp loader_stub/loader_stub.bin exosphere.bin
|
2020-06-08 17:02:50 +01:00
|
|
|
@printf LENY >> exosphere.bin
|
2020-05-05 07:33:16 +01:00
|
|
|
@echo "Built exosphere.bin..."
|
|
|
|
|
2020-06-12 08:46:21 +01:00
|
|
|
program.lz4: build_program
|
2020-05-05 07:33:16 +01:00
|
|
|
@cp program/program.lz4 program.lz4
|
|
|
|
@cp program/boot_code.lz4 boot_code.lz4
|
|
|
|
|
2020-06-12 08:46:21 +01:00
|
|
|
build_program:
|
|
|
|
$(MAKE) -C program
|
|
|
|
|
2020-06-12 14:16:58 +01:00
|
|
|
warmboot.bin: build_warmboot
|
2020-06-11 09:48:36 +01:00
|
|
|
@cp warmboot/warmboot.bin warmboot.bin
|
2020-05-05 07:33:16 +01:00
|
|
|
|
2020-06-12 14:16:58 +01:00
|
|
|
build_warmboot:
|
|
|
|
$(MAKE) -C warmboot
|
|
|
|
|
2020-06-11 09:48:36 +01:00
|
|
|
boot_code.lz4: program.lz4
|
2020-05-05 07:33:16 +01:00
|
|
|
|
|
|
|
exosphere-clean:
|
|
|
|
$(MAKE) -C loader_stub clean
|
|
|
|
@rm -f exosphere.bin
|
|
|
|
|
|
|
|
program-clean:
|
|
|
|
$(MAKE) -C program clean
|
|
|
|
@rm -f program.lz4
|
|
|
|
|
2020-06-11 09:48:36 +01:00
|
|
|
warmboot-clean:
|
|
|
|
$(MAKE) -C warmboot clean
|
|
|
|
@rm -f warmboot.bin
|
|
|
|
|
2020-05-05 07:33:16 +01:00
|
|
|
boot_code-clean:
|
|
|
|
@rm -f boot_code.lz4
|
|
|
|
|
2020-06-12 08:46:21 +01:00
|
|
|
.PHONY: all clean build_program $(CLEAN_TARGETS)
|