mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-30 14:22:29 +00:00
build: add initial autotools configure support
This commit is contained in:
+20
@@ -2,6 +2,26 @@
|
|||||||
|
|
||||||
*.o
|
*.o
|
||||||
|
|
||||||
|
# autotools
|
||||||
|
|
||||||
|
AUTHORS
|
||||||
|
COPYING
|
||||||
|
INSTALL
|
||||||
|
NEWS
|
||||||
|
|
||||||
|
Makefile
|
||||||
|
Makefile.in
|
||||||
|
aclocal.m4
|
||||||
|
autom4te.cache/
|
||||||
|
config.*
|
||||||
|
configure
|
||||||
|
install-sh
|
||||||
|
libtool
|
||||||
|
ltmain.sh
|
||||||
|
m4/
|
||||||
|
missing
|
||||||
|
stamp-h1
|
||||||
|
|
||||||
# libraries
|
# libraries
|
||||||
|
|
||||||
docs/speak_lib.h
|
docs/speak_lib.h
|
||||||
|
|||||||
+20
-7
@@ -8,6 +8,19 @@ PLATFORM=big_endian
|
|||||||
|
|
||||||
.PHONY: all clean distclean espeak-phoneme-data
|
.PHONY: all clean distclean espeak-phoneme-data
|
||||||
|
|
||||||
|
EXTRA_DIST=
|
||||||
|
|
||||||
|
##### ChangeLog:
|
||||||
|
|
||||||
|
ChangeLog:
|
||||||
|
git log > ChangeLog
|
||||||
|
|
||||||
|
dist-hook: ChangeLog
|
||||||
|
|
||||||
|
.PHONY: ChangeLog
|
||||||
|
|
||||||
|
EXTRA_DIST += ChangeLog
|
||||||
|
|
||||||
##### standard build actions:
|
##### standard build actions:
|
||||||
|
|
||||||
all: src/speak src/libespeak.so src/libespeak.a src/espeak src/espeakedit espeak-data/phontab dictionaries docs/speak_lib.h
|
all: src/speak src/libespeak.so src/libespeak.a src/espeak src/espeakedit espeak-data/phontab dictionaries docs/speak_lib.h
|
||||||
@@ -27,7 +40,7 @@ distclean: clean
|
|||||||
|
|
||||||
##### build targets:
|
##### build targets:
|
||||||
|
|
||||||
common_SOURCES = \
|
common_SOURCE = \
|
||||||
src/compiledict.cpp \
|
src/compiledict.cpp \
|
||||||
src/dictionary.cpp \
|
src/dictionary.cpp \
|
||||||
src/intonation.cpp \
|
src/intonation.cpp \
|
||||||
@@ -46,7 +59,7 @@ common_SOURCES = \
|
|||||||
src/voices.cpp \
|
src/voices.cpp \
|
||||||
src/wavegen.cpp
|
src/wavegen.cpp
|
||||||
|
|
||||||
libespeak_SOURCES = \
|
libespeak_SOURCE = \
|
||||||
src/speak_lib.cpp \
|
src/speak_lib.cpp \
|
||||||
src/espeak_command.cpp \
|
src/espeak_command.cpp \
|
||||||
src/event.cpp \
|
src/event.cpp \
|
||||||
@@ -56,7 +69,7 @@ libespeak_SOURCES = \
|
|||||||
src/wave_sada.cpp \
|
src/wave_sada.cpp \
|
||||||
src/debug.cpp
|
src/debug.cpp
|
||||||
|
|
||||||
espeakedit_SOURCES = \
|
espeakedit_SOURCE = \
|
||||||
src/compiledata.cpp \
|
src/compiledata.cpp \
|
||||||
src/espeakedit.cpp \
|
src/espeakedit.cpp \
|
||||||
src/extras.cpp \
|
src/extras.cpp \
|
||||||
@@ -74,19 +87,19 @@ espeakedit_SOURCES = \
|
|||||||
docs/speak_lib.h: src/speak_lib.h
|
docs/speak_lib.h: src/speak_lib.h
|
||||||
cp $< $@
|
cp $< $@
|
||||||
|
|
||||||
src/libespeak.a: $(common_SOURCES) $(libespeak_SOURCES)
|
src/libespeak.a: $(common_SOURCE) $(libespeak_SOURCE)
|
||||||
cd src && make libespeak.a PREFIX=$(PREFIX) && cd ..
|
cd src && make libespeak.a PREFIX=$(PREFIX) && cd ..
|
||||||
|
|
||||||
src/libespeak.so: $(common_SOURCES) $(libespeak_SOURCES)
|
src/libespeak.so: $(common_SOURCE) $(libespeak_SOURCE)
|
||||||
cd src && make libespeak.so PREFIX=$(PREFIX) && cd ..
|
cd src && make libespeak.so PREFIX=$(PREFIX) && cd ..
|
||||||
|
|
||||||
src/speak: $(common_SOURCES) src/speak.cpp
|
src/speak: $(common_SOURCE) src/speak.cpp
|
||||||
cd src && make speak PREFIX=$(PREFIX) && cd ..
|
cd src && make speak PREFIX=$(PREFIX) && cd ..
|
||||||
|
|
||||||
src/espeak: src/libespeak.so src/espeak.cpp
|
src/espeak: src/libespeak.so src/espeak.cpp
|
||||||
cd src && make espeak PREFIX=$(PREFIX) && cd ..
|
cd src && make espeak PREFIX=$(PREFIX) && cd ..
|
||||||
|
|
||||||
src/espeakedit: $(common_SOURCES) $(libespeak_SOURCES) $(espeakedit_SOURCES)
|
src/espeakedit: $(common_SOURCE) $(libespeak_SOURCE) $(espeakedit_SOURCE)
|
||||||
cd src && make espeakedit PREFIX=$(PREFIX) && cd ..
|
cd src && make espeakedit PREFIX=$(PREFIX) && cd ..
|
||||||
|
|
||||||
espeak-phoneme-data:
|
espeak-phoneme-data:
|
||||||
Executable
+12
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
mkdir -p m4
|
||||||
|
touch AUTHORS
|
||||||
|
touch NEWS
|
||||||
|
|
||||||
|
aclocal -I m4 || exit 1
|
||||||
|
|
||||||
|
libtoolize || exit 1
|
||||||
|
autoheader || exit 1
|
||||||
|
automake --add-missing || exit 1
|
||||||
|
autoconf || exit 1
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
AC_PREREQ([2.65])
|
||||||
|
AC_INIT([eSpeak], [1.46], [https://github.com/rhdunn/espeak/issues], [espeak], [https://github.com/rhdunn/espeak])
|
||||||
|
AM_INIT_AUTOMAKE()
|
||||||
|
|
||||||
|
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES])
|
||||||
|
AM_SILENT_RULES([yes])
|
||||||
|
|
||||||
|
AC_CONFIG_SRCDIR([src])
|
||||||
|
AC_CONFIG_MACRO_DIR([m4])
|
||||||
|
AC_CONFIG_HEADERS([config.h])
|
||||||
|
|
||||||
|
dnl ================================================================
|
||||||
|
dnl Program checks.
|
||||||
|
dnl ================================================================
|
||||||
|
|
||||||
|
AC_PROG_CXX
|
||||||
|
AC_PROG_MAKE_SET
|
||||||
|
AC_PROG_LIBTOOL
|
||||||
|
|
||||||
|
dnl ================================================================
|
||||||
|
dnl getopt checks.
|
||||||
|
dnl ================================================================
|
||||||
|
|
||||||
|
AC_CHECK_HEADERS([getopt.h])
|
||||||
|
AC_CHECK_FUNCS([getopt_long])
|
||||||
|
|
||||||
|
dnl ================================================================
|
||||||
|
dnl Generate output.
|
||||||
|
dnl ================================================================
|
||||||
|
|
||||||
|
AC_CONFIG_FILES([Makefile])
|
||||||
|
AC_OUTPUT
|
||||||
|
|
||||||
|
AC_MSG_NOTICE([
|
||||||
|
|
||||||
|
Configuration for eSpeak complete.
|
||||||
|
|
||||||
|
Source code location: ${srcdir}
|
||||||
|
XDG data location: ${XDGDATADIR}
|
||||||
|
|
||||||
|
Compiler: ${CXX}
|
||||||
|
Compiler flags: ${CXXFLAGS}
|
||||||
|
])
|
||||||
Reference in New Issue
Block a user