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
|
deftwmrc = custom_target(
'deftwmrc.c',
input: 'system.twmrc',
output: 'deftwmrc.c',
command: [
find_program('gen_deftwmrc.sh'),
'@OUTPUT@',
'@INPUT@',
],
)
parser = custom_target(
'gram.[ch]',
input: [
'gram.y',
],
output: [
'gram.c',
'gram.h'
],
command: [
find_program('bison'),
'-y',
'-d',
'-o',
'@OUTPUT0@',
'@INPUT@',
],
)
lexer = custom_target(
'lex.c',
input: [
'lex.l',
parser[1],
],
output: [
'lex.c',
],
command: [
find_program('flex'),
'-o',
'@OUTPUT@',
'@INPUT0@',
],
)
twm = executable(
'twm',
[
'add_window.c',
'cursor.c',
'events.c',
'gc.c',
'iconmgr.c',
'icons.c',
'list.c',
'menus.c',
'parse.c',
'resize.c',
'session.c',
'twm.c',
'util.c',
deftwmrc,
parser,
lexer,
],
dependencies: twm_dependencies,
install: true,
)
configure_file(
input: 'system.twmrc',
output: 'system.twmrc',
copy: true,
install: true,
install_dir: get_option('datadir') / 'X11/twm/',
)
|