forked from miist-mark/lepton
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.am
275 lines (231 loc) · 16 KB
/
Makefile.am
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
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
includes = -I$(srcdir)/dependencies/xz/src/liblzma/api -I$(srcdir)/src/vp8/util -I$(srcdir)/src/vp8/model -I$(srcdir)/src/vp8/decoder -I$(srcdir)/src/vp8/encoder -I$(srcdir)/dependencies -I$(srcdir)/dependencies -I$(srcdir)/dependencies/xz/src/liblzma/common -I$(srcdir)/dependencies/xz/src/common -I$(srcdir)/dependencies/xz/src/liblzma/lzma -I$(srcdir)/dependencies/xz/src/liblzma/lz -I$(srcdir)/dependencies/xz/src/liblzma/check -I$(srcdir)/dependencies/xz/src/liblzma/rangecoder -I$(srcdir)/dependencies/xz/src/liblzma/api -I$(srcdir)/dependencies/xz/src/liblzma/simple -I$(srcdir)/dependencies/xz/src/liblzma/delta -I$(srcdir)/dependencies/xz/src/liblzma
AM_CXXFLAGS = $(CXX11_FLAGS) $(PICKY_CXXFLAGS) $(ARCH_FLAGS) $(SANITIZE_FLAGS) $(NODEBUG_CXXFLAGS) -DGIT_REVISION=\"$(shell git describe --dirty --always)\" $(includes)
AM_CFLAGS = $(C99_FLAGS) $(PICKY_CFLAGS) $(ARCH_FLAGS) $(SANITIZE_FLAGS) $(NODEBUG_CXXFLAGS)
noinst_LIBRARIES = liblocalzlib.a libtestdriver.a liblocalmd5.a
bin_PROGRAMS = lepton test_suite/test_invariants
lepton_LDADD = liblocalmd5.a liblocalzlib.a -lpthread
lepton_SOURCES = \
src/io/MemReadWriter.cc \
src/lepton/base_coders.hh \
src/lepton/simple_encoder.hh \
src/lepton/bitops.cc \
src/lepton/smalljpeg.hh \
src/lepton/bitops.hh \
src/lepton/idct.cc \
src/lepton/idct.hh \
src/lepton/component_info.hh \
src/lepton/htables.hh \
src/lepton/fork_serve.cc \
src/lepton/fork_serve.hh \
src/lepton/thread_handoff.cc \
src/lepton/thread_handoff.hh \
src/lepton/socket_serve.cc \
src/lepton/socket_serve.hh \
src/lepton/jpgcoder.cc \
src/lepton/validation.hh \
src/lepton/validation.cc \
src/lepton/recoder.cc \
src/lepton/uncompressed_components.cc \
src/lepton/jpgcoder.hh \
src/lepton/recoder.hh \
src/lepton/uncompressed_components.hh \
src/lepton/lepton_codec.cc \
src/lepton/lepton_codec.hh \
src/lepton/vp8_decoder.cc \
src/lepton/simple_decoder.cc \
src/lepton/vp8_decoder.hh \
src/lepton/simple_decoder.hh \
src/lepton/vp8_encoder.cc \
src/lepton/simple_encoder.cc \
src/lepton/vp8_encoder.hh \
src/io/Allocator.hh \
src/io/MemMgrAllocator.hh \
src/io/MemMgrAllocator.cc \
src/io/BufferedIO.hh \
src/io/ZlibCompression.cc \
src/io/ZlibCompression.hh \
src/io/Seccomp.hh \
src/io/Seccomp.cc \
src/io/seccomp-bpf.hh \
src/io/Error.hh \
src/io/Reader.hh \
src/io/MuxReader.hh \
src/io/ioutil.hh \
src/io/ioutil.cc \
src/io/Zlib0.hh \
src/io/Zlib0.cc \
src/io/DecoderPlatform.hh \
src/vp8/util/generic_worker.hh \
src/vp8/util/options.hh \
src/vp8/util/generic_worker.cc \
src/vp8/util/debug.cc \
src/vp8/util/debug.h \
src/vp8/util/memory.cc \
src/vp8/util/memory.hh \
src/vp8/util/billing.cc \
src/vp8/util/billing.hh \
src/vp8/util/nd_array.hh \
src/vp8/util/aligned_block.hh \
src/vp8/util/block_based_image.hh \
src/vp8/util/option.hh \
src/vp8/model/JpegArithmeticCoder.cc \
src/vp8/model/JpegArithmeticCoder.hh \
src/vp8/model/branch.hh \
src/vp8/model/model.cc \
src/vp8/model/model.hh \
src/vp8/model/numeric.cc \
src/vp8/model/numeric.hh \
src/vp8/model/jpeg_meta.hh \
src/vp8/encoder/encoder.cc \
src/vp8/decoder/decoder.cc \
src/vp8/encoder/bool_encoder.hh \
src/vp8/decoder/bool_decoder.hh \
src/vp8/encoder/boolwriter.hh \
src/vp8/encoder/boolwriter.cc \
src/vp8/decoder/boolreader.hh \
src/vp8/decoder/boolreader.cc \
src/vp8/encoder/vpx_bool_writer.hh \
src/vp8/decoder/vpx_bool_reader.hh
liblocalmd5_a_SOURCES = dependencies/md5/md5.c
liblocalzlib_a_SOURCES = dependencies/zlib/inflate.c \
dependencies/zlib/inflate.h \
dependencies/zlib/gzguts.h \
dependencies/zlib/infback.c \
dependencies/zlib/trees.c \
dependencies/zlib/adler32.c \
dependencies/zlib/gzclose.c \
dependencies/zlib/inftrees.h \
dependencies/zlib/zconf.h \
dependencies/zlib/compress.c \
dependencies/zlib/crc32.c \
dependencies/zlib/crc32.h \
dependencies/zlib/trees.h \
dependencies/zlib/inftrees.c \
dependencies/zlib/zutil.c \
dependencies/zlib/gzwrite.c \
dependencies/zlib/zutil.h \
dependencies/zlib/zlib.h \
dependencies/zlib/inffixed.h \
dependencies/zlib/deflate.c \
dependencies/zlib/inffast.h \
dependencies/zlib/inffast.c \
dependencies/zlib/uncompr.c \
dependencies/zlib/gzread.c \
dependencies/zlib/deflate.h \
dependencies/zlib/gzlib.c
libtestdriver_a_SOURCES = test_suite/timing_driver.cc
test_suite_test_invariants_SOURCES = test_suite/test_invariants.cc src/io/Allocator.hh \
src/vp8/util/memory.cc \
src/io/BufferedIO.hh \
src/io/Error.hh \
src/io/Reader.hh \
src/io/MuxReader.hh \
src/io/ioutil.hh \
src/io/ioutil.cc \
src/io/Zlib0.hh \
src/io/Zlib0.cc \
src/lepton/thread_handoff.cc \
src/lepton/thread_handoff.hh \
src/io/MemReadWriter.cc \
src/io/MemMgrAllocator.cc \
src/io/MemMgrAllocator.hh \
src/io/DecoderPlatform.hh
test_suite_test_invariants_LDADD = liblocalzlib.a liblocalmd5.a
check_PROGRAMS = test_suite/test_recode_memory_bound test_suite/test_truncate_lowmem test_suite/test_android_lowmem test_suite/test_invariants test_suite/test_baseline_ujg test_suite/test_baseline test_suite/test_misc test_suite/test_iphone test_suite/test_phone_outdoor test_suite/test_truncate_ujg test_suite/test_truncate test_suite/test_SLR test_suite/test_progressive_ujg test_suite/test_progressive_disallowed test_suite/test_progressive test_suite/test_arithmetic_failfast test_suite/test_hq test_suite/test_baseline_unjailed test_suite/test_baseline_unjailed_thread test_suite/test_baseline_unjailed_decode test_suite/test_baseline_unjailed_decode_thread test_suite/test_seccomp_encode_main test_suite/test_seccomp_encode_thread test_suite/test_seccomp_decode_main test_suite/test_seccomp_decode_thread test_suite/test_nofsync test_suite/test_colorswap test_suite/test_odd_rst test_suite/test_trailing_header test_suite/test_trailing_rst test_suite/test_gray2sf test_suite/test_truncated_zero_run test_suite/test_bad_zero_run
test_suite_test_baseline_ujg_SOURCES = test_suite/test_harness.cc
test_suite_test_baseline_ujg_LDADD = libtestdriver.a -lpthread
test_suite_test_baseline_SOURCES = test_suite/test_harness.cc
test_suite_test_baseline_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON
test_suite_test_baseline_LDADD = libtestdriver.a -lpthread
test_suite_test_baseline_unjailed_SOURCES = test_suite/test_harness.cc
test_suite_test_baseline_unjailed_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DUNJAILED -DINJECT_SYSCALL=1
test_suite_test_baseline_unjailed_LDADD = libtestdriver.a -lpthread
test_suite_test_baseline_unjailed_thread_SOURCES = test_suite/test_harness.cc
test_suite_test_baseline_unjailed_thread_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DUNJAILED -DINJECT_SYSCALL=2
test_suite_test_baseline_unjailed_thread_LDADD = libtestdriver.a -lpthread
test_suite_test_baseline_unjailed_decode_SOURCES = test_suite/test_harness.cc
test_suite_test_baseline_unjailed_decode_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DUNJAILED -DINJECT_SYSCALL=3
test_suite_test_baseline_unjailed_decode_LDADD = libtestdriver.a -lpthread
test_suite_test_baseline_unjailed_decode_thread_SOURCES = test_suite/test_harness.cc
test_suite_test_baseline_unjailed_decode_thread_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DUNJAILED -DINJECT_SYSCALL=4
test_suite_test_baseline_unjailed_decode_thread_LDADD = libtestdriver.a -lpthread
test_suite_test_seccomp_encode_main_SOURCES = test_suite/test_harness.cc
test_suite_test_seccomp_encode_main_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DINJECT_SYSCALL=1 -DEXPECT_LINUX_FAILURE
test_suite_test_seccomp_encode_main_LDADD = libtestdriver.a -lpthread
test_suite_test_seccomp_encode_thread_SOURCES = test_suite/test_harness.cc
test_suite_test_seccomp_encode_thread_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DINJECT_SYSCALL=2 -DEXPECT_LINUX_FAILURE
test_suite_test_seccomp_encode_thread_LDADD = libtestdriver.a -lpthread
test_suite_test_seccomp_decode_main_SOURCES = test_suite/test_harness.cc
test_suite_test_seccomp_decode_main_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DINJECT_SYSCALL=3 -DEXPECT_LINUX_DECODE_FAILURE
test_suite_test_seccomp_decode_main_LDADD = libtestdriver.a -lpthread
test_suite_test_seccomp_decode_thread_SOURCES = test_suite/test_harness.cc
test_suite_test_seccomp_decode_thread_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DINJECT_SYSCALL=4 -DEXPECT_LINUX_DECODE_FAILURE
test_suite_test_seccomp_decode_thread_LDADD = libtestdriver.a -lpthread
test_suite_test_phone_outdoor_SOURCES = test_suite/test_harness.cc
test_suite_test_phone_outdoor_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=iphonecity
test_suite_test_phone_outdoor_LDADD = libtestdriver.a -lpthread
test_suite_test_trailing_header_SOURCES = test_suite/test_harness.cc
test_suite_test_trailing_header_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=androidtrail
test_suite_test_trailing_header_LDADD = libtestdriver.a -lpthread
test_suite_test_iphone_SOURCES = test_suite/test_harness.cc
test_suite_test_iphone_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=iphone
test_suite_test_iphone_LDADD = libtestdriver.a -lpthread
test_suite_test_SLR_SOURCES = test_suite/test_harness.cc
test_suite_test_SLR_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=slrindoor -DTEST_FILE0=slrhills -DTEST_FILE1=slrcity -DMORE_MEMORY=\"256M\"
test_suite_test_SLR_LDADD = libtestdriver.a -lpthread
test_suite_test_hq_SOURCES = test_suite/test_harness.cc
test_suite_test_hq_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=hq -DMORE_MEMORY=\"360M\" -DTHREAD_MEMORY=\"24M\" -DSINGLETHREAD_MEMORY=\"87M\"
test_suite_test_hq_LDADD = libtestdriver.a -lpthread
test_suite_test_misc_SOURCES = test_suite/test_harness.cc
test_suite_test_misc_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=androidcrop -DTEST_FILE0=androidcropoptions -DTEST_FILE1=iphonecrop -DTEST_FILE2=iphonecrop2
test_suite_test_misc_LDADD = libtestdriver.a -lpthread
test_suite_test_arithmetic_failfast_SOURCES = test_suite/test_harness.cc
test_suite_test_arithmetic_failfast_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=arithmetic -DEXPECT_FAILURE
test_suite_test_arithmetic_failfast_LDADD = libtestdriver.a -lpthread
test_suite_test_recode_memory_bound_SOURCES = test_suite/test_harness.cc
test_suite_test_recode_memory_bound_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=android -DEXPECT_FAILURE -DSINGLETHREAD_MEMORY=\"6M\"
test_suite_test_recode_memory_bound_LDADD = libtestdriver.a -lpthread
test_suite_test_progressive_ujg_SOURCES = test_suite/test_harness.cc
test_suite_test_progressive_ujg_CXXFLAGS = $(AM_CXXFLAGS) -DTEST_FILE=iphoneprogressive -DTEST_FILE0=androidprogressive -DTEST_FILE1=iphoneprogressive2 -DALLOW_PROGRESSIVE
test_suite_test_progressive_ujg_LDADD = libtestdriver.a -lpthread
test_suite_test_progressive_SOURCES = test_suite/test_harness.cc
test_suite_test_progressive_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=iphoneprogressive -DTEST_FILE0=androidprogressive -DTEST_FILE1=iphoneprogressive2 -DALLOW_PROGRESSIVE
test_suite_test_progressive_LDADD = libtestdriver.a -lpthread
test_suite_test_progressive_disallowed_SOURCES = test_suite/test_harness.cc
test_suite_test_progressive_disallowed_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=iphoneprogressive -DEXPECT_FAILURE
test_suite_test_progressive_disallowed_LDADD = libtestdriver.a -lpthread
test_suite_test_truncate_ujg_SOURCES = test_suite/test_harness.cc
test_suite_test_truncate_ujg_CXXFLAGS = $(AM_CXXFLAGS) -DTEST_FILE=trunc
test_suite_test_truncate_ujg_LDADD = libtestdriver.a -lpthread
test_suite_test_truncate_SOURCES = test_suite/test_harness.cc
test_suite_test_truncate_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=trunc
test_suite_test_truncate_LDADD = libtestdriver.a -lpthread
test_suite_test_truncate_lowmem_SOURCES = test_suite/test_harness.cc
test_suite_test_truncate_lowmem_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=trunc -DSINGLETHREAD -DDECODE_MEMORY=\"18M\" -DTHREAD_MEMORY=\"0M\"
test_suite_test_truncate_lowmem_LDADD = libtestdriver.a -lpthread
test_suite_test_android_lowmem_SOURCES = test_suite/test_harness.cc
test_suite_test_android_lowmem_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=android -DTEST_FILE0=grayscale -DSINGLETHREAD -DDECODE_MEMORY=\"18M\" -DTHREAD_MEMORY=\"0M\"
test_suite_test_android_lowmem_LDADD = libtestdriver.a -lpthread
test_suite_test_nofsync_SOURCES = test_suite/test_harness.cc
test_suite_test_nofsync_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=nofsync -DTEST_FILE0=grayscale
test_suite_test_nofsync_LDADD = libtestdriver.a -lpthread
test_suite_test_gray2sf_SOURCES = test_suite/test_harness.cc
test_suite_test_gray2sf_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=gray2sf
test_suite_test_gray2sf_LDADD = libtestdriver.a -lpthread
test_suite_test_colorswap_SOURCES = test_suite/test_harness.cc
test_suite_test_colorswap_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=colorswap
test_suite_test_colorswap_LDADD = libtestdriver.a -lpthread
test_suite_test_odd_rst_SOURCES = test_suite/test_harness.cc
test_suite_test_odd_rst_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=narrowrst
test_suite_test_odd_rst_LDADD = libtestdriver.a -lpthread
test_suite_test_truncated_zero_run_SOURCES = test_suite/test_harness.cc
test_suite_test_truncated_zero_run_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=truncatedzerorun
test_suite_test_truncated_zero_run_LDADD = libtestdriver.a -lpthread
test_suite_test_bad_zero_run_SOURCES = test_suite/test_harness.cc
test_suite_test_bad_zero_run_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=badzerorun -DEXPECT_FAILURE
test_suite_test_bad_zero_run_LDADD = libtestdriver.a -lpthread
test_suite_test_trailing_rst_SOURCES = test_suite/test_harness.cc
test_suite_test_trailing_rst_CXXFLAGS = $(AM_CXXFLAGS) -DUSE_LEPTON -DTEST_FILE=trailingrst -DTEST_FILE0=trailingrst2
test_suite_test_trailing_rst_LDADD = libtestdriver.a -lpthread
TESTS = test_suite/test_recode_memory_bound test_suite/test_invariants test_suite/test_baseline_ujg test_suite/test_baseline test_suite/test_misc test_suite/test_iphone test_suite/test_phone_outdoor test_suite/test_truncate_ujg test_suite/test_truncate test_suite/test_android_lowmem test_suite/test_SLR test_suite/test_progressive_ujg test_suite/test_progressive_disallowed test_suite/test_progressive test_suite/test_arithmetic_failfast test_suite/test_hq test_suite/forktester.py test_suite/sockettester.py src/lepton/test_custom_table.sh test_suite/test_baseline_unjailed test_suite/test_baseline_unjailed_thread test_suite/test_baseline_unjailed_decode test_suite/test_baseline_unjailed_decode_thread test_suite/test_seccomp_encode_main test_suite/test_seccomp_encode_thread test_suite/test_seccomp_decode_main test_suite/test_seccomp_decode_thread test_suite/test_truncate_lowmem test_suite/test_nofsync test_suite/test_colorswap test_suite/test_odd_rst test_suite/test_trailing_header test_suite/test_trailing_rst test_suite/test_legacy.sh test_suite/test_gray2sf test_suite/test_2nd_block.sh test_suite/test_3rd_block.sh test_suite/test_last_block.sh test_suite/test_truncated_zero_run test_suite/test_bad_zero_run
dist_check_SCRIPTS = test_suite/test_recode_memory_bound test_suite/test_invariants test_suite/test_baseline_ujg test_suite/test_baseline test_suite/test_misc test_suite/test_iphone test_suite/test_phone_outdoor test_suite/test_truncate_ujg test_suite/test_truncate test_suite/test_android_lowmem test_suite/test_SLR test_suite/test_progressive_ujg test_suite/test_progressive_disallowed test_suite/test_progressive test_suite/test_arithmetic_failfast test_suite/test_hq test_suite/test_baseline_unjailed test_suite/test_baseline_unjailed_thread test_suite/test_baseline_unjailed_decode test_suite/test_baseline_unjailed_decode_thread test_suite/test_seccomp_encode_main test_suite/test_seccomp_encode_thread test_suite/test_seccomp_decode_main test_suite/test_seccomp_decode_thread test_suite/test_truncate_lowmem test_suite/test_nofsync test_suite/test_colorswap test_suite/test_odd_rst test_suite/test_trailing_header test_suite/test_trailing_rst test_suite/test_legacy.sh test_suite/test_gray2sf test_suite/test_2nd_block.sh test_suite/test_3rd_block.sh test_suite/test_last_block.sh test_suite/test_truncated_zero_run test_suite/test_bad_zero_run