#define DEBUG
#include "../../include/cake/SEP.clop.defs"
#include <SEP.defs>

$ define objects to be added to the global library
#define LIBSOURCE fopconv2 

$ programs to be built
#define PROGLIST Conv2 Dottest

$ figures to be built
#define FIGLIST conv2in1

$ 1D Test for fopconv2
$#define DOTARGS dots=2 connect=0 gaineach=0 overlap=1.25 labels=output:filter:input labelsz=8
#define DOTARGS dots=2 connect=0 gaineach=0 labels=output:filter:input labelsz=8
#define LENGTH 21

FIGDIR/conv2in.v conv2in.v&: conv2inp.H conv2otp.H conv2flt.H
	< conv2inp.H Pad n1=LENGTH > junk1.H
	< conv2flt.H Pad n1=LENGTH > junk2.H
	< conv2otp.H Pad n1=LENGTH > junk3.H
	Merge axis=2 space=n junk3.H junk2.H junk1.H> junk.H
	< junk.H Dots DOTARGS out=FIGDIR/conv2in.v > junk.V
	
conv2otp.H: BINDIR/Conv2 conv2inp.H conv2flt.H
	BINDIR/Conv2 <conv2inp.H filter=conv2flt.H >conv2otp.H

conv2inp.H: if not exist  conv2inp.H
	Spike n1=20  >conv2inp.H

conv2flt.H: if not exist conv2flt1.H
	Spike n1=2 nsp=2 k1=1,2 mag=1.0,-.5 >conv2flt.H


BINDIR/Conv2 : OBJDIR/Conv2.o
	CPPLINK(OBJDIR/Conv2.o,BINDIR/Conv2)

BINDIR/Dottest : OBJDIR/Dottest.o
	CPPLINK(OBJDIR/Dottest.o,BINDIR/Dottest)


clean&: texclean clopclean jclean

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