#!/bin/csh

echo "Creating images directory"
mkdir -p images

echo "Compiling:"
echo "           image-test01.c"
gcc -ansi -Wall -Werror -lm -o test01 image-test01.c
echo "           image-test02.c"
gcc -ansi -Wall -Werror -lm -o test02 image-test02.c
echo "           image-test03.c"
gcc -ansi -Wall -Werror -lm -o test03 image-test03.c
echo "           image-test04.c"
gcc -ansi -Wall -Werror -lm -o test04 image-test04.c
echo "           image-test05.c"
gcc -ansi -Wall -Werror -lm -o test05 image-test05.c
echo "           image-text06.c"
gcc -ansi -Wall -Werror -lm -o test06 image-test06.c
echo "           house.c"
gcc -ansi -Wall -Werror -lm -o house house.c
echo "           overlap.c"
gcc -ansi -Wall -Werror -lm -o overlap overlap.c
echo "           apple.c"
gcc -ansi -Wall -Werror -lm -o apple apple.c
echo "           cross.c"
gcc -ansi -Wall -Werror -lm -o cross cross.c
echo "           shade.c"
gcc -ansi -Wall -Werror -lm -o shade shade.c
echo "           points.c"
gcc -ansi -Wall -Werror -lm -o points points.c

echo ""
echo "Executing:"
echo "          image-test01"
test01 > images/test01.ppm
echo "          image-test02"
test02 > images/test02.ppm
echo "          image-test03"
test03 > images/test03.ppm
echo "          image-test04"
test04 > images/test04.ppm
echo "          image-test05"
test05 > images/test05.ppm
echo "          image-test06"
test06 > images/test06.ppm
echo "          house"
house > images/house.ppm
echo "          overlap"
overlap > images/overlap.ppm




