/buildit.cmd
@echo off
@rem Set the device you want to build for to 1
@rem Use Pixi to allow running on either device
set PRE=0
set PIXI=1
set DEBUG=0

@rem List your source files here
set SRC=src/KickMan.cpp src/RButton.cpp src/RShader.cpp src/Clock.cpp src/BeatChart.cpp src/Sequencer.cpp src/Shader.cpp src/DecalShader.cpp src/Component.cpp src/BPMDisplay.cpp src/Texture.cpp src/Scene.cpp src/Pads.cpp src/ShaderDepot.cpp

@rem List the libraries needed
set LIBS=-lSDL -lGLESv2 -lpdl -lSDL_mixer -lSDL_image

@rem Name your output executable
set OUTFILE=kickman

if %PRE% equ 0 if %PIXI% equ 0 goto :END

if %DEBUG% equ 1 (
   set DEVICEOPTS=-g
) else (
   set DEVICEOPTS=-O2
)

if %PRE% equ 1 (
   set DEVICEOPTS=%DEVICEOPTS% -mcpu=cortex-a8 -mfpu=neon -mfloat-abi=softfp
)

if %PIXI% equ 1 (
   set DEVICEOPTS=%DEVICEOPTS% -mcpu=arm1136jf-s -mfpu=vfp -mfloat-abi=softfp
)

echo %DEVICEOPTS%

arm-none-linux-gnueabi-gcc %DEVICEOPTS% -o %OUTFILE% %SRC% "-I%PALMPDK%\include" "-I%PALMPDK%\include\SDL" "-L%PALMPDK%\device\lib" -Wl,--allow-shlib-undefined %LIBS%

goto :EOF

:END
echo Please select the target device by editing the PRE/PIXI variable in this file.
exit /b 1