#$Id: Makefile 3963 2006-05-31 15:42:51Z raman $ # # Jan 2007 Gilles Casse gcasse@oralux.org> # * eSpeak driver for emacspeak # DESTDIR= PREFIX=/usr LIBDIR=$(PREFIX)/lib INCDIR=$(PREFIX)/include ESPEAKDIR=/usr CC=g++ INSTALL = install libparentdir = ${PREFIX}/share/emacs/site-lisp libdir2 =$(libparentdir)/emacspeak/servers/linux-espeak CFLAGS= -O2 -I$(ESPEAKDIR)/include/espeak -fPIC -DPIC -I/usr/include/tcl8.3 LIBS= -ltcl8.3 -ltclx8.3 -L$(ESPEAKDIR)/lib -lespeak -lm TTS=libtclespeak.so all: libtclespeak.so tclespeak.lo: tclespeak.cpp libtool --mode=compile $(CC) $(CFLAGS) -c $< libtclespeak.so: tclespeak.lo libtool --mode=link $(CC) $(CFLAGS) -g -o $@ tclespeak.lo $(LIBS) -shared clean: rm -f *.so *.o *.lo libtclespeak.so rm -rf .libs install: tclespeak.so if test ! -d $(libdir2) ; then mkdir $(libdir2); fi ; \ chmod 755 $(libdir2); \ $(INSTALL) -m 0644 $(TTS) $(libdir2)