aboutsummaryrefslogtreecommitdiff
path: root/flite/Makefile.am
blob: 1cec8f7fdc75d643d6c53f92dfd195662a5681f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# File: ./Makefile.am
# Package: flite
# Description:
#   + top-level automake file
#
# Process this file with Automake to create Makefile.in.
#-----------------------------------------------------------------------

#-----------------------------------------------------------------------
# Options & Subdirectories
#-----------------------------------------------------------------------

## --- automake options
#AUTOMAKE_OPTIONS = foreign dist-bzip2 dist-zip
AUTOMAKE_OPTIONS = foreign

## --- recursion subdirectories
SUBDIRS = config

## --- pseudo-deps for '.SUFFIXES'
SUFFIXES = .pod .txt

#-----------------------------------------------------------------------
# Flags and variables
#-----------------------------------------------------------------------
PD_DIR = @PD_DIR@
PD_INC = @PD_INC@
PD_DOCDIR = @PD_DOC@
PD_EXTDIR = @PD_EXTDIR@
PDEXT     = @EXT@

#-----------------------------------------------------------------------
# pd externals (hacked 'libexec_*')
#-----------------------------------------------------------------------
EXEEXT=.@EXT@
libexecdir = @PD_EXTDIR@

## --- externals
libexec_PROGRAMS = flite

## --- documentation
datadir = @PD_DOCDIR@
data_DATA = flite-help.pd

#-----------------------------------------------------------------------
# sources
#-----------------------------------------------------------------------
flite_SOURCES = flite.c mooPdUtils.h

#-----------------------------------------------------------------------
# external compilation : flags
#-----------------------------------------------------------------------
DEFS   = @DEFS@
AFLAGS = @AFLAGS@
DFLAGS = @DFLAGS@
LFLAGS = @LFLAGS@
WFLAGS = @WFLAGS@
OFLAGS = @OFLAGS@

AM_CPPFLAGS = $(DEFS) $(IFLAGS) $(DFLAGS)
AM_CFLAGS   = $(OFLAGS) $(WFLAGS) $(AFLAGS)

flite_LDFLAGS = $(LFLAGS)
flite_LDADD   = $(FLITE_VOICELIBS) $(FLITE_LANGLIBS) $(FLITE_LEXLIBS) $(FLITE_LIBS)

#-----------------------------------------------------------------------
# Variables: cleanup
#-----------------------------------------------------------------------
## --- mostlyclean: built by 'make' & commonly rebuilt
#MOSTLYCLEANFILES =

## --- clean: built by 'make'
#CLEANFILES =

## --- distclean: built by 'configure'
DISTCLEANFILES = \
	config.log	\
	config.cache	\
	config.status

## -- maintainerclean: built by maintainer / by hand
MAINTAINERCLEANFILES = *~ \
	$(PODS:.pod=.txt) \
	Makefile Makefile.in \
	aclocal.m4 \
	configure \
	install-sh \
	stamp-h.in \
	config.h.in

maintainer-clean-local:
	rm -rf autom4te.cache

#CVSCLEAN_SUBDIRS = $(SUBDIRS)

#CVSCLEANFILES = Makefile.in Makefile


#-----------------------------------------------------------------------
# Additional Variables & Rules: PODS
#-----------------------------------------------------------------------
PODS = README.pod

.pod.txt:
	pod2text $< $@


#-----------------------------------------------------------------------
# Variables: distribution
#-----------------------------------------------------------------------

## --- extra distribution files
EXTRA_DIST = $(PODS:.pod=.txt) $(data_DATA) autogen.sh configure \
	COPYING flite-1.1-noaudio.patch

## --- recursion subdirectories for 'make dist'
DIST_SUBDIRS = $(SUBDIRS)

## --- dist-hook: when another 'Makefile.am' is overkill
#DISTHOOK_DIRS = foo
#DISTHOOK_FILES = foo/bar.txt foo/baz.txt
#dist-hook:
#	for d in $(DISTHOOK_DIRS); do\
#	  mkdir -p $(distdir)/$$d ;\
#	done
#	for f in $(DISTHOOK_FILES); do\
#	  cp -p $(srcdir)/$$f $(distdir)/$$f ;\
#	done

#dist-bz2: dist-bzip2 ;


#-----------------------------------------------------------------------
# Rules: cleanup
#-----------------------------------------------------------------------
.PHONY: cvsclean cvsclean-hook

cvsclean: maintainer-clean ;