-
Notifications
You must be signed in to change notification settings - Fork 6
/
Makefile.am
162 lines (124 loc) · 4.4 KB
/
Makefile.am
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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
ACLOCAL_AMFLAGS = -I autotools/m4
lib_LTLIBRARIES =
pkginclude_HEADERS =
noinst_HEADERS =
bin_PROGRAMS =
CLEANFILES =
EXTRA_DIST = saga.pc.in meson.build
pkgconfiginstalldir = $(libdir)/pkgconfig
pkgconfiginstall_DATA = saga.pc
# Shared library
lib_LTLIBRARIES += libsaga.la
libsaga_la_SOURCES = src/utils/LisUdf.c src/utils/Util.c src/utils/PosixCompat.c
libsaga_la_CFLAGS = -DSAGA_DICCDIR=\"$(pkgdatadir)/dicc/\"
if BUILDING_SHARED_LIBRARY
libsaga_la_CFLAGS += -DSAGA_BUILDING_SHARED -fvisibility="hidden"
endif
# version-info is defined according to the libtool manual:
#
# 1. Start with version information of ‘0:0:0’
# 2. Update the version information only immediately before a public release of
# your software. More frequent updates are unnecessary, and only guarantee that
# the current interface number gets larger faster.
# 3. If the library source code has changed at all since the last update, then
# increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
# 4. If any interfaces have been added, removed, or changed since the last update,
# increment current, and set revision to 0.
# 5. If any interfaces have been added since the last public release, then
# increment age.
# 6. If any interfaces have been removed or changed since the last public release,
# then set age to 0.
libsaga_la_LDFLAGS = -no-undefined -version-info 2:0:0
libsaga_la_LIBADD =
libsaga_la_SOURCES += src/SagaAcc.c src/SagaDic.c src/SagaExt.c \
src/SagaSil.c src/SagaTrn.c src/SagaCom.c \
src/SagaEngine.c
libsaga_la_CFLAGS += -I$(srcdir)/src -I$(srcdir)/src/utils -I$(srcdir)/include
# Headers
pkginclude_HEADERS += \
include/Saga.h
noinst_HEADERS += \
src/utils/LisUdf.h \
src/utils/Util.h \
src/utils/PosixCompat.h \
src/ExcAcc.h \
src/SagaInternal.h
# The main program
bin_PROGRAMS += saga
saga_CFLAGS = -I$(srcdir)/include -I$(srcdir)/src -I$(srcdir)/src/utils
saga_SOURCES = bin/Saga.c src/utils/PosixCompat.c src/utils/Util.c
saga_LDADD = libsaga.la
# Data:
datadiccdir = $(pkgdatadir)/dicc
datadiccargdir = $(datadiccdir)/Arg
dist_datadiccarg_DATA = \
dicc/Arg/ArgExc.dicc \
dicc/Arg/ArgDicGrp.dicc \
dicc/Arg/ArgNovFon.dicc \
dicc/Arg/ArgReadme.txt \
dicc/Arg/ArgSust.dicc
datadicccasdir = $(datadiccdir)/Cas
dist_datadicccas_DATA = \
dicc/Cas/CasTrnFon.dicc \
dicc/Cas/CasDicSust.dicc \
dicc/Cas/CasDicSustOPC.dicc \
dicc/Cas/CasReadme.txt \
dicc/Cas/CasDicGrp.dicc \
dicc/Cas/CasTrnPal.dicc \
dicc/Cas/CasExc.dicc \
dicc/Cas/CasNovCns.dicc
datadiccchldir = $(datadiccdir)/Chl
dist_datadiccchl_DATA = \
dicc/Chl/ChlNovFon.dicc \
dicc/Chl/ChlGrup.dicc \
dicc/Chl/ChlReadme.txt \
dicc/Chl/ChlSust.dicc \
dicc/Chl/ChlExc.dicc
datadiccperdir = $(datadiccdir)/Per
dist_datadiccper_DATA = \
dicc/Per/PerSust.dicc \
dicc/Per/PerExc.dicc \
dicc/Per/PerReadme.txt
datadiccvendir = $(datadiccdir)/Ven
dist_datadiccven_DATA = \
dicc/Ven/VenExc.dicc \
dicc/Ven/VenReadme.txt \
dicc/Ven/VenSust.dicc
datadicccoldir = $(datadiccdir)/Col
dist_datadicccol_DATA = \
dicc/Col/ColExc.dicc \
dicc/Col/ColReadme.txt \
dicc/Col/ColSust.dicc
datadiccmexdir = $(datadiccdir)/Mex
dist_datadiccmex_DATA = \
dicc/Mex/MexSust.dicc \
dicc/Mex/MexExc.dicc \
dicc/Mex/MexReadme.txt
# Documentation
dist_man1_MANS = man/man1/saga.1
check_PROGRAMS = test/test_saga
check_SCRIPTS = test/test_saga_example.sh
EXTRA_DIST += test/test_readlisudf.txt
CLEANFILES += test/test_saga_example.sh
EXTRA_DIST += test/test_saga_example.sh.in
do_subst_test_saga_example =
test/test_saga_example.sh: test/test_saga_example.sh.in Makefile
sed -e 's,[@]abs_top_srcdir[@],$(abs_top_srcdir),g' < $(srcdir)/test/test_saga_example.sh.in > test/test_saga_example.sh
chmod +x test/test_saga_example.sh
noinst_PROGRAMS = test/saga_example
test_saga_example_SOURCES = test/saga_example.c
test_saga_example_LDADD = libsaga.la
test_saga_example_CFLAGS = $(libsaga_la_CFLAGS)
test_test_saga_SOURCES = test/test_saga.c src/utils/LisUdf.c src/utils/Util.c src/utils/PosixCompat.c
test_test_saga_LDADD = libsaga.la
test_test_saga_CFLAGS = $(libsaga_la_CFLAGS) \
-DTEST_FILE_DIR=\"$(top_srcdir)/test/\"
TESTS = test/test_saga test/test_saga_example.sh
EXTRA_DIST += gpl-3.0.txt README.md README.es.md \
doc/Saga_man.pdf \
doc/Saga_Reglas_Trans.pdf \
doc/SAMPA_Spanish_93.pdf \
doc/SpanishDialectalVariants-ICSLP98.pdf
clean-local:
find . -name '*.gcno' -exec rm {} \;
find . -name '*.gcda' -exec rm {} \;