# config.m4	1.4	(CMIL)	9/19/88	17:17:26

# flavor of UNIX in use
# type of CPU
# paths to libraries
# SDY define(m4CARLLIBPATH, m4LIBDIR/libcarl.a m4LIBDIR/libieee.a)dnl
# SDY define(m4CARLLIBS, m4LIBDIR/libcarl.a m4LIBDIR/libieee.a)dnl
# save for now SDY define(m4SFLIBS, m4LIBDIR/libsf.a)dnl
# Fortran libraries must be given in the following order for SUN3.x
# final resting place for installed software
# directory for include files
# where help files will live
# directory for tutorials 
# location of sources at CARL
# path to manual pages
# path to sys include directory
# path to vaxuba include directory
# dac/adc converters to use: one of ds (DSC200), ai (Digisound-16)
# sound filesystem to use: may be either csound or bicsf

PROG =		dsplay

INCLUDE =	/usr/local/include/carl
DESTDIR =	//usr/local/lib/carl//bin
INSTALLMAN =	rm -f //usr/local/lib/carl//man/man1/${PROG}.1 //usr/local/lib/carl//man/man1/play.1; cp ${PROG}.1 //usr/local/lib/carl//man/man1; ln //usr/local/lib/carl//man/man1/${PROG}.1 //usr/local/lib/carl//man/man1/play.1
CFLAGS =	-O -I${INCLUDE} -I. -I../include -DFORKYOU -I../../../include
XFLAGS =	-g -I${INCLUDE}
LIBS =		/usr/local/lib/carl//lib/libbicsf.a /usr/local/lib/carl//lib/libcarl.a -lm /usr/local/lib/carl//lib/libbicsf.a
OBJS = 	peval.o autoseg.o clck.o ediseg.o \
		ftime.o \
		getans.o interact.o  playcmd.o \
		playinc.o playmain.o segstuff.o setdsseq.o \
		shellcmd.o fputfloat.o dsinit.o dsndac.o  procom.o \
		checkfile.o waitfor.o lockdevs.o setfilts.o


${PROG}:	${PROG}.o ${DBUG} ${OBJS} ${NEW}
		${CC} ${PROG}.o ${DBUG} ${OBJS} ${LIBS} -o ${PROG}


install:	${PROG}
		install -c ${PROG} ${DESTDIR}
		${INSTALLMAN}
		date > install

clean:
		rm -f core a.out *.o ${PROG}

${PROG}.o ${OBJS}:	/usr/local/include/carl/sndio.h /usr/local/include/carl/libsf.h \
			../include/dsc.h \
			../include/dsreg.h

${PROG}:	/usr/local/lib/carl//lib/libbicsf.a

dsdac.o: ../include/dsc.h
clck.o: ../include/dsc.h

interact.o ediseg.o play.o segstuff.o dsndac.o playmain.o: play.h

ediseg.o segstuff.o: ediseg.h
