Browse Source

build: add initial autotools configure support

master
Reece H. Dunn 12 years ago
parent
commit
7fdb2d2fb8
4 changed files with 95 additions and 7 deletions
  1. 20
    0
      .gitignore
  2. 20
    7
      Makefile.am
  3. 12
    0
      autogen.sh
  4. 43
    0
      configure.ac

+ 20
- 0
.gitignore View File

@@ -2,6 +2,26 @@

*.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

docs/speak_lib.h

Makefile → Makefile.am View File

@@ -8,6 +8,19 @@ PLATFORM=big_endian

.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:

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:

common_SOURCES = \
common_SOURCE = \
src/compiledict.cpp \
src/dictionary.cpp \
src/intonation.cpp \
@@ -46,7 +59,7 @@ common_SOURCES = \
src/voices.cpp \
src/wavegen.cpp

libespeak_SOURCES = \
libespeak_SOURCE = \
src/speak_lib.cpp \
src/espeak_command.cpp \
src/event.cpp \
@@ -56,7 +69,7 @@ libespeak_SOURCES = \
src/wave_sada.cpp \
src/debug.cpp

espeakedit_SOURCES = \
espeakedit_SOURCE = \
src/compiledata.cpp \
src/espeakedit.cpp \
src/extras.cpp \
@@ -74,19 +87,19 @@ espeakedit_SOURCES = \
docs/speak_lib.h: src/speak_lib.h
cp $< $@

src/libespeak.a: $(common_SOURCES) $(libespeak_SOURCES)
src/libespeak.a: $(common_SOURCE) $(libespeak_SOURCE)
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 ..

src/speak: $(common_SOURCES) src/speak.cpp
src/speak: $(common_SOURCE) src/speak.cpp
cd src && make speak PREFIX=$(PREFIX) && cd ..

src/espeak: src/libespeak.so src/espeak.cpp
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 ..

espeak-phoneme-data:

+ 12
- 0
autogen.sh View File

@@ -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

+ 43
- 0
configure.ac View File

@@ -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}
])

Loading…
Cancel
Save