# 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
OBJS =

all:		chubby cspline gen0 gen1 gen2 gen3 gen4 gen5 gen6 genraw quad \
			step shepenv

shepenv:	shepenv.o ${OBJS}
		${CC} shepenv.o ${OBJS} ${LIBS} -o shepenv

chubby:		chubby.o ${OBJS}
		${CC} chubby.o ${OBJS} ${LIBS} -o chubby

cspline:	cspline.o ${OBJS}
		${CC} cspline.o ${OBJS} ${LIBS} -o cspline

gen0:	gen0.o ${OBJS}
		${CC} gen0.o ${OBJS} ${LIBS} -o gen0

gen1:	gen1.o ${OBJS}
		${CC} gen1.o ${OBJS} ${LIBS} -o gen1

gen2:	gen2.o ${OBJS}
		${CC} gen2.o ${OBJS} ${LIBS} -o gen2

gen3:	gen3.o ${OBJS}
		${CC} gen3.o ${OBJS} ${LIBS} -o gen3

gen4:	gen4.o ${OBJS}
		${CC} gen4.o ${OBJS} ${LIBS} -o gen4

gen5:	gen5.o ${OBJS}
		${CC} gen5.o ${OBJS} ${LIBS} -o gen5

gen6:	gen6.o ${OBJS}
		${CC} gen6.o ${OBJS} ${LIBS} -o gen6

genraw:		genraw.o ${OBJS}
		${CC} genraw.o ${OBJS} ${LIBS} -o genraw

quad:		quad.o nodfun.o ${OBJS}
		${CC} quad.o nodfun.o ${OBJS} ${LIBS} -o quad

step:		step.o ${OBJS}
		${CC} step.o ${OBJS} ${LIBS} -o step

all:		chubby cspline gen0 gen1 gen2 gen3 gen4 gen5 gen6 genraw quad \
			step shepenv
install:	all strip
		cp chubby ${DESTDIR}
		cp cspline ${DESTDIR}
		cp gen0 ${DESTDIR}
		cp gen1 ${DESTDIR}
		cp gen2 ${DESTDIR}
		cp gen3 ${DESTDIR}
		cp gen4 ${DESTDIR}
		cp gen5 ${DESTDIR}
		cp gen6 ${DESTDIR}
		cp genraw ${DESTDIR}
		cp quad ${DESTDIR}
		cp step ${DESTDIR}
		cp shepenv ${DESTDIR}

strip:
		strip chubby 
		strip cspline 
		strip gen0 
		strip gen1 
		strip gen2 
		strip gen3 
		strip gen4 
		strip gen5 
		strip gen6 
		strip genraw 
		strip quad 
		strip step 
		strip shepenv 

clean:
		rm -f *.o a.out core
		rm -f chubby cspline gen0 gen1 gen2 gen3 gen4 gen5 gen6 genraw \
			quad step shepenv
