mirror of
https://github.com/mgcaret/of816.git
synced 2024-12-13 04:29:16 +00:00
14 lines
298 B
Bash
Executable File
14 lines
298 B
Bash
Executable File
#!/bin/bash
|
|
cd `dirname ${0}`
|
|
PLATFORM=""
|
|
ADD_OPTS=""
|
|
if [ -n "${1}" -a -d "platforms/${1}" ]; then
|
|
PLATFORM="${1}"
|
|
ADD_OPTS="${ADD_OPTS} -I platforms/${PLATFORM}"
|
|
fi
|
|
export PLATFORM
|
|
echo ".define PLATFORM \"${PLATFORM}\"" > platform.inc
|
|
set -e -x
|
|
ca65 ${ADD_OPTS} -I inc forth.s -l forth.lst
|
|
|