#!/bin/tcsh
cd Foundation
xcodebuild -target "Static Release" build
cd ..

cd Renderers/AglRenderer
xcodebuild -target "Static Release" build
cd ../..

cd Applications/AglApplication
xcodebuild -target "Static Release" build
cd ../..

cd SampleGraphics
set DIRS = `ls`
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -target "Static Release" build
        cd ..
    endif
end
cd ..

cd SampleImagics
set DIRS = `ls `
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -target "Static Release" build
        cd ..
    endif
end
cd ..

cd SampleMiscellaneous
set DIRS = `ls `
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -target "Static Release" build
        cd ..
    endif
end
cd ..

cd SamplePhysics
set DIRS = `ls `
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -target "Static Release" build
        cd ..
    endif
end
cd ..

cd SampleShaders
set DIRS = `ls `
foreach dir (${DIRS})
    if (-d $dir) then
        echo $dir
        cd $dir
        xcodebuild -target "Static Release" build
        cd ..
    endif
end
cd ..

