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

DESTDIR =	//usr/local/lib/carl//bin
INCLUDE	=	/usr/local/include/carl
CFLAGS =	-O
LIBS =		/usr/local/lib/carl//lib/libcarl.a 
OBJS =

all: first ${INCLUDE}/Player.h Playery Player putP libPlayer

first:
	cd a; rm -f Makefile; m4 Makefile.m4 > Makefile
	cd b; rm -f Makefile; m4 Makefile.m4 > Makefile
	cd c; rm -f Makefile; m4 Makefile.m4 > Makefile

libPlayer:
	cd c; make

libiPlayer:
	cd ic; make

Playery:
	cd b; make

${INCLUDE}/Player.h: c/Player.h
	cd c; cp Player.h ${INCLUDE}

Player:
	cd a; make 

putP:
	cd a; make install
	cd b; make install

install:
	cd a; make install
	cd b; make install
	cd c; make install

uninstall:
	rm -f m4BINDIR/Player
	rm -f m4BINDIR/Playery
	rm -f /usr/local/lib/carl//lib/libPlayer.a
	rm -f /usr/local/include/carl/Player.h

clean:
	cd a; make clean
	cd b; make clean
	cd c; make clean
	cd d; make clean
	cd doc; make clean
	rm -f errs

test:
	cd d; make >& /tmp/P_test; diff /tmp/P_test P_test
