#!/bin/sh

# If you do not need imgtool, castool etc., set this to 0
MAKETOOLS=1

# Choose a number of jobs according to your CPU capabilities
JOBS=6

cd mame
START=`date +%s`

# If you want to build more or other systems, just change the SOURCES parameter accordingly.  
# Please search the MAME source tree for the system names as used in MAME.

make -j$JOBS SOURCES=ti/ti99_4x.cpp,ti/ti99_4p.cpp,ti/ti99_8.cpp,ti/geneve.cpp,ti/ti99_2.cpp,ti/evmbug.cpp,skeleton/cortex.cpp,ti/cc40.cpp,ti/tm990189.cpp,tomy/tutor.cpp REGENIE=1 TOOLS=$MAKETOOLS PYTHON_EXECUTABLE=python3

END=`date +%s`
echo "Time: " $((END-START)) " seconds"
cd ..

echo Validating...
mame/mame -valid
