eSpeak NG is an open source speech synthesizer that supports more than hundred languages and accents.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MAKEFILE.DJ 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. BINDIR=/usr/bin
  2. INCDIR=/usr/include/espeak
  3. LIBDIR=/usr/lib
  4. DATADIR=espeak-data
  5. RELEASE = 1.28
  6. BIN_NAME = speak
  7. INSTALL = /usr/bin/install
  8. LN_SF = /bin/ln -sf
  9. MKDIR = mkdir -p
  10. speak_SOURCES = speak.cpp compiledict.cpp dictionary.cpp intonation.cpp \
  11. readclause.cpp setlengths.cpp numbers.cpp synth_mbrola.cpp \
  12. synthdata.cpp synthesize.cpp translate.cpp tr_english.cpp \
  13. tr_languages.cpp voices.cpp wavegen.cpp phonemelist.cpp
  14. SRCS1=$(speak_SOURCES)
  15. OBJS1=$(patsubst %.cpp,%.o,$(SRCS1))
  16. LIBS1=
  17. CXXFLAGS=-O2
  18. all: $(BIN_NAME)
  19. .cpp.o:
  20. $(CXX) $(CXXFLAGS) -D PATH_ESPEAK_DATA=\"$(DATADIR)\" -Wall -pedantic -I. -c -fno-exceptions $<
  21. $(BIN_NAME): $(OBJS1)
  22. $(CXX) -o $@ $(OBJS1) $(LIBS1)
  23. clean:
  24. rm -f *.o *.a *~
  25. distclean: clean
  26. rm -f $(BIN_NAME)
  27. rm -f $(BIN2_NAME)
  28. rm -f $(LIB_NAME)*
  29. install: all
  30. # Create directories
  31. rm -rf $(DESTDIR)$(DATADIR)
  32. $(MKDIR) $(DESTDIR)$(BINDIR)
  33. $(MKDIR) $(DESTDIR)$(LIBDIR)
  34. $(MKDIR) $(DESTDIR)$(INCDIR)
  35. $(MKDIR) $(DESTDIR)$(DATADIR)
  36. # Install espeak executable
  37. $(INSTALL) -m 755 $(BIN2_NAME) $(DESTDIR)$(BINDIR)
  38. # Install shared library
  39. $(INSTALL) -m 755 $(LIB_NAME).$(LIBTAG) $(DESTDIR)$(LIBDIR)
  40. # Install static library
  41. $(INSTALL) -m 755 $(STATIC_LIB_NAME) $(DESTDIR)$(LIBDIR)
  42. $(LN_SF) $(LIB_NAME).$(LIBTAG) $(DESTDIR)$(LIBDIR)/$(LIB_NAME).$(LIB_VERSION)
  43. $(LN_SF) $(LIB_NAME).$(LIB_VERSION) $(DESTDIR)$(LIBDIR)/$(LIB_NAME)
  44. # Install development headers
  45. $(INSTALL) -pm 644 speak_lib.h $(DESTDIR)$(INCDIR)
  46. # Install data files
  47. cp -prf ../espeak-data/* $(DESTDIR)$(DATADIR)