Merge pull request #1 from sblendorio/main

Support for build with Unix/Linux/MacOSX
This commit is contained in:
nino-porcino 2021-12-22 09:23:04 +01:00 committed by GitHub
commit 7a7b7e00f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 1 deletions

2
demos/demo/m.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
../../tools/build.sh demo

2
demos/picshow/m.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
../../tools/build.sh picshow

2
demos/tetris/m.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
../../tools/build.sh tetris

View File

@ -4,7 +4,7 @@
@SET TMS9918=..\..
@echo ======================== VIC20 ===================================================
call kickc -includedir %TMS9918%\lib -targetdir %TMS9918%\kickc\ -t VIC20_8K %TARGET%.c -o out\%TARGET%_vic20.prg -e
call kickc -includedir %TMS9918%\lib -targetdir %TMS9918%\kickc\ -t vic20_8k %TARGET%.c -o out\%TARGET%_vic20.prg -e
copy out\%TARGET%.prg out\%TARGET%_vic20.prg
@echo ======================== APPLE 1 =================================================

25
tools/build.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
TARGET=$1
TMS9918=../..
mkdir -p out
echo ======================== VIC20 ===================================================
kickc.sh -includedir ${TMS9918}/lib -targetdir ${TMS9918}/kickc/ -t vic20_8k ${TARGET}.c -o out/${TARGET}_vic20.prg -e
cp out/${TARGET}.prg out/${TARGET}_vic20.prg
echo ======================== APPLE 1 =================================================
kickc.sh -includedir ${TMS9918}/lib -targetdir ${TMS9918}/kickc/ -t apple1_jukebox ${TARGET}.c -o out/${TARGET}_apple1.prg -e
# builds the apple1 eprom file
node ${TMS9918}/tools/mkeprom out out/${TARGET}_apple1.bin
# clean up files
rm -f out/apple1_codeseg.bin
rm -f out/apple1_dataseg.bin
rm -f out/*.vs
rm -f out/*.klog
rm -f out/*.vs
rm -f out/*.dbg
rm -f out/${TARGET}.prg