What I do is I create a batch file in the project directory - e.g. Balls.bat

Inside the file I put a command similar to the following:

d:\lazarus\pp\bin\win32\ppc386 -S2cdgi -CD -OG1 -gl -XD -vewnhi -l -FuD:\lazarus\S2DL\ -FuD:\Lararus\JEDI-SDL\ -Fu. -oD:\lazarus\S2DL\demos\Balls\balls.exe D:\lazarus\S2DL\demos\Balls\balls.pp >Compile.txt
You should change the relevant directories to suit your installation.

When I double click the batch file in the windows explorer it compiles the project for me.