mirror of
https://gitlab.com/octospacc/MultiSpaccSDK
synced 2024-12-13 18:07:51 +01:00
25 lines
610 B
Bash
25 lines
610 B
Bash
#!/dev/null
|
|
set -e
|
|
SdkRoot="${ProjectRoot}/../../.."
|
|
BuildDir="$(pwd)"
|
|
|
|
for SrcFile in ../Assets/*.4.png
|
|
do
|
|
SrcExt="${SrcFile##*.}"
|
|
DstName="${SrcFile##*/}"
|
|
DstName="${DstName%%.*}"
|
|
if [ "${SrcExt}" = png ]
|
|
then sh "${SdkRoot}/Tools/python3.sh" "${SdkRoot}/Tools/pilbmp2nes.py" -i "${SrcFile}" -o "./${DstName}.chr"
|
|
fi
|
|
done
|
|
|
|
for File in *.c
|
|
do cc65 -Oirs --target nes ${File} ${Defines}
|
|
done
|
|
|
|
for File in *.s
|
|
do ca65 --target nes ${File}
|
|
done
|
|
|
|
ld65 -v -o ${AppName}.nes *.o *.lib nes.lib --config NROM256.cfg -DNES_MAPPER=0 -DNES_PRG_BANKS=2 -DNES_CHR_BANKS=1 -DNES_MIRRORING=0
|