# 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

# master makefile for carl distribution

all:	dirs /usr/local/include/carl/../whoami.h /usr/local/include/carl/config.m4 .makefiles includes progs

/usr/local/include/carl/../whoami.h:	include/whoami.h
	cp include/whoami.h /usr/local/include/carl/..

/usr/local/include/carl/config.m4: include/carl/config.m4
	cp include/carl/config.m4 /usr/local/include/carl

# make all of the makefiles
.makefiles:
	- if test /usr/local/include/carl != /usr/include/carl ; \
		then fixmakefiles /usr/local/include/carl/config.m4 ; fi
	sh makemakefiles
	date > .makefiles

dirs:
	- if test ! -d /usr/local/lib/carl//lib ; then mkdir /usr/local/lib/carl//lib ; fi
	- if test ! -d //usr/local/lib/carl//bin ; then mkdir //usr/local/lib/carl//bin ; fi
	- if test ! -d /usr/local/include/carl ; then mkdir /usr/local/include/carl ; fi

includes:
	cd include	; make ${MFLAGS}

libs:
	cd src/lib	; make ${MFLAGS}

progs:
	cd src		; make ${MFLAGS}

install:
	cd src		; make ${MFLAGS} install
	cd man		; make ${MFLAGS} install
	cd doc		; make ${MFLAGS} install

clean:	
	make -f Makefirst clean
