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