GEOM = ../../../..
include ${GEOM}/makefiles/Makedefs.global
include ../Makedefs
include ${GEOM}/makefiles/Makerules.obj
include ${MKDEPFILE}

LIBS = ${ALLOOGLLIBS} ${SYSXLIBS} ${SYSLIBS} -lm

all:	${TARGET}

# The odd "sed" below removes -lXt from the library list, in case it's there
# (as it probably is).  On Suns (using shared libraries), this avoids a
# spurious un-definition of __XtInherit.  Normal applications actually use
# ordinary Xt facilities, e.g. XtToolkitInitialize(), so XtInherit is
# incorporated properly, but this mgexample program uses no widgets at all.
# On advice of kal@lems.brown.edu, remove -lXm too.  We don't need it, either.

${TARGET}:	${OBJS}
	${CC} ${CFLAGS} -o $@ ${OBJS} `echo "${LIBS}" | sed -e 's/-lX[mt] / /g'`
	/bin/rm -f ../example
	ln example ..
