# 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		= libbicsf.a
INCLUDE 	= ../include

LIBDIR =	/usr/local/lib/carl//lib
CFLAGS =	-O -I${INCLUDE} -DMTU

OBJS =  	argscan.o\
		crack.o \
		disklock.o\
		floor.o \
		lmaxmin.o \
		malerr.o \
		notify.o \
		polish.o \
		sfexpr.o \
		strsav.o \
		fsndi.o \
		opensf.o \
		getflbuf.o \
		getsfname.o \
		getmaxamp.o \
		printsf.o \
		strsave.o \
		strstrip.o \
		setenv.o \
		sfcodes.o \
		tilde.o\
		yes.o

#		stripsuf.o 
#		setfilts.o

.c.o:
		${CC} ${CFLAGS} -c $*.c
		-ld -x -r $*.o
		mv a.out $*.o

all:		${PROG} install

${PROG}: 	${OBJS} 
		rm -f ${PROG}
		ar q ${PROG} ${OBJS}
		ranlib ${PROG}

install:	${PROG}
		install ${PROG} ${LIBDIR}/${PROG}
		ranlib ${LIBDIR}/${PROG}
		cp *.3 //usr/local/lib/carl//man/man1/../man3
		date > install

clean:
		rm -f ${PROG} ${OBJS} core a.out install

${OBJS}:	/usr/local/include/carl/sndio.h \
		/usr/local/include/carl/filesf.h \
		/usr/local/include/carl/defaults.h \
		/usr/local/include/carl/paths.h \
		Makefile

# not required?
#		m4INCLUDE/libbicsf.h
