#define DEBUG
#define BASEDIR ../../..
#define BINDIR /hector/Bin/MTYPE
#include "../../../include/cake/SEP.clop.defs"
#include <SEP.defs>

#define FIGDIR ./Fig

$ define figure to be produced
#define FIGLIST wglmo 

$ define arguments for the figures
#define WIGGLEARGS pclip=100 zplot=1. transp=1 yreverse=1

$ define object to be added to the global library
#define LIBSOURCE foplmo

$ programs to be built
#define PROGLIST Lmo Dottest

$ default to run in this directory
default& : tube

$ we extract only the mapping function
foplmo.Apply&: foplmo.cc
        @C++Extract <foplmo.cc \"float foplmo::mapping\" >foplmo.Apply

$ input
cdp.H: CLASSDATA/midpts.HH
        Window n3=1 n1=300 < CLASSDATA/midpts.HH > cdp.H

$ modeling 
wglmo.H: cdp.H BINDIR/Lmo
	BINDIR/Lmo < cdp.H adj=1 vel=1.47 > wglmo.H

$ output
left.v : cdp.H
	Wiggle WIGGLEARGS out=left.v title=" " < cdp.H     > /dev/null 

rite.v : wglmo.H
        Wiggle WIGGLEARGS < wglmo.H out=rite.v title=LMO   > /dev/null

FIGDIR/wglmo.v : left.v rite.v
        vp_SideBySideAniso left.v rite.v > FIGDIR/wglmo.v

$ make executables
BINDIR/Lmo : OBJDIR/Lmo.o
	CPPLINK(OBJDIR/Lmo.o,a.out)
	CPPINST(BINDIR/Lmo)

BINDIR/Dottest : OBJDIR/Dottest.o
	CPPLINK(OBJDIR/Dottest.o,a.out)
	CPPINST(BINDIR/Dottest)

clean&: texclean clopclean jclean

#include <SEP.idoc.rules>
#include <SEP.obj.rules>
#include "../../../include/cake/SEP.clop.rules"
