-
Notifications
You must be signed in to change notification settings - Fork 0
/
srcs.mk
188 lines (184 loc) · 2.69 KB
/
srcs.mk
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
INCDIR = includes
SRCDIR = srcs
HDRS =\
$(addprefix $(INCDIR)/,\
$(addprefix job_control/,\
background.h\
conditions.h\
destructors.h\
group.h\
history.h\
jc_builtins.h\
jobspec_parser.h\
process.h\
session.h\
utils.h\
zombies.h\
g_signals.h\
)\
$(addprefix lexer/,\
lexer.h\
token.h\
)\
$(addprefix term/,\
ansi.h\
caps.h\
hist.h\
line.h\
term.h\
)\
$(addprefix execution/,\
bst.h\
execution.h\
)\
builtins.h\
cross_platform_signals.h\
env.h\
errors.h\
expansion.h\
minishell.h\
path.h\
separators.h\
signal_handler.h\
signals_print.h\
)
SRCS_COMMON =\
$(addprefix lexer/,\
$(addprefix lexers/lex_,\
cmd.c\
ifs.c\
inline.c\
param_quoted.c\
param.c\
subshell.c\
tokens.c\
)\
lexer.c\
token_utils.c\
token.c\
)\
$(addprefix term/,\
init.c\
line.c line_edit.c line_put.c\
read.c\
)\
$(addprefix builtins/,\
$(addprefix jc_builtins/,\
fg.c\
bg.c\
jobs.c jobs_helper.c\
kill.c kill_helper.c\
wait.c wait_helper.c\
disown.c disown_helper.c\
)\
cd.c\
echo.c\
env.c\
exit.c\
export.c\
pwd.c\
unset.c\
history.c\
builtins.c builtins_utils.c\
)\
$(addprefix env/env,\
_get.c\
_set.c\
.c\
)\
$(addprefix execution/,\
$(addprefix bst/,\
bst_fill.c\
bst.c\
)\
execution_fd.c\
execution_fill.c\
redirection.c\
execution.c\
)\
$(addprefix expansion/,\
expand_param.c\
expansion.c\
word_split.c\
)\
$(addprefix job_control/,\
$(addprefix group/,\
group_operations.c\
group.c\
return_st.c\
)\
$(addprefix jobspec_parser/,\
jobspec_parser_name.c\
jobspec_parser_utils.c\
jobspec_parser_utils2.c\
jobspec_parser.c\
)\
$(addprefix memory/,\
allocators.c\
dynamic_group_destructors.c\
dynamic_process_destructors.c\
static_destructors.c\
static_destructors2.c\
)\
$(addprefix process/,\
process_operations.c\
process.c\
)\
$(addprefix zombies/,\
dead_zombies.c\
zombies_catcher.c\
zombies.c\
)\
background.c\
conditions.c\
exit_helper.c\
history_session.c\
print_terminated.c\
session.c\
wait_processes.c\
)\
$(addprefix separators/,\
conditionals.c\
separators.c\
split_separators.c\
)\
$(addprefix signals_print/,\
print_signals.c\
print_helper1.c\
print_helper2.c\
print_helper3.c\
)\
$(addprefix main/,\
main.c\
async.c\
errors.c\
)\
$(addprefix path/,\
path.c path_utils.c\
)
SRCS =\
$(addprefix $(SRCDIR)/,\
$(SRCS_COMMON)\
$(addprefix term/,\
term.c\
)\
)
SRCS_BONUS =\
$(addprefix $(SRCDIR)/,\
$(SRCS_COMMON)\
$(addsuffix _bonus.c,\
$(addprefix term/,\
caps caps_goto caps_utils\
clear\
clip\
control control_line\
cursor cursor_jmp\
hist hist_cursor\
keybind\
read_caps read_csi read_esc\
select select_jmp\
term\
write\
)\
)\
)