Move libtool versioning to configure so you just have to update one file
[vte.git] / src / Makefile.am
1 bin_PROGRAMS = vte
2 pkginclude_HEADERS = pty.h reaper.h vte.h vteaccess.h
3 lib_LTLIBRARIES = libvte.la
4 pkglib_PROGRAMS = interpret utf8echo nativeecho utf8mode iso8859mode slowcat vterdb
5 pkglib_SCRIPTS = decset osc window
6 EXTRA_PROGRAMS = buffer dumpkeys iso2022 pty reaper reflect-text-view reflect-vte ring mev ssfe table trie xticker vteconv vtetc
7 EXTRA_DIST = \
8         $(pkglib_SCRIPTS) \
9         vteseq-gen.c \
10         vteseq-2.gperf \
11         vteseq-n.gperf \
12         vteseq-2.c \
13         vteseq-n.c \
14         genkeysyms.py \
15         iso2022.txt \
16         marshal.list \
17         mkunitables.sh \
18         uniwidths \
19         unitable.CNS11643 \
20         unitable.CP437 \
21         unitable.GB12345 \
22         unitable.GB2312 \
23         unitable.JIS0201 \
24         unitable.JIS0208 \
25         unitable.JIS0212 \
26         unitable.KSX1001
27
28 # gperf - files need to be modified afterwards
29 #vteseq-2.c: vteseq-2.gperf
30 #       gperf vteseq-2.gperf -g -a -S 4 -t -m 100 -C -H vteseq_2_hash -N vteseq_2_lookup > $@
31 #vteseq-n.c: vteseq-n.gperf
32 #       gperf vteseq-n.gperf -g -a -S 4 -t -m 100 -C -P -l -H vteseq_n_hash -N vteseq_n_lookup -Q vteseq_n_stringpool > $@
33
34
35 AM_CFLAGS = $(VTE_CFLAGS) $(FT2_CFLAGS) $(X_CFLAGS) $(PCRE_CFLAGS) \
36             -DG_DISABLE_ASSERT -DG_LOG_DOMAIN=\"Vte\"
37 AM_CPPFLAGS = -DDATADIR='"$(datadir)"' \
38               -DLIBEXECDIR='"$(libexecdir)"' \
39               -DLOCALEDIR='"$(localedir)"'
40 AM_LDFLAGS = $(LDFLAGS)
41
42 EXTRA_libvte_la_SOURCES = keysyms.c
43
44 libvte_la_SOURCES = \
45         buffer.c \
46         buffer.h \
47         caps.c \
48         caps.h \
49         debug.c \
50         debug.h \
51         iso2022.c \
52         iso2022.h \
53         keymap.c \
54         keymap.h \
55         marshal.c \
56         marshal.h \
57         matcher.c \
58         matcher.h \
59         pty.c \
60         pty.h \
61         reaper.c \
62         reaper.h \
63         ring.c \
64         ring.h \
65         table.c \
66         table.h \
67         trie.c \
68         trie.h \
69         vte.c \
70         vte.h \
71         vte-private.h \
72         vteaccess.c \
73         vteaccess.h \
74         vtebg.c \
75         vtebg.h \
76         vteconv.c \
77         vteconv.h \
78         vtedraw.c \
79         vtedraw.h \
80         vtefc.c \
81         vtefc.h \
82         vteft2.c \
83         vteft2.h \
84         vtegl.c \
85         vtegl.h \
86         vteglyph.c \
87         vteglyph.h \
88         vteint.h \
89         vtepango.c \
90         vtepango.h \
91         vterdb.c \
92         vterdb.h \
93         vteregex.c \
94         vteregex.h \
95         vtergb.c \
96         vtergb.h \
97         vteseq.c \
98         vteseq.h \
99         vteseq-list.h \
100         vteseq-table.h \
101         vteskel.c \
102         vteskel.h \
103         vtetc.c \
104         vtetc.h \
105         vtetree.c \
106         vtetree.h
107 if BUILD_XFT
108 libvte_la_SOURCES += \
109         vtexft.c \
110         vtexft.h
111 endif
112 if BUILD_PANGOX
113 libvte_la_SOURCES += \
114         vtepangox.c \
115         vtepangox.h
116 endif
117
118 libvte_la_LDFLAGS = $(LDFLAGS) \
119         -version-info $(LIBVTE_LTVERSION) \
120         -export-symbols-regex "^vte_terminal_.*|^_vte_pty_.*|^vte_reaper_.*|_vte_debug_.*" \
121         @LIBTOOL_EXPORT_OPTIONS@ @LIBTOOL_FLAGS@
122 libvte_la_LIBADD = $(LIBS) $(VTE_LIBS) $(X_LIBS) $(PCRE_LIBS) $(FT2_LIBS)
123
124 CLEANFILES = marshal.c marshal.h
125
126 marshal.c marshal.h: marshal.list
127         glib-genmarshal --prefix=_vte_marshal --body $^ > marshal.c
128         glib-genmarshal --prefix=_vte_marshal --header $^ > marshal.h
129
130 vte_SOURCES = \
131         vteapp.c
132 vte_LDADD = libvte.la $(LDFLAGS) $(LIBS) $(VTE_LIBS) $(X_LIBS)
133
134 reflect_text_view_CFLAGS = -DUSE_TEXT_VIEW $(VTE_CFLAGS) $(X_CFLAGS)
135 reflect_text_view_SOURCES = reflect.c
136 reflect_text_view_LDADD = $(LDFLAGS) $(LIBS) $(VTE_LIBS) $(X_LIBS)
137
138 reflect_vte_CFLAGS = -DUSE_VTE $(VTE_CFLAGS) $(X_CFLAGS)
139 reflect_vte_SOURCES = reflect.c
140 reflect_vte_LDADD = libvte.la $(LDFLAGS) $(LIBS) $(VTE_LIBS) $(X_LIBS)
141
142 interpret_CFLAGS = $(GTK_CFLAGS) -DINTERPRET_MAIN
143 interpret_SOURCES = \
144         buffer.c \
145         buffer.h \
146         caps.c \
147         caps.h \
148         debug.c \
149         debug.h \
150         iso2022.c \
151         iso2022.h \
152         matcher.c \
153         matcher.h \
154         table.c \
155         table.h \
156         trie.c \
157         trie.h \
158         vteconv.c \
159         vteconv.h \
160         vtetc.c \
161         vtetc.h \
162         vtetree.c \
163         vtetree.h \
164         interpret.c
165 interpret_LDADD = $(LDFLAGS) $(GOBJECT_LIBS)
166
167 iso2022_CFLAGS = $(GTK_CFLAGS) -DISO2022_MAIN
168 iso2022_SOURCES = \
169         buffer.c \
170         buffer.h \
171         caps.c \
172         caps.h \
173         debug.c \
174         debug.h \
175         iso2022.c \
176         iso2022.h \
177         matcher.c \
178         matcher.h \
179         table.c \
180         table.h \
181         trie.c \
182         trie.h \
183         vteconv.c \
184         vteconv.h \
185         vtetc.c \
186         vtetc.h \
187         vtetree.c \
188         vtetree.h
189 iso2022_LDADD = $(LDFLAGS) $(LIBS) $(GOBJECT_LIBS)
190
191 utf8echo_CFLAGS = $(GOBJECT_CFLAGS) -DUTF8ECHO_MAIN
192 utf8echo_SOURCES = \
193         buffer.c \
194         buffer.h \
195         caps.c \
196         caps.h \
197         debug.c \
198         debug.h \
199         matcher.c \
200         matcher.h \
201         table.c \
202         table.h \
203         trie.c \
204         trie.h \
205         utf8echo.c \
206         vteconv.c \
207         vteconv.h \
208         vtetc.c \
209         vtetc.h
210 utf8echo_LDADD = $(LDFLAGS) $(LIBS) $(GOBJECT_LIBS)
211
212 nativeecho_CFLAGS = $(GLIB_CFLAGS) -DNATIVEECHO_MAIN
213 nativeecho_SOURCES = \
214         nativeecho.c
215 nativeecho_LDADD = $(LDFLAGS) $(LIBS) $(GLIB_LIBS)
216
217 ring_CFLAGS = $(GLIB_CFLAGS) -DRING_MAIN
218 ring_SOURCES = \
219         debug.c \
220         debug.h \
221         ring.c \
222         ring.h
223 ring_LDADD = $(LDFLAGS) $(LIBS) $(GLIB_LIBS)
224
225 slowcat_SOURCES = \
226         slowcat.c
227 slowcat_LDADD = $(LDFLAGS) $(LIBS) $(GLIB_LIBS)
228
229 table_CFLAGS = $(GOBJECT_CFLAGS) -DTABLE_MAIN
230 table_SOURCES = \
231         buffer.c \
232         buffer.h \
233         caps.c \
234         caps.h \
235         debug.c \
236         debug.h \
237         matcher.c \
238         matcher.h \
239         table.c \
240         table.h \
241         trie.c \
242         trie.h \
243         vteconv.c \
244         vteconv.h \
245         vtetc.c \
246         vtetc.h
247 table_LDADD = $(LDFLAGS) $(LIBS) $(GOBJECT_LIBS)
248
249 trie_CFLAGS = $(GOBJECT_CFLAGS) -DTRIE_MAIN
250 trie_SOURCES = \
251         buffer.c \
252         buffer.h \
253         caps.c \
254         caps.h \
255         debug.c \
256         debug.h \
257         matcher.c \
258         matcher.h \
259         table.c \
260         table.h \
261         trie.c \
262         trie.h \
263         vteconv.c \
264         vteconv.h \
265         vtetc.c \
266         vtetc.h 
267 trie_LDADD = $(LDFLAGS) $(LIBS) $(GOBJECT_LIBS)
268
269 vtetc_CFLAGS = $(GLIB_CFLAGS) -DTERMCAP_MAIN
270 vtetc_SOURCES = \
271         debug.c \
272         debug.h \
273         vtetc.c \
274         vtetc.h
275 vtetc_LDADD = $(LDFLAGS) $(LIBS) $(GLIB_LIBS)
276
277 pty_CFLAGS = $(GLIB_CFLAGS) -DPTY_MAIN
278 pty_SOURCES = \
279         debug.c \
280         debug.h \
281         pty.c \
282         pty.h
283 pty_LDADD = $(LDFLAGS) $(LIBS) $(GLIB_LIBS)
284
285 reaper_CFLAGS = $(GTK_CFLAGS) -DREAPER_MAIN
286 reaper_SOURCES = \
287         debug.c \
288         debug.h \
289         marshal.c \
290         marshal.h \
291         reaper.c \
292         reaper.h
293 reaper_LDADD = $(LDFLAGS) $(LIBS) $(GOBJECT_LIBS)
294
295 vterdb_CFLAGS = $(GTK_CFLAGS) $(X_CFLAGS) -DVTERDB_MAIN
296 vterdb_SOURCES = vterdb.c
297 vterdb_LDADD = $(LDFLAGS) $(LIBS) $(GTK_LIBS)
298
299 vteconv_CFLAGS = $(GLIB_CFLAGS) -DVTECONV_MAIN
300 vteconv_SOURCES = \
301         buffer.c \
302         buffer.h \
303         debug.c \
304         debug.h \
305         vteconv.c \
306         vteconv.h
307 vteconv_LDADD = $(LDFLAGS) $(GLIB_LIBS)
308
309 buffer_CFLAGS = $(GLIB_CFLAGS) -DBUFFER_MAIN
310 buffer_SOURCES = buffer.c
311 buffer_LDADD = $(LDFLAGS) $(GLIB_LIBS)
312
313 dumpkeys_SOURCES = dumpkeys.c
314 dumpkeys_LDADD = $(LDFLAGS) $(LIBS) $(GLIB_LIBS)
315
316 mev_SOURCES = mev.c
317 mev_LDADD = $(LDFLAGS) $(LIBS) $(GLIB_LIBS)
318
319 ssfe_SOURCES = ssfe.c
320 ssfe_LDADD = $(LDFLAGS) $(OTHERLIBS)
321
322 xticker_CFLAGS = $(GLIB_CFLAGS)
323 xticker_SOURCES = xticker.c
324 xticker_LDADD = $(LDFLAGS) $(LIBS) $(GLIB_LIBS)
325
326 vteseq-table.h: vteseq-gen.c vteseq-list.h
327         $(MAKE) vteseq-gen
328         ./vteseq-gen > $@