Makefile.am 7.77 KB
Newer Older
1 2
SUBDIRS = . app

3
bin_PROGRAMS =
4
noinst_PROGRAMS =
5

6 7 8 9 10
CLEANFILES =
DISTCLEANFILES =
MAINTAINERCLEANFILES =
EXTRA_DIST =

Behdad Esfahbod's avatar
Behdad Esfahbod committed
11
# The library
12

13
headerdir = $(includedir)/vte-$(VTE_API_VERSION)/vte
14
header_HEADERS = \
15 16 17 18 19 20
	vte/vte.h \
	vte/vtedeprecated.h \
	vte/vteenums.h \
	vte/vteglobals.h \
	vte/vtemacros.h \
	vte/vtepty.h \
21
	vte/vteregex.h \
22
	vte/vteterminal.h \
23 24 25
	$(NULL)

nodist_header_HEADERS = \
26 27
	vte/vtetypebuiltins.h \
	vte/vteversion.h \
28
	$(NULL)
29

30
lib_LTLIBRARIES = libvte-@VTE_API_MAJOR_VERSION@.@VTE_API_MINOR_VERSION@.la
Behdad Esfahbod's avatar
Behdad Esfahbod committed
31

32
EXTRA_libvte_@VTE_API_MAJOR_VERSION@_@VTE_API_MINOR_VERSION@_la_SOURCES = \
33
	box_drawing_generate.sh \
34
	marshal.list \
Christian Persch's avatar
Christian Persch committed
35
	vtetypebuiltins.cc.template \
Behdad Esfahbod's avatar
Behdad Esfahbod committed
36
	vtetypebuiltins.h.template \
37
	$(NULL)
38

39
libvte_@VTE_API_MAJOR_VERSION@_@VTE_API_MINOR_VERSION@_la_SOURCES = \
40 41 42 43 44 45
	vte/vte.h \
	vte/vtedeprecated.h \
	vte/vteenums.h \
	vte/vteglobals.h \
	vte/vtemacros.h \
	vte/vtepty.h \
46
	vte/vteregex.h \
47
	vte/vteterminal.h \
48
	attr.hh \
49
	buffer.h \
50
	caps.hh \
51
	color-triple.hh \
Christian Persch's avatar
Christian Persch committed
52
	debug.cc \
53
	debug.h \
Christian Persch's avatar
Christian Persch committed
54
	iso2022.cc \
55
	iso2022.h \
Christian Persch's avatar
Christian Persch committed
56
	keymap.cc \
57
	keymap.h \
58 59
	parser.cc \
	parser.hh \
60
	parser-arg.hh \
61 62
	parser-charset.hh \
	parser-charset-tables.hh \
63 64
	parser-cmd.hh \
	parser-glue.hh \
Christian Persch's avatar
Christian Persch committed
65
	pty.cc \
66 67
	reaper.cc \
	reaper.hh \
Christian Persch's avatar
Christian Persch committed
68
	ring.cc \
69
	ring.h \
Christian Persch's avatar
Christian Persch committed
70 71
	vte.cc \
	vteaccess.cc \
72
	vteaccess.h \
Christian Persch's avatar
Christian Persch committed
73
	vteconv.cc \
74
	vteconv.h \
75
	vtedefines.hh \
Christian Persch's avatar
Christian Persch committed
76
	vtedraw.cc \
77
	vtedraw.hh \
78 79
	vtegtk.cc \
	vtegtk.hh \
Christian Persch's avatar
Christian Persch committed
80
	vteinternal.hh \
81
	vtepcre2.h \
82
	vtepty-private.h \
83 84
	vteregex.cc \
	vteregexinternal.hh \
Christian Persch's avatar
Christian Persch committed
85
	vterowdata.cc \
86
	vterowdata.h \
87 88
	vtespawn.cc \
	vtespawn.hh \
Christian Persch's avatar
Christian Persch committed
89
	vteseq.cc \
90
	vteseq-list.hh \
Christian Persch's avatar
Christian Persch committed
91
	vtestream.cc \
92
	vtestream.h \
93 94
	vtestream-base.h \
	vtestream-file.h \
95 96
	vtetypes.cc \
	vtetypes.hh \
Christian Persch's avatar
Christian Persch committed
97
	vteunistr.cc \
98
	vteunistr.h \
Christian Persch's avatar
Christian Persch committed
99
	vteutils.cc \
100
	vteutils.h \
101 102
	$(NULL)

103
nodist_libvte_@VTE_API_MAJOR_VERSION@_@VTE_API_MINOR_VERSION@_la_SOURCES = \
104
	box_drawing.h \
Christian Persch's avatar
Christian Persch committed
105
	marshal.cc \
106
	marshal.h \
Christian Persch's avatar
Christian Persch committed
107 108
	vteresources.cc \
	vtetypebuiltins.cc \
109 110
	vte/vtetypebuiltins.h \
	vte/vteversion.h \
111
	$(NULL)
112

113
libvte_@VTE_API_MAJOR_VERSION@_@VTE_API_MINOR_VERSION@_la_CPPFLAGS = \
Christian Persch's avatar
Christian Persch committed
114
	-DG_LOG_DOMAIN=\"Vte\" \
115
	-DVTE_API_VERSION=\"$(VTE_API_VERSION)\" \
116
	-DDATADIR='"$(datadir)"' \
117 118
	-DLIBEXECDIR='"$(libexecdir)"' \
	-DLOCALEDIR='"$(localedir)"' \
119
	-DGLIB_DISABLE_DEPRECATION_WARNINGS \
120
	-DVTE_COMPILATION \
121
	-I$(builddir)/vte \
122
	-I$(srcdir)/vte \
123 124
	$(AM_CPPFLAGS)

125
libvte_@VTE_API_MAJOR_VERSION@_@VTE_API_MINOR_VERSION@_la_CXXFLAGS = \
126
	$(VTE_CFLAGS) \
127
	$(AM_CXXFLAGS)
128

129
libvte_@VTE_API_MAJOR_VERSION@_@VTE_API_MINOR_VERSION@_la_LDFLAGS = \
Christian Persch's avatar
Christian Persch committed
130
	$(VTE_CXXLDFLAGS) \
131
	-version-info $(LT_VERSION_INFO) \
132
	$(AM_LDFLAGS)
133

134
libvte_@VTE_API_MAJOR_VERSION@_@VTE_API_MINOR_VERSION@_la_LIBADD = \
135
	$(VTE_LIBS)
Behdad Esfahbod's avatar
Behdad Esfahbod committed
136 137 138

# Generated sources

139 140 141 142 143 144 145 146 147 148
BUILT_SOURCES = \
	box_drawing.h \
	marshal.cc \
	marshal.h \
	vtetypebuiltins.cc \
	vte/vtetypebuiltins.h \
	vteresources.cc \
	$(NULL)
EXTRA_DIST += box_drawing.txt box_drawing_generate.sh iso2022.txt
CLEANFILES += $(BUILT_SOURCES) stamp-vtetypebuiltins.h
149

150
box_drawing.h: box_drawing.txt box_drawing_generate.sh
151
	$(AM_V_GEN) $(srcdir)/box_drawing_generate.sh < $< > $@
Nalin Dahyabhai's avatar
Nalin Dahyabhai committed
152

Christian Persch's avatar
Christian Persch committed
153
marshal.cc: marshal.list
154 155
	$(AM_V_GEN) echo '#include "marshal.h"' > $@ \
	&& $(GLIB_GENMARSHAL) --prefix=_vte_marshal --body --internal $< >> $@
156

157 158
marshal.h: marshal.list
	$(AM_V_GEN) $(GLIB_GENMARSHAL) --prefix=_vte_marshal --header --internal $< > $@
159

160
vte/vtetypebuiltins.h: stamp-vtetypebuiltins.h
161
	@true
162
stamp-vtetypebuiltins.h: vtetypebuiltins.h.template vte/vteenums.h vte/vtedeprecated.h
163
	$(AM_V_GEN) $(GLIB_MKENUMS) --template $< $(filter %.h,$^) > xgen-vtbh \
164
	&& (cmp -s xgen-vtbh vte/vtetypebuiltins.h || cp xgen-vtbh vte/vtetypebuiltins.h ) \
165 166 167
	&& rm -f xgen-vtbh \
	&& echo timestamp > $(@F)

Christian Persch's avatar
Christian Persch committed
168
vtetypebuiltins.cc: vtetypebuiltins.cc.template vte/vteenums.h vte/vtedeprecated.h
169
	$(AM_V_GEN) $(GLIB_MKENUMS) --template $< $(filter %.h,$^) > xgen-vtbc \
Christian Persch's avatar
Christian Persch committed
170
	&& (cmp -s xgen-vtbc vtetypebuiltins.cc || cp xgen-vtbc vtetypebuiltins.cc ) \
171
	&& rm -f xgen-vtbc
Nalin Dahyabhai's avatar
Nalin Dahyabhai committed
172

Christian Persch's avatar
Christian Persch committed
173
vteresources.cc: vte.gresource.xml Makefile $(shell $(GLIB_COMPILE_RESOURCES) --generate-dependencies vte.gresource.xml)
174
	$(AM_V_GEN)$(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir . --generate-source --c-name _vte $<
Behdad Esfahbod's avatar
Behdad Esfahbod committed
175 176 177

# Misc unit tests and utilities

178
noinst_PROGRAMS += interpret slowcat test-parser
179 180
noinst_SCRIPTS = decset osc window
EXTRA_DIST += $(noinst_SCRIPTS)
Behdad Esfahbod's avatar
Behdad Esfahbod committed
181

182 183
check_PROGRAMS = \
	dumpkeys \
184
	reaper \
185 186 187 188 189 190 191
	reflect-text-view \
	reflect-vte mev \
	xticker \
	vteconv \
	vtestream-file \
	test-vtetypes \
	$(NULL)
192 193

dist_check_SCRIPTS = \
194 195 196
	check-doc-syntax.sh \
	test-vte-sh.sh \
	$(NULL)
197

198
TESTS = \
199
	test-parser \
200
	reaper \
201 202 203 204 205 206
	test-vtetypes \
	vteconv \
	vtestream-file \
	$(dist_check_SCRIPTS) \
	$(NULL)

207 208 209 210 211
TESTS_ENVIRONMENT = \
	srcdir="$(srcdir)" \
	top_builddir="$(top_builddir)" \
	VTE_API_VERSION="$(VTE_API_VERSION)" \
	$(NULL)
Behdad Esfahbod's avatar
Behdad Esfahbod committed
212

213
reaper_CPPFLAGS = -DMAIN -I$(builddir) -I$(srcdir) $(AM_CPPFLAGS)
214 215 216 217 218 219 220 221 222
reaper_CXXFLAGS = $(VTE_CFLAGS) $(AM_CXXFLAGS)
reaper_SOURCES = \
	debug.cc \
	debug.h \
	reaper.cc \
	reaper.hh \
	$(NULL)
reaper_LDADD = $(VTE_LIBS)

223
reflect_text_view_CPPFLAGS = -DUSE_TEXT_VIEW -I$(builddir)/vte -I$(srcdir)/vte $(AM_CPPFLAGS)
224
reflect_text_view_CFLAGS = $(VTE_CFLAGS) $(AM_CFLAGS)
225
reflect_text_view_SOURCES = reflect.c
226
reflect_text_view_LDADD = $(VTE_LIBS)
227

228
reflect_vte_CPPFLAGS = -DUSE_VTE -I$(builddir)/vte -I$(srcdir)/vte $(AM_CPPFLAGS)
229
reflect_vte_CFLAGS = $(VTE_CFLAGS) $(AM_CFLAGS)
230
reflect_vte_SOURCES = reflect.c
231
reflect_vte_LDADD = libvte-$(VTE_API_VERSION).la $(VTE_LIBS)
232

233 234 235 236 237 238 239
interpret_SOURCES = \
	buffer.h \
	caps.hh \
	debug.cc \
	debug.h \
	iso2022.cc \
	iso2022.h \
240 241
	parser.cc \
	parser.hh \
242 243
	parser-charset.hh \
	parser-charset-tables.hh \
244 245
	parser-cmd.hh \
	parser-glue.hh \
246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
	vteconv.cc \
	vteconv.h \
	interpret.cc
interpret_CPPFLAGS = \
	-DINTERPRET_MAIN \
	-DVTE_API_VERSION=\"$(VTE_API_VERSION)\" \
	-I$(builddir) \
	-I$(srcdir) \
	$(AM_CPPFLAGS)
interpret_CFLAGS = \
	$(GLIB_CFLAGS) \
	$(GOBJECT_CFLAGS) \
	$(GTK_CFLAGS) \
	$(AM_CFLAGS)
interpret_CXXFLAGS = \
	$(GLIB_CFLAGS) \
	$(GOBJECT_CFLAGS) \
	$(GTK_CFLAGS) \
	$(AM_CXXFLAGS)
interpret_LDADD = \
	$(GLIB_LIBS) \
	$(GOBJECT_LIBS)

269
slowcat_SOURCES = \
270 271
	slowcat.c \
	$(NULL)
272
slowcat_CPPFLAGS = -I$(builddir) -I$(srcdir) $(AM_CPPFLAGS)
273 274
slowcat_CFLAGS = $(GLIB_CFLAGS) $(AM_CFLAGS)
slowcat_LDADD = $(GLIB_LIBS)
275

276 277 278 279
test_parser_SOURCES = \
	parser-test.cc \
	parser.cc \
	parser.hh \
280
	parser-arg.hh \
281
	parser-cmd.hh \
282 283
	parser-charset.hh \
	parser-charset-tables.hh \
284 285 286 287 288 289 290 291 292 293 294 295 296
	parser-glue.hh \
	$(NULL)
test_parser_CPPFLAGS = \
	-I$(builddir) \
	-I$(srcdir) \
	$(AM_CPPFLAGS)
test_parser_CXXFLAGS = \
	$(VTE_CFLAGS) \
	$(AM_CXXFLAGS)
test_parser_LDADD = \
	$(VTE_LIBS) \
	$(NULL)

297 298 299 300 301 302 303
test_vtetypes_SOURCES = \
	vtetypes.cc \
	vtetypes.hh \
	$(NULL)
test_vtetypes_CPPFLAGS = \
	-DMAIN \
	-I$(builddir) \
304
	-I$(srcdir) \
305 306
	$(AM_CPPFLAGS)
test_vtetypes_CXXFLAGS = \
307
	$(VTE_CFLAGS) \
308 309
	$(AM_CXXFLAGS)
test_vtetypes_LDADD = \
310
	$(VTE_LIBS) \
311 312
	$(NULL)

313 314 315
vtestream_file_SOURCES = \
	vtestream-base.h \
	vtestream-file.h \
Christian Persch's avatar
Christian Persch committed
316
	vtestream.cc \
317
	vtestream.h \
Christian Persch's avatar
Christian Persch committed
318
	vteutils.cc \
319 320 321 322
	vteutils.h \
	$(NULL)
vtestream_file_CPPFLAGS = \
	-DVTESTREAM_MAIN \
323
	-I$(builddir) \
324
	-I$(srcdir) \
325
	$(AM_CPPFLAGS)
Christian Persch's avatar
Christian Persch committed
326
vtestream_file_CXXFLAGS = \
327
	$(VTE_CFLAGS) \
Christian Persch's avatar
Christian Persch committed
328
	$(AM_CXXFLAGS)
329 330 331
vtestream_file_LDADD = \
	$(VTE_LIBS)

Christian Persch's avatar
Christian Persch committed
332
vteconv_SOURCES = buffer.h debug.cc debug.h vteconv.cc vteconv.h
333
vteconv_CPPFLAGS = -DVTECONV_MAIN -I$(builddir) -I$(srcdir) $(AM_CPPFLAGS)
Christian Persch's avatar
Christian Persch committed
334
vteconv_CXXFLAGS = $(VTE_CFLAGS) $(AM_CXXFLAGS)
Behdad Esfahbod's avatar
Behdad Esfahbod committed
335
vteconv_LDADD = $(VTE_LIBS)
336

337
dumpkeys_SOURCES = dumpkeys.c
338
dumpkeys_CPPFLAGS = -I$(builddir) -I$(srcdir) $(AM_CPPFLAGS)
339 340 341
dumpkeys_CFLAGS = $(GLIB_CFLAGS) $(AM_CFLAGS)
dumpkeys_LDADD = $(GLIB_LIBS)

342
mev_SOURCES = mev.c
343
mev_CPPFLAGS = -I$(builddir) -I$(srcdir) $(AM_CPPFLAGS)
344 345 346
mev_CFLAGS = $(GLIB_CFLAGS) $(AM_CFLAGS)
mev_LDADD = $(GLIB_LIBS)

347
xticker_SOURCES = xticker.c
348
xticker_CPPFLAGS = -I$(builddir) -I$(srcdir) $(AM_CPPFLAGS)
349 350
xticker_CFLAGS = $(GLIB_CFLAGS) $(AM_CFLAGS)
xticker_LDADD = $(GLIB_LIBS)
Behdad Esfahbod's avatar
Behdad Esfahbod committed
351

352 353 354 355
# Shell

profiledir = $(sysconfdir)/profile.d
dist_profile_DATA = vte.sh
356

357 358
.DELETE_ON_ERROR:

Behdad Esfahbod's avatar
Behdad Esfahbod committed
359
-include $(top_srcdir)/git.mk