##### build targets: | ##### build targets: | ||||
libespeak_ng_includedir = $(includedir)/espeak-ng | |||||
libespeak_ng_include_HEADERS = \ | |||||
src/include/espeak-ng/speak_lib.h | |||||
espeak_includedir = $(includedir)/espeak | |||||
espeak_include_HEADERS = \ | |||||
src/include/espeak/speak_lib.h | |||||
espeak_ng_includedir = $(includedir)/espeak-ng | |||||
espeak_ng_include_HEADERS = \ | |||||
src/include/espeak-ng/espeak_ng.h | |||||
lib_LTLIBRARIES += src/libespeak-ng.la | lib_LTLIBRARIES += src/libespeak-ng.la | ||||
src_libespeak_ng_la_LDFLAGS = -version-info $(SHARED_VERSION) -lpthread -lm | src_libespeak_ng_la_LDFLAGS = -version-info $(SHARED_VERSION) -lpthread -lm | ||||
src_libespeak_ng_la_CFLAGS = -Isrc/include/espeak-ng \ | |||||
src_libespeak_ng_la_CFLAGS = -Isrc/include \ | |||||
-fPIC -fvisibility=hidden -D _BSD_SOURCE -D _POSIX_C_SOURCE=200112L \ | -fPIC -fvisibility=hidden -D _BSD_SOURCE -D _POSIX_C_SOURCE=200112L \ | ||||
-pedantic -fno-exceptions -D PATH_ESPEAK_DATA=\"$(DATADIR)\" | -pedantic -fno-exceptions -D PATH_ESPEAK_DATA=\"$(DATADIR)\" | ||||
src_libespeak_ng_la_SOURCES = \ | src_libespeak_ng_la_SOURCES = \ | ||||
src_speak_ng_LDADD = src/libespeak-ng.la | src_speak_ng_LDADD = src/libespeak-ng.la | ||||
src_speak_ng_LDFLAGS = -static | src_speak_ng_LDFLAGS = -static | ||||
src_speak_ng_CFLAGS = -Isrc/libespeak-ng -Isrc/include/espeak-ng -D _POSIX_C_SOURCE=200112L | |||||
src_speak_ng_CFLAGS = -Isrc/libespeak-ng -Isrc/include -D _POSIX_C_SOURCE=200112L | |||||
src_speak_ng_SOURCES = src/speak-ng.c | src_speak_ng_SOURCES = src/speak-ng.c | ||||
bin_PROGRAMS += src/espeak-ng | bin_PROGRAMS += src/espeak-ng | ||||
endif | endif | ||||
src_espeak_ng_LDADD = src/libespeak-ng.la | src_espeak_ng_LDADD = src/libespeak-ng.la | ||||
src_espeak_ng_CFLAGS = -Isrc/include/espeak-ng | |||||
src_espeak_ng_CFLAGS = -Isrc/include | |||||
src_espeak_ng_SOURCES = src/espeak-ng.c | src_espeak_ng_SOURCES = src/espeak-ng.c | ||||
##### phoneme data: | ##### phoneme data: |
#include <time.h> | #include <time.h> | ||||
#include <sys/stat.h> | #include <sys/stat.h> | ||||
#include "speak_lib.h" | |||||
#include "espeak_ng.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
extern void strncpy0(char *to, const char *from, int size); | extern void strncpy0(char *to, const char *from, int size); | ||||
extern int utf8_in(int *c, const char *buf); | extern int utf8_in(int *c, const char *buf); |
#ifndef ESPEAK_NG_H | #ifndef ESPEAK_NG_H | ||||
#define ESPEAK_NG_H | #define ESPEAK_NG_H | ||||
#include "speak_lib.h" | |||||
#include <espeak/speak_lib.h> | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "speak_lib.h" | |||||
#include "espeak_ng.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "error.h" | #include "error.h" | ||||
#include "speech.h" | #include "speech.h" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "error.h" | #include "error.h" | ||||
#include "speech.h" | #include "speech.h" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "speak_lib.h" | |||||
#include "espeak_ng.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "error.h" | #include "error.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <wctype.h> | #include <wctype.h> | ||||
#include <wchar.h> | #include <wchar.h> | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <string.h> | #include <string.h> | ||||
#include <malloc.h> | #include <malloc.h> | ||||
#include "espeak_ng.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include "error.h" | #include "error.h" | ||||
#include "speech.h" | #include "speech.h" |
#include "config.h" | #include "config.h" | ||||
#include "speak_lib.h" | |||||
#include "espeak_ng.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include <stdlib.h> | #include <stdlib.h> | ||||
#if HAVE_STDINT_H | #if HAVE_STDINT_H |
#include "config.h" | #include "config.h" | ||||
#include "espeak_ng.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "espeak_command.h" | #include "espeak_command.h" |
#ifndef PLATFORM_WINDOWS | #ifndef PLATFORM_WINDOWS | ||||
#include <unistd.h> | #include <unistd.h> | ||||
#endif | #endif | ||||
#include "speak_lib.h" | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" |
#include <errno.h> | #include <errno.h> | ||||
#include <stdbool.h> | #include <stdbool.h> | ||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include "event.h" | #include "event.h" | ||||
#include "wave.h" | #include "wave.h" | ||||
*/ | */ | ||||
#include "speak_lib.h" | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" | ||||
{ | { |
#include <sys/time.h> | #include <sys/time.h> | ||||
#include <time.h> | #include <time.h> | ||||
#include "espeak_ng.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "fifo.h" | #include "fifo.h" |
// and run them asynchronously. | // and run them asynchronously. | ||||
#include "espeak_command.h" | #include "espeak_command.h" | ||||
#include "speak_lib.h" | |||||
#ifdef __cplusplus | #ifdef __cplusplus | ||||
extern "C" | extern "C" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "klatt.h" | #include "klatt.h" |
#include <wctype.h> | #include <wctype.h> | ||||
#include <wchar.h> | #include <wchar.h> | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <unistd.h> | #include <unistd.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "phoneme.h" | #include "phoneme.h" | ||||
#include "synthesize.h" | #include "synthesize.h" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "error.h" | #include "error.h" | ||||
#include "speech.h" | #include "speech.h" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <wctype.h> | #include <wctype.h> | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <wctype.h> | #include <wctype.h> | ||||
#include <wchar.h> | #include <wchar.h> | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include "dirent.h" | #include "dirent.h" | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "phoneme.h" | #include "phoneme.h" | ||||
#include "synthesize.h" | #include "synthesize.h" |
#include <stdint.h> | #include <stdint.h> | ||||
#endif | #endif | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "speech.h" | #include "speech.h" | ||||
#include "phoneme.h" | #include "phoneme.h" |
#include <locale.h> | #include <locale.h> | ||||
#include <sys/stat.h> | #include <sys/stat.h> | ||||
#include "espeak_ng.h" | |||||
#include "speak_lib.h" | |||||
#include <espeak-ng/espeak_ng.h> | |||||
#include <espeak/speak_lib.h> | |||||
#include "phoneme.h" | #include "phoneme.h" | ||||
#include "synthesize.h" | #include "synthesize.h" |