# 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
DESTDIR =	//usr/local/lib/carl//bin
CFLAGS = -O
LIBS =		/usr/local/lib/carl//lib/libcarl.a  -lm
#SDY		ochan offset para peak reverb rms spect window
PROGS =		chan click comb gain gaindelay hist ichan impulse \
		ochan offset para peak reverb rms window

all:	${PROGS}

chan: chan.o
	cc -O chan.o ${LIBS} -o chan
click: click.o
	cc -O click.o ${LIBS} -o click
comb: comb.o
	cc -O comb.o ${LIBS} -o comb
gain: gain.o
	cc -O gain.o ${LIBS} -o gain
gaindelay: gaindelay.o
	cc -O gaindelay.o ${LIBS} -o gaindelay
hist: hist.o
	cc -O hist.o ${LIBS} -o hist
ichan: ichan.o
	cc -O ichan.o ${LIBS} -o ichan
impulse: impulse.o
	cc -O impulse.o ${LIBS} -o impulse
ochan: ochan.o
	cc -O ochan.o ${LIBS} -o ochan
offset: offset.o
	cc -O offset.o ${LIBS} -o offset
para: para.o
	cc -O para.o ${LIBS} -o para
peak: peak.o
	cc -O peak.o ${LIBS} -o peak
reverb: reverb.o
	cc -O reverb.o ${LIBS} -o reverb
rms: rms.o
	cc -O rms.o ${LIBS} -o rms
spect: spect.o
	cc -O spect.o -lplot ${LIBS} -o spect
window: window.o
	cc -O window.o ${LIBS} -o window

install: ${PROGS}
	for file in ${PROGS} ; \
	do \
		echo install $${file} ${DESTDIR} ; \
		install $${file} ${DESTDIR} ; \
	done

clean:
	rm -f *.o a.out core
	rm -f chan click comb gain gaindelay hist ichan impulse \
	ochan offset para peak reverb rms spect window
