# Change the next line such that DEFAULT_DIR points to the directory 
# containing the phonemes.

CFLAGS= -O -DLIBSPEAK -DDEFAULT_DIR=\"phonemes\"

LIBS= -L. -lspeak -lm

CCOBJECTS=english.o parse.o phoneme.o saynum.o spellword.o speak.o

scat: libspeak.a scat.o
	cc -s -o scat scat.o $(LIBS)

libspeak.a: $(CCOBJECTS)
	ar rv libspeak.a $(CCOBJECTS)
	ranlib libspeak.a

install:
	@echo 'Please copy the phonemes directory (with contents) to'
	@echo 'the directory specified in the Makefile, and the program'
	@echo 'scat to a "bin" directory. You may also wish to copy'
	@echo 'scat.1 and speak.3 to your man-directories and'
	@echo 'libspeak.a to a lib-directory'

clean:
	rm -f *.o core *~ libspeak.a scat
