Conf=Configuration
C_Filename=$Conf/processors.c
A_Filename=$Conf/processors.a

echo "compiling \"AuditSwlisting\" ..."
cc AuditSwlisting.c -o AuditSwlisting AuditUtils.o -lm
rm AuditSwlisting.c AuditUtils.o
echo "compiling \"ParseSwlisting\" ..."
cc ParseSwlisting.c -o ParseSwlisting ParseUtils.o
echo "compiling \"ParseLinuxSwlist\" ..."
cc ParseLinuxSwlist.c -o ParseLinuxSwlist ParseUtils.o
rm ParseSwlisting.c ParseLinuxSwlist.c ParseUtils.o

echo "\nPlease enter the hostname of the Central Server ..."
read ANSWER

if [ -f $C_Filename ]; then rm $C_Filename; fi
echo $ANSWER > $C_Filename

echo "Is there a Backup Central Server ... [y/n]"
read ANSWER
if [ $ANSWER = "y" ]
then
  echo "Please enter the hostname of the Backup Central Server ..."
  read ANSWER
  if [ -f $A_Filename ]; then rm $A_Filename; fi
  echo $ANSWER > $A_Filename
fi
