6663b6c9
adorian
projet complet av...
|
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
|
SFLAGS += -Ipoincare/include
#include poincare/src/simplify/Makefile
#include poincare/src/simplification/Makefile
objs += $(addprefix poincare/src/,\
absolute_value.o\
addition.o\
approximation_engine.o\
arc_cosine.o\
arc_sine.o\
arc_tangent.o\
arithmetic.o\
binomial_coefficient.o\
bounded_static_hierarchy.o\
ceiling.o\
complex_argument.o\
confidence_interval.o\
conjugate.o\
cosine.o\
decimal.o\
derivative.o\
determinant.o\
division_quotient.o\
division_remainder.o\
division.o\
dynamic_hierarchy.o\
empty_expression.o\
equal.o\
expression_layout_cursor.o\
evaluation.o\
expression_lexer.o\
expression_parser.o\
expression.o\
factor.o\
factorial.o\
floor.o\
frac_part.o\
global_context.o\
great_common_divisor.o\
hyperbolic_arc_cosine.o\
hyperbolic_arc_sine.o\
hyperbolic_arc_tangent.o\
hyperbolic_cosine.o\
hyperbolic_sine.o\
hyperbolic_tangent.o\
imaginary_part.o\
integer.o\
integral.o\
layout_engine.o\
list_data.o\
least_common_multiple.o\
logarithm.o\
matrix_data.o\
matrix_dimension.o\
matrix_inverse.o\
matrix_trace.o\
matrix_transpose.o\
matrix.o\
multiplication.o\
naperian_logarithm.o\
nth_root.o\
opposite.o\
parenthesis.o\
permute_coefficient.o\
power.o\
prediction_interval.o\
preferences.o\
print_float.o\
product.o\
randint.o\
random.o\
rational.o\
real_part.o\
round.o\
sequence.o\
simplification_engine.o\
sine.o\
square_root.o\
static_hierarchy.o\
store.o\
subtraction.o\
sum.o\
symbol.o\
tangent.o\
trigonometry.o\
undefined.o\
variable_context.o\
)
objs += $(addprefix poincare/src/layout/,\
absolute_value_layout.o\
binomial_coefficient_layout.o\
bounded_static_layout_hierarchy.o\
bracket_layout.o\
bracket_pair_layout.o\
ceiling_layout.o\
char_layout.o\
condensed_sum_layout.o\
conjugate_layout.o\
dynamic_layout_hierarchy.o\
empty_layout.o\
expression_layout.o\
floor_layout.o\
fraction_layout.o\
grid_layout.o\
horizontal_layout.o\
integral_layout.o\
left_parenthesis_layout.o\
left_square_bracket_layout.o\
matrix_layout.o\
nth_root_layout.o\
product_layout.o\
right_parenthesis_layout.o\
right_square_bracket_layout.o\
sequence_layout.o\
static_layout_hierarchy.o\
sum_layout.o\
vertical_offset_layout.o\
)
tests += $(addprefix poincare/test/,\
addition.cpp\
arithmetic.cpp\
binomial_coefficient_layout.cpp\
complex_to_expression.cpp\
convert_expression_to_text.cpp\
division.cpp\
factorial.cpp\
fraction_layout.cpp\
function.cpp\
helper.cpp\
integer.cpp\
logarithm.cpp\
matrix.cpp\
multiplication.cpp\
nth_root_layout.cpp\
parser.cpp\
power.cpp\
properties.cpp\
rational.cpp\
simplify_mix.cpp\
store.cpp\
subtraction.cpp\
symbol.cpp\
trigo.cpp\
vertical_offset_layout.cpp\
)
# simplify_utils.cpp\
ifdef POINCARE_TESTS_PRINT_EXPRESSIONS
tests += poincare/src/expression_debug.o
objs += poincare/src/expression_debug.o
SFLAGS += -DPOINCARE_TESTS_PRINT_EXPRESSIONS=1
endif
# Even though flex and bison will generate both implementation and headers at
# once, we don't declare it in the Makefile. If we did, "make -jN" with N>1 may
# call bison or flex twice.
lexer_files = $(addprefix poincare/src/, expression_lexer.cpp expression_lexer.hpp)
poincare/src/expression_lexer.hpp: poincare/src/expression_lexer.cpp
poincare/src/expression_lexer.cpp: poincare/src/expression_lexer.l
@echo "FLEX $(lexer_files)"
$(Q) flex -P poincare_expression_yy --header-file=poincare/src/expression_lexer.hpp -o poincare/src/expression_lexer.cpp $<
poincare/src/expression_lexer.o: CXXFLAGS += -Wno-deprecated-register -Wno-unused-value -Wno-unused-function
parser_files = $(addprefix poincare/src/, expression_parser.cpp expression_parser.hpp)
poincare/src/expression_parser.hpp: poincare/src/expression_parser.cpp
poincare/src/expression_parser.cpp: poincare/src/expression_parser.y
@echo "BISON $(parser_files)"
$(Q) bison -d -p poincare_expression_yy -o poincare/src/expression_parser.cpp $<
poincare/src/expression.cpp: $(lexer_files) $(parser_files)
products += $(lexer_files) $(parser_files)
|