#!/bin/sh
#
# The shell compiles LUG programs.
#
# Use: clug <c_file>  <-- stripping the .c
#
#	example:  clug zoomlug
#
# The new JPEG library is not supported at the moment of the release
# so I packed a static version in /usr/local/lib/libjpeg.a  and headers
# in /usr/local/include/jpeg.
#
PROGRAM=$1
shift
gcc -s -O2 -o $PROGRAM $PROGRAM.c -I/usr/local/include/lug -L/usr/lib -L/usr/X11/lib -llug -ltiff -lrle /usr/local/lib/libjpeg.a -lX11 -lvgagl -lvga -lm 
