[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

new Makefile for linux-espeak and tcl 8.4 or later



All,

I have attached a makefile I just wrote for the linux-espeak server with
tcl 8.4 or later.  This is based on the document I sent out to the list
a while ago.  It seems to work here, so I am interested in what you think.

Raman, if you want to switch over and require tcl 8.4 or later, you
should be able to just drop this in place of Makefile in that directory
and move makefile.tcl83 out of the way somewhere.

Thanks,

William

#$Id: Makefile 3963 2006-05-31 15:42:51Z raman $
#
# Jan 2007 Gilles Casse gcasse@oralux.org>
# * eSpeak driver for emacspeak
#

TCL_VERSION = 8.4

LIBTAG = 0
LIBREL = 1.0

INSTALL = install
LN = ln -s

PREFIX=/usr
SITE_LISP_DIR = ${PREFIX}/share/emacs/site-lisp
LIBDIR =$(SITE_LISP_DIR)/emacspeak/servers/linux-espeak

TCL_INCLUDE=/usr/include/tcl${TCL_VERSION}

CXXFLAGS += -O2 -fPIC -pedantic -DPIC -Wall -I$(TCL_INCLUDE)

TCL_LIB = -ltcl${TCL_VERSION}

LINKNAME = libtclespeak.so
SONAME = $(LINKNAME).$(LIBTAG)
LIBNAME = $(SONAME).$(LIBREL)

all: $(LIBNAME)

$(LIBNAME): tclespeak.o
	$(CXX) -shared -Wl,-soname,$(SONAME) -o $@ $< $(TCL_LIB) -lespeak

clean:
	rm -f $(LIBNAME) $(LINKNAME) $(SONAME) *.o

install:  $(LIBNAME)
	$(INSTALL) -d $(DESTDIR)$(LIBDIR)
	$(INSTALL) $(LIBNAME) $(DESTDIR)$(LIBDIR)
	$(LN) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME)
	$(LN) $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LINKNAME)

Attachment: pgpZZ5CdYyrjU.pgp
Description: PGP signature



If you have questions about this archive or had problems using it, please send mail to:

priestdo@cs.vassar.edu No Soliciting!

Emacspeak List Archive | 2007 | 2006 | 2005 | 2004 | 2003 | 2002 | 2001 | 2000 | 1999 | 1998 | Pre 1998

Emacspeak Files | Emacspeak Blog | Search the archive