Set your environment variables this way:
First, install ps3toolchain.
Then from the main psl1ght directory, type
You can build each sample just issuing a make command.
make