
BIN=dbwfexcerpt
MAN1=dbwfexcerpt.1
ldflags =  -L./trace
ldlibs = -ltrace $(TRLIBS)
cflags = -g -I./trace  
EXCLUDE=input correct output

DSAPMAKE = /opt/dsap/3.4/DSAPMAKE
include $(DSAPMAKE)
DIRS=trace

SRCS = dbwfexcerpt.c psarrival.c set_wfdir.c usage.c wfname.c

dbwfexcerpt : $(SRCS:.c=.o)
	$(CC) -o $@ $(CFLAGS) $(SRCS:.c=.o) $(LDFLAGS) $(LDLIBS)

test :: dbwfexcerpt
	rm -rf output ; mkdir output
	dbwfexcerpt -verbose -event 'evid == 1' -sac -wf ORID -pre 0.0 -sfactor 1.0 input/short output/sac
	dbwfexcerpt -verbose -wf EVID -pre 0.0 -sfactor 1.0 input/short output/notsac
	dbsubset input/short.wfdisc 'sta == "CHM"' | dbwfexcerpt -verbose -input -begin 'time+10.0' -end 'time+20.0' - output/chm
	-dbdiff correct/sac.wfdisc output
	-dbdiff correct/notsac.wfdisc output
	-dbdiff correct/chm.wfdisc output

# $Id: Makefile,v 1.2 1997/09/06 18:59:58 danq Exp $ 
# DO NOT DELETE
