Sentinel65X-Kernel/Makefile

38 lines
565 B
Makefile
Raw Permalink Normal View History

2024-06-10 21:37:54 +02:00
AS := 64tass
MP := minipro
2024-03-22 01:26:37 +01:00
2024-06-11 00:10:32 +02:00
ASFLAGS := -I include \
2024-06-10 21:37:54 +02:00
-I src \
2024-06-11 00:10:32 +02:00
--m65816 \
--nostart \
2024-06-10 21:37:54 +02:00
--long-branch \
--long-address \
2024-06-11 00:10:32 +02:00
-Walign \
2024-06-11 00:37:01 +02:00
-Wno-wrap-pc
2024-06-10 21:37:54 +02:00
MPFLAGS := -p SST39LF040@PLCC32
2024-06-11 00:39:17 +02:00
SOURCES := $(wildcard src/*.s)
2024-06-10 21:37:54 +02:00
INCLUDES := $(wildcard include/*.i)
TARGET := sentinel65x-firmware-512k
2024-06-11 00:37:01 +02:00
LIST := $(TARGET).lst
2024-06-10 21:37:54 +02:00
.PHONY: all
all: $(TARGET).bin
@du -h $(TARGET).bin
$(TARGET).bin: $(SOURCES)
2024-06-11 00:37:01 +02:00
$(AS) $(ASFLAGS) -l $(LIST) -o $@ $^
2024-06-10 21:37:54 +02:00
.PHONY: flash
flash: $(TARGET).bin
$(MP) $(MPFLAGS) -w $<
.PHONY: clean
clean:
2024-06-11 00:37:01 +02:00
rm -f $(TARGET).bin $(LIST)
2024-06-10 21:37:54 +02:00
.PREFIXES: