forked from streamripper/streamripper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
459 lines (423 loc) · 11.4 KB
/
Makefile.am
File metadata and controls
459 lines (423 loc) · 11.4 KB
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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
## Process this file with automake to produce Makefile.in
AM_CPPFLAGS = @OGG_CFLAGS@ @VORBIS_CFLAGS@ @GLIB_CFLAGS@
if SUBDIR_LIBMAD
MAYBE_LIBMAD = libmad-0.15.1b
AM_CPPFLAGS += -I@abs_top_srcdir@/libmad-0.15.1b
endif
# if SUBDIR_GLIB
# MAYBE_GLIB = glib-2.16.6
# AM_CPPFLAGS += -I@abs_top_srcdir@/glib-2.16.6/glib
# AM_CPPFLAGS += -I@abs_top_srcdir@/glib-2.16.6
# endif
#if SUBDIR_CDK
# MAYBE_CDK = cdk-5.0-20060507
#endif
AM_CPPFLAGS += -I@abs_top_srcdir@/lib
# SUBDIRS = $(MAYBE_LIBMAD) $(MAYBE_CDK) $(MAYBE_GLIB) lib
# SUBDIRS = $(MAYBE_LIBMAD) $(MAYBE_CDK) lib
SUBDIRS = $(MAYBE_LIBMAD) lib
bin_PROGRAMS = streamripper
if WANT_CSTREAMRIPPER
## bin_PROGRAMS += cstreamripper
endif
EXTRA_PROGRAMS = streamripper ictest cstreamripper
ictest_SOURCES = \
lib/ictest.c
streamripper_SOURCES = \
console/streamripper.c
cstreamripper_SOURCES = \
console/cstreamripper.c
if USE_INCLUDED_ARGV
streamripper_SOURCES += lib/argv.c
endif
libmad_manifest = \
libmad-0.15.1b/README \
libmad-0.15.1b/configure.ac \
libmad-0.15.1b/aclocal.m4 \
libmad-0.15.1b/mad.h \
libmad-0.15.1b/Makefile.am \
libmad-0.15.1b/Makefile.in \
libmad-0.15.1b/config.h.in \
libmad-0.15.1b/libmad.list.in \
libmad-0.15.1b/configure \
libmad-0.15.1b/COPYING \
libmad-0.15.1b/INSTALL \
libmad-0.15.1b/TODO \
libmad-0.15.1b/config.guess \
libmad-0.15.1b/config.sub \
libmad-0.15.1b/depcomp \
libmad-0.15.1b/install-sh \
libmad-0.15.1b/ltmain.sh \
libmad-0.15.1b/missing \
libmad-0.15.1b/mkinstalldirs \
libmad-0.15.1b/version.c \
libmad-0.15.1b/fixed.c \
libmad-0.15.1b/bit.c \
libmad-0.15.1b/timer.c \
libmad-0.15.1b/stream.c \
libmad-0.15.1b/frame.c \
libmad-0.15.1b/synth.c \
libmad-0.15.1b/decoder.c \
libmad-0.15.1b/layer12.c \
libmad-0.15.1b/layer3.c \
libmad-0.15.1b/huffman.c \
libmad-0.15.1b/version.h \
libmad-0.15.1b/fixed.h \
libmad-0.15.1b/bit.h \
libmad-0.15.1b/timer.h \
libmad-0.15.1b/stream.h \
libmad-0.15.1b/frame.h \
libmad-0.15.1b/synth.h \
libmad-0.15.1b/decoder.h \
libmad-0.15.1b/global.h \
libmad-0.15.1b/layer12.h \
libmad-0.15.1b/layer3.h \
libmad-0.15.1b/huffman.h \
libmad-0.15.1b/D.dat \
libmad-0.15.1b/imdct_s.dat \
libmad-0.15.1b/qc_table.dat \
libmad-0.15.1b/rq_table.dat \
libmad-0.15.1b/sf_table.dat \
libmad-0.15.1b/imdct_l_arm.S \
libmad-0.15.1b/minimad.c \
libmad-0.15.1b/mad.h.sed \
libmad-0.15.1b/CHANGES \
libmad-0.15.1b/COPYRIGHT \
libmad-0.15.1b/CREDITS \
libmad-0.15.1b/VERSION
libmad_dont_need_these = \
libmad-0.15.1b/msvc++/Makefile.am \
libmad-0.15.1b/msvc++/Makefile.in \
libmad-0.15.1b/msvc++/mad.h \
libmad-0.15.1b/msvc++/config.h \
libmad-0.15.1b/msvc++/libmad.dsp
tre072_manifest = \
tre-0.7.2/m4/tre_prog_cc_optimizations.m4 \
tre-0.7.2/m4/ax_check_sign.m4 \
tre-0.7.2/m4/Makefile.am \
tre-0.7.2/m4/Makefile.in \
tre-0.7.2/m4/vl_prog_cc_warnings.m4 \
tre-0.7.2/m4/ac_libtool_tags.m4 \
tre-0.7.2/m4/ax_decl_wchar_max.m4 \
tre-0.7.2/m4/ax_check_funcs_comp.m4 \
tre-0.7.2/po/Makevars \
tre-0.7.2/po/fi.po \
tre-0.7.2/po/LINGUAS \
tre-0.7.2/po/en@boldquot.header \
tre-0.7.2/po/en@quot.header \
tre-0.7.2/po/Rules-quot \
tre-0.7.2/po/remove-potcdate.sin \
tre-0.7.2/po/boldquot.sed \
tre-0.7.2/po/POTFILES.in \
tre-0.7.2/po/tre.pot \
tre-0.7.2/po/insert-header.sin \
tre-0.7.2/po/quot.sed \
tre-0.7.2/po/Makefile.in.in \
tre-0.7.2/doc/tre-api.html \
tre-0.7.2/doc/default.css \
tre-0.7.2/doc/Makefile.am \
tre-0.7.2/doc/Makefile.in \
tre-0.7.2/doc/agrep.1.in \
tre-0.7.2/doc/tre-syntax.html \
tre-0.7.2/lib/tre-config.h.in \
tre-0.7.2/lib/regex.h \
tre-0.7.2/lib/tre-filter.c \
tre-0.7.2/lib/tre-filter.h \
tre-0.7.2/lib/tre-match-approx.c \
tre-0.7.2/lib/README \
tre-0.7.2/lib/tre-match-utils.h \
tre-0.7.2/lib/xmalloc.c \
tre-0.7.2/lib/xmalloc.h \
tre-0.7.2/lib/tre-parse.c \
tre-0.7.2/lib/tre-parse.h \
tre-0.7.2/lib/tre-match-backtrack.c \
tre-0.7.2/lib/tre-internal.h \
tre-0.7.2/lib/regerror.c \
tre-0.7.2/lib/tre-compile.c \
tre-0.7.2/lib/tre-compile.h \
tre-0.7.2/lib/Makefile.am \
tre-0.7.2/lib/Makefile.in \
tre-0.7.2/lib/tre-match-parallel.c \
tre-0.7.2/lib/gettext.h \
tre-0.7.2/lib/tre-ast.c \
tre-0.7.2/lib/tre-ast.h \
tre-0.7.2/lib/tre-mem.c \
tre-0.7.2/lib/tre-mem.h \
tre-0.7.2/lib/regcomp.c \
tre-0.7.2/lib/regexec.c \
tre-0.7.2/lib/tre-stack.c \
tre-0.7.2/lib/tre-stack.h \
tre-0.7.2/src/Makefile.am \
tre-0.7.2/src/Makefile.in \
tre-0.7.2/src/agrep.c \
tre-0.7.2/NEWS \
tre-0.7.2/TODO \
tre-0.7.2/LICENSE \
tre-0.7.2/aclocal.m4 \
tre-0.7.2/tests/test-str-source.c \
tre-0.7.2/tests/randtest.c \
tre-0.7.2/tests/retest.c \
tre-0.7.2/tests/Makefile.am \
tre-0.7.2/tests/Makefile.in \
tre-0.7.2/tests/build-tests.sh \
tre-0.7.2/tests/bench.c \
tre-0.7.2/utils/compile \
tre-0.7.2/utils/depcomp \
tre-0.7.2/utils/build-rpm.sh \
tre-0.7.2/utils/ltmain.sh \
tre-0.7.2/utils/config.guess \
tre-0.7.2/utils/config.rpath \
tre-0.7.2/utils/install-sh \
tre-0.7.2/utils/autogen.sh \
tre-0.7.2/utils/config.sub \
tre-0.7.2/utils/missing \
tre-0.7.2/utils/mkinstalldirs \
tre-0.7.2/utils/Makefile.am \
tre-0.7.2/utils/Makefile.in \
tre-0.7.2/win32/tre-config.h \
tre-0.7.2/win32/retest.dsp \
tre-0.7.2/win32/config.h \
tre-0.7.2/win32/tre.def \
tre-0.7.2/win32/tre.dsp \
tre-0.7.2/win32/tre.dsw \
tre-0.7.2/README \
tre-0.7.2/THANKS \
tre-0.7.2/configure \
tre-0.7.2/configure.ac \
tre-0.7.2/tre.spec.in \
tre-0.7.2/Makefile.am \
tre-0.7.2/Makefile.in \
tre-0.7.2/config.h.in \
tre-0.7.2/python/example.py \
tre-0.7.2/python/tre-python.c \
tre-0.7.2/python/setup.py \
tre-0.7.2/AUTHORS \
tre-0.7.2/INSTALL \
tre-0.7.2/tre.pc.in \
tre-0.7.2/ABOUT-NLS \
tre-0.7.2/ChangeLog \
tre-0.7.2/COPYING
tre070_manifest = \
tre-0.7.0/m4/tre_prog_cc_optimizations.m4 \
tre-0.7.0/m4/ax_check_sign.m4 \
tre-0.7.0/m4/Makefile.am \
tre-0.7.0/m4/Makefile.in \
tre-0.7.0/m4/vl_prog_cc_warnings.m4 \
tre-0.7.0/m4/ac_libtool_tags.m4 \
tre-0.7.0/m4/ax_decl_wchar_max.m4 \
tre-0.7.0/m4/ax_check_funcs_comp.m4 \
tre-0.7.0/po/Makevars \
tre-0.7.0/po/fi.po \
tre-0.7.0/po/LINGUAS \
tre-0.7.0/po/en@boldquot.header \
tre-0.7.0/po/en@quot.header \
tre-0.7.0/po/Rules-quot \
tre-0.7.0/po/remove-potcdate.sin \
tre-0.7.0/po/boldquot.sed \
tre-0.7.0/po/POTFILES.in \
tre-0.7.0/po/fi.gmo \
tre-0.7.0/po/tre.pot \
tre-0.7.0/po/insert-header.sin \
tre-0.7.0/po/stamp-po \
tre-0.7.0/po/quot.sed \
tre-0.7.0/po/Makefile.in.in \
tre-0.7.0/doc/tre-api.html \
tre-0.7.0/doc/tre-syntax.html \
tre-0.7.0/lib/tre-config.h.in \
tre-0.7.0/lib/regex.h \
tre-0.7.0/lib/tre-match-approx.c \
tre-0.7.0/lib/README \
tre-0.7.0/lib/tre-match-utils.h \
tre-0.7.0/lib/xmalloc.c \
tre-0.7.0/lib/xmalloc.h \
tre-0.7.0/lib/tre-match-backtrack.c \
tre-0.7.0/lib/tre-internal.h \
tre-0.7.0/lib/regerror.c \
tre-0.7.0/lib/tre-compile.c \
tre-0.7.0/lib/Makefile.am \
tre-0.7.0/lib/Makefile.in \
tre-0.7.0/lib/tre-match-parallel.c \
tre-0.7.0/lib/gettext.h \
tre-0.7.0/lib/tre-mem.c \
tre-0.7.0/lib/tre-mem.h \
tre-0.7.0/lib/regcomp.c \
tre-0.7.0/lib/regexec.c \
tre-0.7.0/src/Makefile.am \
tre-0.7.0/src/Makefile.in \
tre-0.7.0/src/agrep.c \
tre-0.7.0/NEWS \
tre-0.7.0/TODO \
tre-0.7.0/LICENSE \
tre-0.7.0/aclocal.m4 \
tre-0.7.0/tests/test-str-source.c \
tre-0.7.0/tests/randtest.c \
tre-0.7.0/tests/retest.c \
tre-0.7.0/tests/Makefile.am \
tre-0.7.0/tests/Makefile.in \
tre-0.7.0/tests/bench.c \
tre-0.7.0/tests/test-approx.c \
tre-0.7.0/utils/compile \
tre-0.7.0/utils/depcomp \
tre-0.7.0/utils/build-rpm.sh \
tre-0.7.0/utils/ltmain.sh \
tre-0.7.0/utils/config.guess \
tre-0.7.0/utils/config.rpath \
tre-0.7.0/utils/install-sh \
tre-0.7.0/utils/autogen.sh \
tre-0.7.0/utils/config.sub \
tre-0.7.0/utils/missing \
tre-0.7.0/utils/mkinstalldirs \
tre-0.7.0/utils/Makefile.am \
tre-0.7.0/utils/Makefile.in \
tre-0.7.0/win32/tre-config.h \
tre-0.7.0/win32/retest.dsp \
tre-0.7.0/win32/config.h \
tre-0.7.0/win32/tre.def \
tre-0.7.0/win32/tre.dsp \
tre-0.7.0/win32/tre.dsw \
tre-0.7.0/README \
tre-0.7.0/THANKS \
tre-0.7.0/configure \
tre-0.7.0/configure.ac \
tre-0.7.0/tre.spec.in \
tre-0.7.0/Makefile.am \
tre-0.7.0/Makefile.in \
tre-0.7.0/config.h.in \
tre-0.7.0/python \
tre-0.7.0/python/setup.py.in \
tre-0.7.0/AUTHORS \
tre-0.7.0/INSTALL \
tre-0.7.0/tre.pc.in \
tre-0.7.0/ABOUT-NLS \
tre-0.7.0/ChangeLog \
tre-0.7.0/COPYING
man_MANS = \
streamripper.1
lib_manifest = \
lib/Makefile.am \
lib/Makefile.in \
lib/config.h.in \
lib/argv.c \
lib/cbuf2.c \
lib/cbuf2.h \
lib/charmaps.h \
lib/charset.c \
lib/charset.h \
lib/compat.h \
lib/config.h \
lib/confw32.h \
lib/debug.c \
lib/debug.h \
lib/errors.c \
lib/errors.h \
lib/external.c \
lib/external.h \
lib/filelib.c \
lib/filelib.h \
lib/findsep2.c \
lib/findsep.c \
lib/findsep.h \
lib/http.c \
lib/http.h \
lib/https.c \
lib/https.h \
lib/iconvert.c \
lib/ictest.c \
lib/list.h \
lib/mchar.c \
lib/mchar.h \
lib/parse.c \
lib/parse.h \
lib/prefs.c \
lib/prefs.h \
lib/relaylib.c \
lib/relaylib.h \
lib/rip_manager.c \
lib/rip_manager.h \
lib/ripaac.c \
lib/ripogg.c \
lib/ripogg.h \
lib/ripstream.c \
lib/ripstream.h \
lib/socklib.c \
lib/socklib.h \
lib/srconfig.h \
lib/srtypes.h \
lib/threadlib.c \
lib/threadlib.h \
lib/uce_dirent.h \
lib/utf8.c \
lib/utf8.h
EXTRA_DIST = \
config.rpath \
CHANGES \
parse_rules.txt \
fake_external_metadata.pl \
fetch_external_metadata.pl \
$(lib_manifest) \
$(libmad_manifest) \
$(man_MANS)
DIST_SUBDIRS =
streamripper_LDADD = \
lib/libstreamripper.a \
@FAAD_LIBS@ \
@LIBMAD@ \
@THREADLIBS@ \
@LTLIBICONV@ @LIBCHARSET@ \
@LIBIBERTY_LIBS@ \
@OGG_LIBS@ @VORBIS_LIBS@ \
@GLIB_LIBS@
# @CDK_LIBS@
cstreamripper_LDADD = \
lib/libstreamripper.a \
@FAAD_LIBS@ \
@LIBMAD@ \
@THREADLIBS@ \
@LTLIBICONV@ @LIBCHARSET@ \
@LIBIBERTY_LIBS@ \
@OGG_LIBS@ @VORBIS_LIBS@ \
@GLIB_LIBS@
# @CDK_LIBS@
ACLOCAL_AMFLAGS = -I m4
# =============================================================================
# Test targets (Unity/CMock tests in tests/ directory)
# =============================================================================
TEST_BUILD_DIR = tests/build
.PHONY: test test-build test-clean test-coverage test-unit test-integration test-e2e
# Build and run all tests
test t: test-build
@echo "Running all tests..."
cd $(TEST_BUILD_DIR) && ctest --output-on-failure
# Build tests only (no run)
test-build:
@echo "Building tests..."
@mkdir -p $(TEST_BUILD_DIR)
cd $(TEST_BUILD_DIR) && cmake .. && $(MAKE) -j$$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)
# Run unit tests only
test-unit: test-build
@echo "Running unit tests..."
cd $(TEST_BUILD_DIR) && ctest -R "test_" --output-on-failure
# Run integration tests only
test-integration: test-build
@echo "Running integration tests..."
cd $(TEST_BUILD_DIR) && ctest -R "integration_" --output-on-failure
# Run e2e tests only
test-e2e: test-build
@echo "Running e2e tests..."
cd $(TEST_BUILD_DIR) && ctest -R "e2e_" --output-on-failure
# Build and run tests with coverage
test-coverage coverage cover:
@echo "Building tests with coverage..."
@mkdir -p $(TEST_BUILD_DIR)
cd $(TEST_BUILD_DIR) && cmake -DENABLE_COVERAGE=ON .. && $(MAKE) -j$$(nproc 2>/dev/null || sysctl -n hw.ncpu 2>/dev/null || echo 4)
@echo "Running tests..."
cd $(TEST_BUILD_DIR) && ctest --output-on-failure
@echo "Generating coverage report..."
cd $(TEST_BUILD_DIR) && $(MAKE) coverage
@echo "Coverage report: $(TEST_BUILD_DIR)/coverage_html/index.html"
# Clean test build directory
test-clean:
@echo "Cleaning test build directory..."
rm -rf $(TEST_BUILD_DIR)
# Hook into automake's clean target
clean-local: test-clean