#Create September 7, 2001 to make matedit routine for the Matlab plotting
# utilities.
#
# ***************************************************************
#     Remember to source opt-build-env first, if you are building 
#  any sub-set of these files outside of toplevel build procedure 
# ***************************************************************
#
TOPLEVELDIR = ../..
MATPLOTBIN= optbin
MATPLOTDIR=${TOPLEVELDIR}/${MATPLOTBIN}
SCRIPTDIR = ${TOPLEVELDIR}/${MATPLOTBIN}
SRCDIR = ./

TODO =  ${SCRIPTDIR}/matedit \
	${SCRIPTDIR}/matplotopt \
	${SCRIPTDIR}/matplotxy

all:${TODO}

${SCRIPTDIR}/matedit:${SRCDIR}matedit.c 
	@-test -d ${MATPLOTDIR} || mkdir ${MATPLOTDIR}
	$(CC) ${CFLAGS} \
	${SRCDIR}matedit.c \
	-o $@

${SCRIPTDIR}/matplotopt:${SRCDIR}matplotopt.tmp
	cp ${SRCDIR}matplotopt.tmp $@
	chmod +x $@;

${SCRIPTDIR}/matplotxy:${SRCDIR}matplotxy.tmp
	cp ${SRCDIR}matplotxy.tmp $@
	chmod +x $@;

	

####################	
clean:
	-rm ${SRCDIR}matedit.o \
	${TODO}
