65X-DOS/Makefile

37 lines
676 B
Makefile
Raw Permalink Normal View History

2024-07-07 17:37:04 +02:00
include config/config.mk
TARGET := sentinel-65x-512K
.PHONY: all
all: build/$(TARGET).bin
2024-07-08 05:08:08 +02:00
include config/kernel.mk
2024-07-07 17:37:04 +02:00
build/$(TARGET).bin: build/kernel.bin
2024-07-07 17:37:04 +02:00
#Create an empty .bin file.
@dd if=/dev/zero of=$@ bs=1024 count=512
# Add the kernel module at offset 0x000000
@dd if=build/kernel.bin of=$@ conv=notrunc
2024-07-07 17:37:04 +02:00
.PHONY: clean
clean:
@find build -type f \( \
-name '*.pgz' -o \
-name '*.bin' -o \
-name '*.elf' -o \
-name '*.a' -o \
2024-07-16 05:37:08 +02:00
-name '*.lst' -o \
-name '*.list' \
2024-07-07 17:37:04 +02:00
\) -delete
@find src -type f \( \
2024-07-12 08:55:55 +02:00
-name '*.o' -o \
-name '*.bin' \
2024-07-16 05:37:08 +02:00
-name '*.lst' -o \
-name '*.list' \
2024-07-07 17:37:04 +02:00
\) -delete
.PHONY: flash
flash: build/$(TARGET).bin
2024-07-07 17:37:04 +02:00
$(MP) $(MPFLAGS) -w $<