# %M%	%I%	(CARL)	%G%	%U%

# 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

# use OPTS to:
# define DIR if you are using a direct connection
# define DSW if you are using the dataswitch
# define VAD if you are using a vadic dialer
# define PEN if you are using a penril dialer
OPTS =		-DDIR -DDSW -DPEN

PROG =		catt
SRCDIR =	/usr/local/src/carl/src/${PROG}
DESTDIR =	//usr/local/lib/carl//bin
CFLAGS =	${OPTS} ${DBFLAGS} -O
LDFLAGS =	${DBFLAGS}
DBFLAGS =	# -Ddebug -g
SRC =		main.c rd.c wr.c lnio.c curc.c util.c data.c aculog.c \
		conn.c vadconn.c dswconn.c dirconn.c penconn.c
OBJ =		main.o rd.o wr.o lnio.o curc.o util.o data.o aculog.o \
		conn.o vadconn.o dswconn.o dirconn.o penconn.o
# MACHINES =	catta cattb su3 s3 sv2 s5 s6 eecs phonlab amos cu pdp vax
MACHINES =	cu

${PROG}:	${OBJ}
		cc -o ${PROG} ${LDFLAGS} ${OBJ}

${OBJ}:		catt.h conn.h

Readme ${SRC} catt.h conn.h:
		sccs get -s $@

install:	${PROG}
		for file in ${PROG} ${MACHINES} ; do rm -f ${DESTDIR}/$${file} ; done
		mv catt ${DESTDIR}
		for file in ${MACHINES} ; do ln ${DESTDIR}/${PROG} ${DESTDIR}/$${file} ; done

lint:		${SRC} catt.h conn.h
		lint -hbaxcp ${OPTS} ${SRC}

tags:		${SRC}
		ctags ${SRC}

tar:		Readme makefile catt.h conn.h ${SRC}
		tar crf catt.tar Readme makefile catt.h conn.h ${SRC}

pub:		Readme Makefile.m4 catt.h conn.h ${SRC}
		rm -f ${SRCDIR}/*
		cp Readme Makefile.m4 catt.h conn.h ${SRC} ${SRCDIR}

clean:
		rm -f errs tags a.out *.o
		sccs clean
