#!/bin/sh # SPDX-License-Identifier: MIT # Build Big Top Bounce: NTSC, PAL60 (262 lines, PAL colours) and PAL (312 lines). # Needs ca65/ld65 (CC65_BIN, default ~/.local/opt/cc65-2.19/bin, a directory misnamed: # its binaries report V2.18 - Git 5552824) and python3. # Output: build/bigtop-{ntsc,pal60,pal}.bin, with listings, maps and ld65 label files. set -eu cd "$(dirname "$0")/.." CC65_BIN="${CC65_BIN:-$HOME/.local/opt/cc65-2.19/bin}" mkdir -p build python3 scripts/gen_tables.py # src/colours.inc is committed; scripts/colours.py regenerates it when the colour # list changes (it needs tools/palettes.txt from `bigtop-harness palettes`). for v in ntsc pal60 pal; do case $v in ntsc) flags="" ;; pal60) flags="-D PALCOL -D PAL60" ;; pal) flags="-D PALCOL -D PAL50" ;; esac "$CC65_BIN/ca65" -g $flags -I src -o "build/bigtop-$v.o" -l "build/bigtop-$v.lst" src/bigtop.s "$CC65_BIN/ld65" -C src/f6.cfg -o "build/bigtop-$v.bin" -Ln "build/bigtop-$v.lbl" \ -m "build/bigtop-$v.map" "build/bigtop-$v.o" done ls -l build/*.bin