forked from tvheadend/tvheadend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.tests
167 lines (114 loc) · 10.4 KB
/
Makefile.tests
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
include $(dir $(lastword $(MAKEFILE_LIST))).config.mk
INC=-Ibuild.linux -Isrc
CFLAGS += -g -DENABLE_TRACE=1
CFLAGS += -Wall -Wwrite-strings -Wno-deprecated-declarations
CFLAGS += -Wmissing-prototypes
CFLAGS += -fms-extensions -funsigned-char -fno-strict-aliasing
LIBS += -lcheck_pic -pthread -lrt -lm -lsubunit
ifdef COVERAGE
CFLAGS += --coverage
LIBS += -lgcov
endif
clean:
rm -f tests/*.o tests/viterbiTest tests/viterbiTest-neu tests/ficHandlerTest tests/mp4processorTest tests/firecheckTest tests/eep_protectionTest tests/sdr_dab_service_instance_Test tests/input_sdrTest tests/sdr_dab_basic_demodulationTest
tests: tests/viterbiTest tests/ficHandlerTest tests/mp4processorTest tests/firecheckTest tests/eep_protectionTest tests/sdr_dab_service_instance_Test tests/input_sdrTest tests/sdr_dab_basic_demodulationTest
cd tests && ./viterbiTest
cd tests && ./ficHandlerTest
cd tests && ./mp4processorTest
cd tests && ./firecheckTest
cd tests && ./eep_protectionTest
cd tests && ./sdr_dab_service_instance_Test
cd tests && ./input_sdrTest
cd tests && ./sdr_dab_basic_demodulationTest
tests/utilities.o: tests/utilities.c
gcc $(INC) $(CFLAGS) -c tests/utilities.c -o $@
tests/packet.o: src/packet.c
gcc $(INC) $(CFLAGS) -c src/packet.c -o $@
tests/services.o: tests/services.c
gcc $(INC) $(CFLAGS) -c tests/services.c -o $@
tests/streaming.o: tests/streaming.c
gcc $(INC) $(CFLAGS) -c tests/streaming.c -o $@
tests/viterbiTest.o: tests/input/dab/rtlsdr/viterbi_768/viterbiTest.c
gcc $(INC) -Isrc/input/dab/rtlsdr/viterbi_768/ $(CFLAGS) -c tests/input/dab/rtlsdr/viterbi_768/viterbiTest.c -o $@
tests/viterbi-768.o: src/input/dab/rtlsdr/viterbi_768/viterbi-768.c
gcc $(INC) -Isrc/input/dab/rtlsdr/viterbi_768/ $(CFLAGS) -c src/input/dab/rtlsdr/viterbi_768/viterbi-768.c -o $@
tests/viterbi-neu.o: src/input/dab/rtlsdr/viterbi_768/viterbi-neu.c
gcc $(INC) -Isrc/input/dab/rtlsdr/viterbi_768/ $(CFLAGS) -c src/input/dab/rtlsdr/viterbi_768/viterbi-neu.c -o $@
tests/spiral-no-sse.o: src/input/dab/rtlsdr/viterbi_768/spiral-no-sse.c
gcc $(INC) -Isrc/input/dab/rtlsdr/viterbi_768/ $(CFLAGS) -c src/input/dab/rtlsdr/viterbi_768/spiral-no-sse.c -o $@
tests/spiral-neon.o: src/input/dab/rtlsdr/viterbi_768/spiral-neon.c
gcc $(INC) -Isrc/input/dab/rtlsdr/viterbi_768/ $(CFLAGS) -c src/input/dab/rtlsdr/viterbi_768/spiral-neon.c -o $@
tests/viterbiTest: tests/viterbiTest.o tests/viterbi-768.o tests/spiral-no-sse.o tests/spiral-neon.o
gcc $(CFLAGS) tests/viterbiTest.o tests/viterbi-768.o tests/spiral-no-sse.o tests/spiral-neon.o $(LIBS) -o $@
tests/viterbiTest-neu: tests/viterbiTest.o tests/viterbi-neu.o
gcc $(CFLAGS) tests/viterbiTest.o tests/viterbi-neu.o $(LIBS) -o $@
tests/charsets.o: src/input/dab/charsets.c
gcc $(INC) -Isrc/input/dab $(CFLAGS) -c src/input/dab/charsets.c -o $@
tests/protection.o: src/input/dab/rtlsdr/protection.c
gcc $(INC) -Isrc/input/dab/rtlsdr $(CFLAGS) -c src/input/dab/rtlsdr/protection.c -o $@
tests/fic_protection.o: src/input/dab/rtlsdr/fic_protection.c
gcc $(INC) -Isrc/input/dab/rtlsdr $(CFLAGS) -c src/input/dab/rtlsdr/fic_protection.c -o $@
tests/ficHandler.o: src/input/dab/rtlsdr/ficHandler.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c src/input/dab/rtlsdr/ficHandler.c -o $@
tests/protTables.o: src/input/dab/rtlsdr/protTables.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c src/input/dab/rtlsdr/protTables.c -o $@
tests/ficHandlerTest.o: tests/input/dab/rtlsdr/ficHandlerTest.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c tests/input/dab/rtlsdr/ficHandlerTest.c -o $@
tests/fib-processor.o: src/input/dab/fib-processor.c
gcc $(INC) -Isrc/input/dab $(CFLAGS) -c src/input/dab/fib-processor.c -o $@
tests/fib-processorMock.o: tests/input/dab/rtlsdr/fib-processorMock.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c tests/input/dab/rtlsdr/fib-processorMock.c -o $@
tests/ficHandlerTest: tests/ficHandlerTest.o tests/ficHandler.o tests/viterbi-768.o tests/spiral-no-sse.o tests/spiral-neon.o tests/protTables.o tests/utilities.o tests/fib-processor.o tests/fic_protection.o tests/protection.o tests/dab_service.o tests/charsets.o
gcc $(CFLAGS) tests/ficHandlerTest.o tests/ficHandler.o tests/viterbi-768.o tests/spiral-no-sse.o tests/spiral-neon.o tests/protTables.o tests/utilities.o tests/fib-processor.o tests/fic_protection.o tests/protection.o tests/dab_service.o tests/charsets.o $(LIBS) -o $@
tests/firecheck.o: src/input/dab/rtlsdr/firecheck.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c src/input/dab/rtlsdr/firecheck.c -o $@
tests/reed-solomon.o: src/input/dab/rtlsdr/reed-solomon.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c src/input/dab/rtlsdr/reed-solomon.c -o $@
tests/mp4processor.o: src/input/dab/mp4processor.c
gcc $(INC) -Isrc/input/dab/ $(CFLAGS) -c src/input/dab/mp4processor.c -o $@
tests/mp4processorTest.o: tests/input/dab/mp4processorTest.c
gcc $(INC) -Isrc/input/dab/ $(CFLAGS) -c tests/input/dab/mp4processorTest.c -o $@
tests/mp4processorTest: tests/mp4processorTest.o tests/mp4processor.o tests/utilities.o tests/firecheck.o tests/reed-solomon.o
gcc $(CFLAGS) tests/mp4processorTest.o tests/mp4processor.o tests/utilities.o tests/firecheck.o tests/reed-solomon.o $(LIBS) -o $@
tests/firecheckTest.o: tests/input/dab/rtlsdr/firecheckTest.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c tests/input/dab/rtlsdr/firecheckTest.c -o $@
tests/firecheckTest: tests/firecheckTest.o tests/firecheck.o tests/utilities.o
gcc $(CFLAGS) tests/firecheckTest.o tests/firecheck.o tests/utilities.o $(LIBS) -o $@
tests/eep_protection.o: src/input/dab/rtlsdr/eep_protection.c
gcc $(INC) -Isrc/input/dab/rtlsdr $(CFLAGS) -c src/input/dab/rtlsdr/eep_protection.c -o $@
tests/uep_protection.o: src/input/dab/rtlsdr/uep_protection.c
gcc $(INC) -Isrc/input/dab/rtlsdr $(CFLAGS) -c src/input/dab/rtlsdr/uep_protection.c -o $@
tests/eep_protectionTest.o: tests/input/dab/rtlsdr/eep_protectionTest.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c tests/input/dab/rtlsdr/eep_protectionTest.c -o $@
tests/eep_protectionTest: tests/eep_protectionTest.o tests/protection.o tests/eep_protection.o tests/protTables.o tests/utilities.o tests/viterbi-768.o tests/spiral-no-sse.o tests/spiral-neon.o
gcc $(CFLAGS) tests/eep_protectionTest.o tests/protection.o tests/eep_protection.o tests/protTables.o tests/utilities.o tests/viterbi-768.o tests/spiral-no-sse.o tests/spiral-neon.o $(LIBS) -o $@
tests/sdr_dab_service_instance.o: src/input/dab/rtlsdr/sdr_dab_service_instance.c
gcc $(INC) -Isrc/input/dab/rtlsdr $(CFLAGS) -c src/input/dab/rtlsdr/sdr_dab_service_instance.c -o $@
tests/sdr_dab_service_instance_Test.o: tests/input/dab/rtlsdr/sdr_dab_service_instance_Test.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c tests/input/dab/rtlsdr/sdr_dab_service_instance_Test.c -o $@
tests/sdr_dab_service_instance_Test: tests/sdr_dab_service_instance_Test.o tests/sdr_dab_service_instance.o tests/protection.o tests/eep_protection.o tests/uep_protection.o tests/protTables.o tests/utilities.o tests/viterbi-768.o tests/spiral-no-sse.o tests/spiral-neon.o tests/mp4processor.o tests/firecheck.o tests/reed-solomon.o tests/services.o tests/packet.o tests/streaming.o tests/tvh_thread.o
gcc $(CFLAGS) tests/sdr_dab_service_instance_Test.o tests/sdr_dab_service_instance.o tests/protection.o tests/eep_protection.o tests/uep_protection.o tests/protTables.o tests/utilities.o tests/viterbi-768.o tests/spiral-no-sse.o tests/spiral-neon.o tests/mp4processor.o tests/firecheck.o tests/reed-solomon.o tests/services.o tests/packet.o tests/streaming.o tests/tvh_thread.o $(LIBS) -lpthread -o $@
tests/phasereference.o: src/input/dab/rtlsdr/phasereference.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c src/input/dab/rtlsdr/phasereference.c -o $@
tests/sdr_fifo.o: src/input/dab/rtlsdr/sdr_fifo.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c src/input/dab/rtlsdr/sdr_fifo.c -o $@
tests/input_sdr.o: src/input/dab/rtlsdr/input_sdr.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c src/input/dab/rtlsdr/input_sdr.c -o $@
tests/ofdmDecoder.o: src/input/dab/rtlsdr/ofdmDecoder.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -DDAB_SINGLE_THREAD -c src/input/dab/rtlsdr/ofdmDecoder.c -o $@
# tests/tvhpoll.o: src/tvhpoll.c
# gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c src/tvhpoll.c -o $@
tests/dab_service.o: tests/dab_service.c
gcc $(INC) $(CFLAGS) -c tests/dab_service.c -o $@
tests/tvh_thread.o: tests/tvh_thread.c
gcc $(INC) $(CFLAGS) -c tests/tvh_thread.c -o $@
tests/input_sdrTest.o: tests/input/dab/rtlsdr/input_sdrTest.c
gcc $(INC) -Isrc/input/dab/rtlsdr $(CFLAGS) -c tests/input/dab/rtlsdr/input_sdrTest.c -o $@
tests/input_sdrTest: tests/input_sdrTest.o tests/input_sdr.o tests/ficHandler.o tests/utilities.o tests/protection.o tests/viterbi-768.o tests/phasereference.o tests/sdr_fifo.o tests/fib-processorMock.o tests/spiral-neon.o tests/spiral-no-sse.o tests/fic_protection.o tests/ofdmDecoder.o tests/protTables.o
gcc $(CFLAGS) tests/input_sdrTest.o tests/input_sdr.o tests/ficHandler.o tests/utilities.o tests/protection.o tests/viterbi-768.o tests/phasereference.o tests/sdr_fifo.o tests/fib-processorMock.o tests/spiral-neon.o tests/spiral-no-sse.o tests/fic_protection.o tests/ofdmDecoder.o tests/protTables.o $(LIBS) -lm -lfftw3f -o $@
tests/sdr_dab_basic_demodulation.o: src/input/dab/rtlsdr/sdr_dab_basic_demodulation.c
gcc $(INC) -Isrc/input/dab/rtlsdr $(CFLAGS) -c src/input/dab/rtlsdr/sdr_dab_basic_demodulation.c -o $@
tests/sdr_dab_basic_demodulationTest.o: tests/input/dab/rtlsdr/sdr_dab_basic_demodulationTest.c
gcc $(INC) -Isrc/input/dab/rtlsdr/ $(CFLAGS) -c tests/input/dab/rtlsdr/sdr_dab_basic_demodulationTest.c -o $@
tests/sdr_dab_basic_demodulationTest: tests/sdr_dab_basic_demodulation.o tests/sdr_dab_basic_demodulationTest.o tests/input_sdr.o tests/ficHandler.o tests/utilities.o tests/protection.o tests/viterbi-768.o tests/phasereference.o tests/sdr_fifo.o tests/fib-processor.o tests/spiral-neon.o tests/spiral-no-sse.o tests/fic_protection.o tests/ofdmDecoder.o tests/protTables.o tests/tvh_thread.o tests/dab_service.o tests/charsets.o
gcc $(CFLAGS) tests/sdr_dab_basic_demodulation.o tests/sdr_dab_basic_demodulationTest.o tests/input_sdr.o tests/ficHandler.o tests/utilities.o tests/protection.o tests/viterbi-768.o tests/phasereference.o tests/sdr_fifo.o tests/fib-processor.o tests/spiral-neon.o tests/spiral-no-sse.o tests/fic_protection.o tests/ofdmDecoder.o tests/protTables.o tests/tvh_thread.o tests/dab_service.o tests/charsets.o $(LIBS) -lm -lfftw3f -o $@