From bc941840ab2db72572939159e83a0f854a64090f Mon Sep 17 00:00:00 2001 From: nino-porcino Date: Wed, 15 Dec 2021 16:53:06 +0100 Subject: [PATCH] use single build file --- demo/m.bat | 22 +--------------------- tetris/m.bat | 22 +--------------------- tools/build.bat | 22 ++++++++++++++++++++++ 3 files changed, 24 insertions(+), 42 deletions(-) create mode 100644 tools/build.bat diff --git a/demo/m.bat b/demo/m.bat index 02470a3..fc6f548 100644 --- a/demo/m.bat +++ b/demo/m.bat @@ -1,22 +1,2 @@ -@rem === BUILD TETRIS === +@call ..\tools\build demo -@SET TARGET=demo - -@echo ======================== VIC20 =================================================== -call kickc -t VIC20_8K -D=VIC20 %TARGET%.c -o out\%TARGET%_vic20.prg -e -copy out\%TARGET%.prg out\%TARGET%_vic20.prg - -@echo ======================== APPLE 1 ================================================= -call kickc -t apple1 -D=APPLE1 %TARGET%.c -o out\%TARGET%_apple1.prg -e - -@rem builds the apple1 eprom file -call node ..\tools\mkeprom out out\%TARGET%_apple1.bin - -@rem clean up files -@del out\apple1_codeseg.bin -@del out\apple1_dataseg.bin -@del out\*.vs -@del out\*.klog -@del out\*.vs -@del out\*.dbg -@del out\%TARGET%.prg diff --git a/tetris/m.bat b/tetris/m.bat index e9bd36d..2810e46 100644 --- a/tetris/m.bat +++ b/tetris/m.bat @@ -1,22 +1,2 @@ @rem === BUILD TETRIS === - -@SET TARGET=tetris - -@echo ======================== VIC20 =================================================== -call kickc -t VIC20_8K -D=VIC20 %TARGET%.c -o out\%TARGET%_vic20.prg -e -copy out\%TARGET%.prg out\%TARGET%_vic20.prg - -@echo ======================== APPLE 1 ================================================= -call kickc -t apple1 -D=APPLE1 %TARGET%.c -o out\%TARGET%_apple1.prg -e - -@rem builds the apple1 eprom file -call node ..\tools\mkeprom out out\%TARGET%_apple1.bin - -@rem clean up files -@del out\apple1_codeseg.bin -@del out\apple1_dataseg.bin -@del out\*.vs -@del out\*.klog -@del out\*.vs -@del out\*.dbg -@del out\%TARGET%.prg +call ..\tools\build tetris \ No newline at end of file diff --git a/tools/build.bat b/tools/build.bat new file mode 100644 index 0000000..f44fb3d --- /dev/null +++ b/tools/build.bat @@ -0,0 +1,22 @@ +@rem === BUILD SCRIPT === + +@SET TARGET=%1 + +@echo ======================== VIC20 =================================================== +call kickc -t VIC20_8K -D=VIC20 %TARGET%.c -o out\%TARGET%_vic20.prg -e +copy out\%TARGET%.prg out\%TARGET%_vic20.prg + +@echo ======================== APPLE 1 ================================================= +call kickc -t apple1 -D=APPLE1 %TARGET%.c -o out\%TARGET%_apple1.prg -e + +@rem builds the apple1 eprom file +call node ..\tools\mkeprom out out\%TARGET%_apple1.bin + +@rem clean up files +@del out\apple1_codeseg.bin +@del out\apple1_dataseg.bin +@del out\*.vs +@del out\*.klog +@del out\*.vs +@del out\*.dbg +@del out\%TARGET%.prg