2020-01-25 17:27:50 +00:00
|
|
|
BUILD_PATH = ./bin
|
2023-07-03 04:10:00 +00:00
|
|
|
KICKASS_BIN = /Applications/KickAssembler/KickAss.jar
|
|
|
|
PRG_FILE = ${BUILD_PATH}/main.prg
|
|
|
|
CRT_FILE = ${BUILD_PATH}/woz.crt
|
|
|
|
|
|
|
|
.PHONY: all build eprom clean run
|
2020-01-25 17:27:50 +00:00
|
|
|
|
|
|
|
all: build
|
|
|
|
|
2023-07-03 04:10:00 +00:00
|
|
|
build: ${PRG_FILE} ${CRT_FILE}
|
2020-01-25 17:27:50 +00:00
|
|
|
|
2023-07-03 04:10:00 +00:00
|
|
|
eprom: ${PRG_FILE} ${CRT_FILE}
|
|
|
|
cartconv -i ${CRT_FILE} -o ${BUILD_PATH}/woz.bin
|
2020-01-25 17:27:50 +00:00
|
|
|
|
|
|
|
clean:
|
2023-07-03 04:10:00 +00:00
|
|
|
rm -Rf $(BUILD_PATH)
|
|
|
|
|
|
|
|
run: build
|
|
|
|
x64sc $(CRT_FILE)
|
|
|
|
|
|
|
|
${BUILD_PATH}:
|
|
|
|
mkdir -p $(BUILD_PATH)
|
2020-01-25 17:27:50 +00:00
|
|
|
|
2023-07-03 04:10:00 +00:00
|
|
|
${PRG_FILE}: ${BUILD_PATH}
|
2020-03-09 05:57:30 +00:00
|
|
|
java -jar ${KICKASS_BIN} -odir ${BUILD_PATH} -log ${BUILD_PATH}/buildlog.txt -showmem ./main.asm
|
2020-03-10 07:12:35 +00:00
|
|
|
|
2023-07-03 04:10:00 +00:00
|
|
|
${CRT_FILE}: ${PRG_FILE}
|
|
|
|
cartconv -t normal -n "woz" -i $(PRG_FILE) -o $(CRT_FILE)
|