#!/bin/sh
#
# localizeProbes - Config executable probes Makefile

if [ -f ".aborted" ]
then
        rm -f .aborted		# Remove any prior abort files
fi

F=./makeConfig

if [ -x ./motifVersionProbe  ]
then
	echo "Using existing probes"
	echo
	exit 0
fi

echo "Localizing probes"


getCCDefn > $F

MOTIF_INCLUDE_PATH=`getMotifIncludePath`
X11_INCLUDE_PATH=`getXIncludePath`

echo "CFLAGS= -I $MOTIF_INCLUDE_PATH -I $X11_INCLUDE_PATH" >> $F



echo ""
echo "Building probes"
echo ""

make          # Create the executables to probe system config info
