1
2EXTRA_DIST = iso2022.txt
3
4
5# The library
6
7headerdir = $(includedir)/vte-$(VTE_API_VERSION)/vte
8header_HEADERS = pty.h reaper.h vte.h vteaccess.h vtepty.h vtetypebuiltins.h vteversion.h vtedeprecated.h
9
10lib_LTLIBRARIES = libvte@VTE_LIBRARY_SUFFIX_U@.la
11
12EXTRA_libvte@VTE_LIBRARY_SUFFIX_U@_la_SOURCES = \
13	genkeysyms.py \
14	keysyms.c \
15	marshal.list \
16	mkunitables.sh \
17	unitable.CNS11643 \
18	unitable.CP437 \
19	unitable.GB12345 \
20	unitable.GB2312 \
21	unitable.JIS0201 \
22	unitable.JIS0208 \
23	unitable.JIS0212 \
24	unitable.KSX1001 \
25	vteseq-2.gperf \
26	vteseq-2.c \
27	vteseq-n.gperf \
28	vteseq-n.c \
29	vtetypebuiltins.c.template \
30	vtetypebuiltins.h.template \
31	$(NULL)
32
33libvte@VTE_LIBRARY_SUFFIX_U@_la_SOURCES = \
34	buffer.h \
35	caps.c \
36	caps.h \
37	debug.c \
38	debug.h \
39	iso2022.c \
40	iso2022.h \
41	keymap.c \
42	keymap.h \
43	marshal.c \
44	marshal.h \
45	matcher.c \
46	matcher.h \
47	pty.c \
48	pty.h \
49	reaper.c \
50	reaper.h \
51	ring.c \
52	ring.h \
53	table.c \
54	table.h \
55	trie.c \
56	trie.h \
57	vte.c \
58	vte.h \
59	vte-gtk-compat.h \
60	vte-private.h \
61	vteaccess.c \
62	vteaccess.h \
63	vtebg.c \
64	vtebg.h \
65	vteconv.c \
66	vteconv.h \
67	vtedraw.c \
68	vtedraw.h \
69	vtedeprecated.h \
70	vteint.h \
71	vtepty.h \
72	vtepty-private.h \
73	vteregex.c \
74	vteregex.h \
75	vterowdata.c \
76	vterowdata.h \
77	vteseq.c \
78	vteseq-list.h \
79	vtestream.c \
80	vtestream.h \
81	vtestream-base.h \
82	vtestream-file.h \
83	vtetc.c \
84	vtetc.h \
85	vtetree.c \
86	vtetree.h \
87	vtetypebuiltins.c \
88	vtetypebuiltins.h \
89	vteunistr.c \
90	vteunistr.h \
91	vteversion.h
92	$(NULL)
93
94libvte@VTE_LIBRARY_SUFFIX_U@_la_CPPFLAGS = \
95	-DG_LOG_DOMAIN=\"Vte-$(VTE_API_VERSION)\" \
96 	-DDATADIR='"$(datadir)"' \
97	-DLIBEXECDIR='"$(libexecdir)"' \
98	-DLOCALEDIR='"$(localedir)"' \
99	-DTERMCAPDIR='"$(pkgdatadir)/termcap-$(VTE_API_VERSION)"' \
100	-DVTE_COMPILATION \
101	$(AM_CPPFLAGS)
102
103libvte@VTE_LIBRARY_SUFFIX_U@_la_CFLAGS = $(VTE_CFLAGS) $(AM_CFLAGS)
104libvte@VTE_LIBRARY_SUFFIX_U@_la_LIBADD = $(VTE_LIBS)
105libvte@VTE_LIBRARY_SUFFIX_U@_la_LDFLAGS = \
106  $(VTE_LDFLAGS) \
107	-version-info $(LT_VERSION_INFO) \
108	-export-symbols-regex "^vte_terminal_.*|^vte_pty_.*|^vte_get_.*|^_vte_pty_.*|^vte_reaper_.*|_vte_debug_.*" \
109	@LIBTOOL_EXPORT_OPTIONS@ @LIBTOOL_FLAGS@ \
110	$(AM_LDFLAGS)
111
112
113# Generated sources
114
115VTESEQ_BUILTSOURCES = vteseq-list.h vteseq-2.c vteseq-n.c
116BUILT_SOURCES = marshal.c marshal.h vtetypebuiltins.c vtetypebuiltins.h $(VTESEQ_BUILTSOURCES)
117MAINTAINERCLEANFILES = $(VTESEQ_BUILTSOURCES)
118EXTRA_DIST += $(VTESEQ_BUILTSOURCES)
119CLEANFILES = marshal.c marshal.h vtetypebuiltins.c vtetypebuiltins.h stamp-vtetypebuiltins.h
120
121marshal.c: marshal.list
122	$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_vte_marshal --header --body --internal $< > $@
123
124marshal.h: marshal.list
125	$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_vte_marshal --header --internal $< > $@
126
127vtetypebuiltins.h: stamp-vtetypebuiltins.h
128	@true
129stamp-vtetypebuiltins.h: vtetypebuiltins.h.template vte.h vtepty.h vtedeprecated.h
130	$(AM_V_GEN) $(GLIB_MKENUMS) --template $< $(filter %.h,$^) > xgen-vtbh \
131	&& (cmp -s xgen-vtbh vtetypebuiltins.h || cp xgen-vtbh vtetypebuiltins.h ) \
132	&& rm -f xgen-vtbh \
133	&& echo timestamp > $(@F)
134
135vtetypebuiltins.c: vtetypebuiltins.c.template vte.h vtepty.h vtedeprecated.h
136	$(AM_V_GEN) $(GLIB_MKENUMS) --template $< $(filter %.h,$^) > xgen-vtbc \
137	&& (cmp -s xgen-vtbc vtetypebuiltins.c || cp xgen-vtbc vtetypebuiltins.c ) \
138	&& rm -f xgen-vtbc
139
140vteseq-2.c: vteseq-2.gperf
141	$(AM_V_GEN) $(top_srcdir)/missing --run gperf -m 100 --no-strlen $< > $@.tmp && \
142	mv -f $@.tmp $@
143
144vteseq-n.c: vteseq-n.gperf
145	$(AM_V_GEN) $(top_srcdir)/missing --run gperf -m 100 $< > $@.tmp && \
146	mv -f $@.tmp $@
147
148vteseq-list.h: vteseq-2.gperf vteseq-n.gperf
149	$(AM_V_GEN) echo '/* Generated file.  Do not edit */' > $@.tmp && \
150	cat $^ | grep -v '^#' | grep '\<VTE_SEQUENCE_HANDLER\>'| sed 's/.*, //' | LANG=C sort -u >> $@.tmp && \
151	mv -f $@.tmp $@
152
153
154# vte the application
155
156bin_PROGRAMS = vte@VTE_LIBRARY_SUFFIX_U@
157
158vte@VTE_LIBRARY_SUFFIX_U@_SOURCES = vteapp.c
159vte@VTE_LIBRARY_SUFFIX_U@_CFLAGS = $(VTE_CFLAGS)
160vte@VTE_LIBRARY_SUFFIX_U@_LDADD = libvte@VTE_LIBRARY_SUFFIX_U@.la $(VTE_LIBS)
161
162# introspection
163
164INTROSPECTION_GIRS =
165INTROSPECTION_SCANNER_ARGS = --add-include-path=$(srcdir) --warn-all
166INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
167
168if HAVE_INTROSPECTION
169
170Vte-@VTE_API_VERSION@.gir: libvte@VTE_LIBRARY_SUFFIX_U@.la
171Vte_@VTE_API_VERSION_U@_gir_INCLUDES = Pango-1.0 Gdk-$(GTK_API_VERSION) Gtk-$(GTK_API_VERSION)
172Vte_@VTE_API_VERSION_U@_gir_CFLAGS = $(VTE_CFLAGS) -DVTE_COMPILATION -I$(top_srcdir)
173Vte_@VTE_API_VERSION_U@_gir_LIBS = libvte@VTE_LIBRARY_SUFFIX_U@.la
174Vte_@VTE_API_VERSION_U@_gir_FILES = \
175	vte.c \
176	vte.h \
177	vtepty.h \
178	pty.c \
179	vtetypebuiltins.c \
180	vtetypebuiltins.h \
181	$(NULL)
182
183INTROSPECTION_GIRS += Vte-$(VTE_API_VERSION).gir
184
185girdir = $(INTROSPECTION_GIRDIR)
186nodist_gir_DATA = $(INTROSPECTION_GIRS)
187
188typelibdir = $(INTROSPECTION_TYPELIBDIR)
189nodist_typelib_DATA = $(INTROSPECTION_GIRS:.gir=.typelib)
190
191CLEANFILES += $(nodist_gir_DATA) $(nodist_typelib_DATA)
192endif
193
194
195# Misc unit tests and utilities
196
197noinst_PROGRAMS = interpret slowcat
198noinst_SCRIPTS = decset osc window
199EXTRA_DIST += $(noinst_SCRIPTS)
200
201TEST_SH = check-doc-syntax.sh
202EXTRA_DIST += $(TEST_SH)
203
204check_PROGRAMS = dumpkeys iso2022 reaper reflect-text-view reflect-vte mev ssfe table trie xticker vteconv vtetc
205TESTS = table trie $(TEST_SH)
206
207AM_CFLAGS = $(GLIB_CFLAGS)
208LDADD = $(GLIB_LIBS)
209
210reflect_text_view_CPPFLAGS = -DUSE_TEXT_VIEW
211reflect_text_view_CFLAGS = $(VTE_CFLAGS)
212reflect_text_view_SOURCES = reflect.c
213reflect_text_view_LDADD = $(VTE_LIBS)
214
215reflect_vte_CPPFLAGS = -DUSE_VTE
216reflect_vte_CFLAGS = $(VTE_CFLAGS)
217reflect_vte_SOURCES = reflect.c
218reflect_vte_LDADD = libvte@VTE_LIBRARY_SUFFIX_U@.la $(VTE_LIBS)
219
220interpret_SOURCES = \
221	buffer.h \
222	caps.c \
223	caps.h \
224	debug.c \
225	debug.h \
226	iso2022.c \
227	iso2022.h \
228	matcher.c \
229	matcher.h \
230	table.c \
231	table.h \
232	trie.c \
233	trie.h \
234	vteconv.c \
235	vteconv.h \
236	vtetc.c \
237	vtetc.h \
238	vtetree.c \
239	vtetree.h \
240	interpret.c
241interpret_CPPFLAGS = \
242 	-DINTERPRET_MAIN \
243 	-DTERMCAPDIR='"$(pkgdatadir)/termcap-$(VTE_API_VERSION)"'
244interpret_CFLAGS = $(GTK_CFLAGS)
245interpret_LDADD = $(GTK_LIBS)
246
247iso2022_SOURCES = \
248	buffer.h \
249	caps.c \
250	caps.h \
251	debug.c \
252	debug.h \
253	iso2022.c \
254	iso2022.h \
255	matcher.c \
256	matcher.h \
257	table.c \
258	table.h \
259	trie.c \
260	trie.h \
261	vteconv.c \
262	vteconv.h \
263	vtetc.c \
264	vtetc.h \
265	vtetree.c \
266	vtetree.h
267iso2022_CPPFLAGS = -DISO2022_MAIN
268iso2022_CFLAGS = $(GTK_CFLAGS)
269iso2022_LDADD = $(GTK_LIBS)
270
271slowcat_SOURCES = \
272	slowcat.c
273
274table_SOURCES = \
275	buffer.h \
276	caps.c \
277	caps.h \
278	debug.c \
279	debug.h \
280	matcher.c \
281	matcher.h \
282	table.c \
283	table.h \
284	trie.c \
285	trie.h \
286	vteconv.c \
287	vteconv.h \
288	vtetc.c \
289	vtetc.h
290table_CPPFLAGS = -DTABLE_MAIN
291table_CFLAGS = $(VTE_CFLAGS)
292table_LDADD = $(VTE_LIBS)
293
294trie_SOURCES = \
295	trie.c \
296	trie.h \
297	buffer.h \
298	caps.c \
299	caps.h \
300	debug.c \
301	debug.h \
302	matcher.c \
303	matcher.h \
304	table.c \
305	table.h \
306	vteconv.c \
307	vteconv.h \
308	vtetc.c \
309	vtetc.h
310trie_CPPFLAGS = -DTRIE_MAIN
311trie_CFLAGS = $(VTE_CFLAGS)
312trie_LDADD = $(VTE_LIBS)
313
314vtetc_SOURCES = vtetc.c vtetc.h debug.c debug.h
315vtetc_CPPFLAGS = -DTERMCAP_MAIN
316
317reaper_SOURCES = reaper.c reaper.h debug.c debug.h marshal.c marshal.h
318reaper_CPPFLAGS =  -DREAPER_MAIN -DLOCALEDIR='"$(localedir)"'
319
320vteconv_SOURCES = buffer.h debug.c debug.h vteconv.c vteconv.h
321vteconv_CPPFLAGS = -DVTECONV_MAIN
322vteconv_CFLAGS = $(VTE_CFLAGS)
323vteconv_LDADD = $(VTE_LIBS)
324
325dumpkeys_SOURCES = dumpkeys.c
326mev_SOURCES = mev.c
327ssfe_SOURCES = ssfe.c
328xticker_SOURCES = xticker.c
329
330#
331
332-include $(top_srcdir)/git.mk
333-include $(INTROSPECTION_MAKEFILE)
334