summaryrefslogtreecommitdiff
path: root/volk/lib/Makefile.am
blob: 97eb75680754d52f0772672434e3250debb0e451 (plain)
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
#
# Copyright 2008 Free Software Foundation, Inc.
# 
# This file is part of GNU Radio
# 
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
# 
# GNU Radio is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#

include $(top_srcdir)/Makefile.common

AM_CPPFLAGS = $(STD_DEFINES_AND_INCLUDES) $(CPPUNIT_CPPFLAGS) $(LV_CXXFLAGS)


# We build 2 libraries and 1 executable here.  One library contains
# everything except the libcppunit QA code, and one contains only the
# libcppunit-based QA code.  The C++ QA code is especially recommended
# when you have general purpose C or C++ code that may not get
# thoroughly exercised by building and running a GR block.  The
# executable runs the QA code at "make check" time.
#
# N.B., If there's a SWIG generated shared library and associated
# python code, it will be contained in ../python, not here.  (That
# code is conditionally built depending on the state of the
# --without-python configure option.)  However, the .i should be here
# next to the .h that it's based on.


# list of programs run by "make check" and "make distcheck"
TESTS = test_all


lib_LTLIBRARIES = \
	libvolk.la \
	libvolk_runtime.la \
	libvolk_qa.la


# ----------------------------------------------------------------
#                      The main library
# ----------------------------------------------------------------

universal_runtime_CODE = 	\
	volk_runtime.c	\
	volk_init.c \
	volk_rank_archs.c	

universal_CODE = 		\
	volk.c 			\
	volk_environment_init.c

generic_CODE = 		\
	volk_cpu_generic.cc

x86_CODE = 		\
	volk_cpu_x86.c

x86_SUBCODE = 		\
	cpuid_x86.S

x86_64_SUBCODE = 	\
	cpuid_x86_64.S

powerpc_CODE = \
	volk_cpu_powerpc.cc


if MD_CPU_generic
libvolk_la_SOURCES =	\
	$(generic_CODE)		\
	$(universal_CODE)
libvolk_runtime_la_SOURCES =	\
	$(generic_CODE)		\
	$(universal_runtime_CODE)

endif

if MD_CPU_x86
if MD_SUBCPU_x86_64
libvolk_la_SOURCES =	\
	$(x86_CODE)		\
	$(x86_64_SUBCODE)		\
	$(universal_CODE) 		

libvolk_runtime_la_SOURCES =	\
	$(x86_CODE)		\
	$(x86_64_SUBCODE)		\
	$(universal_runtime_CODE) 		
else
libvolk_la_SOURCES =	\
	$(x86_CODE)		\
	$(x86_SUBCODE)	\
	$(universal_CODE)

libvolk_runtime_la_SOURCES =	\
	$(x86_CODE)		\
	$(x86_SUBCODE)	\
	$(universal_runtime_CODE)
endif
endif


if MD_CPU_powerpc
libvolk_la_SOURCES =	\
	$(powerpc_CODE)		\
	$(universal_CODE)

libvolk_runtime_la_SOURCES =	\
	$(powerpc_CODE)		\
	$(universal_runtime_CODE)
endif



libvolk_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 
libvolk_runtime_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0

libvolk_la_LIBADD =



# ----------------------------------------------------------------
#        The QA library.  Note libvolk.la in LIBADD
# ----------------------------------------------------------------
libvolk_qa_la_SOURCES = \
	qa_volk.cc \
	qa_16s_quad_max_star_aligned16.cc \
	qa_32fc_dot_prod_aligned16.cc \
	qa_32fc_square_dist_aligned16.cc \
	qa_32fc_square_dist_scalar_mult_aligned16.cc \
	qa_32f_sum_of_poly_aligned16.cc \
	qa_32fc_index_max_aligned16.cc \
	qa_32f_index_max_aligned16.cc \
	qa_32fc_conjugate_dot_prod_aligned16.cc \
	qa_16s_permute_and_scalar_add_aligned16.cc \
	qa_16s_branch_4_state_8_aligned16.cc \
	qa_16s_max_star_horizontal_aligned16.cc \
	qa_16s_max_star_aligned16.cc \
	qa_16s_add_quad_aligned16.cc \
	qa_32f_add_aligned16.cc \
	qa_32f_subtract_aligned16.cc \
	qa_32f_max_aligned16.cc \
	qa_32f_min_aligned16.cc \
	qa_64f_max_aligned16.cc \
	qa_64f_min_aligned16.cc \
	qa_32s_and_aligned16.cc \
	qa_32s_or_aligned16.cc \
	qa_32f_dot_prod_aligned16.cc \
	qa_32f_dot_prod_unaligned16.cc \
	qa_32f_fm_detect_aligned16.cc \
	qa_32fc_32f_multiply_aligned16.cc \
	qa_32fc_multiply_aligned16.cc \
	qa_32f_divide_aligned16.cc \
	qa_32f_multiply_aligned16.cc \
	qa_32f_sqrt_aligned16.cc \
	qa_8sc_multiply_conjugate_16sc_aligned16.cc \
	qa_8sc_multiply_conjugate_32fc_aligned16.cc \
	qa_32u_popcnt_aligned16.cc \
	qa_64u_popcnt_aligned16.cc \
	qa_64u_byteswap_aligned16.cc \
	qa_8sc_deinterleave_32f_aligned16.cc \
	qa_16sc_deinterleave_32f_aligned16.cc \
	qa_8sc_deinterleave_16s_aligned16.cc \
	qa_32f_interleave_32fc_aligned16.cc \
	qa_16u_byteswap_aligned16.cc \
	qa_16sc_deinterleave_16s_aligned16.cc \
	qa_32fc_deinterleave_real_32f_aligned16.cc \
	qa_32fc_magnitude_32f_aligned16.cc \
	qa_32fc_deinterleave_real_64f_aligned16.cc \
	qa_32fc_deinterleave_real_16s_aligned16.cc \
	qa_32fc_magnitude_16s_aligned16.cc \
	qa_32fc_deinterleave_32f_aligned16.cc \
	qa_8sc_deinterleave_real_8s_aligned16.cc \
	qa_32fc_deinterleave_64f_aligned16.cc \
	qa_32f_interleave_16sc_aligned16.cc \
	qa_16sc_deinterleave_real_8s_aligned16.cc \
	qa_16sc_deinterleave_real_32f_aligned16.cc \
	qa_16sc_magnitude_32f_aligned16.cc \
	qa_32u_byteswap_aligned16.cc \
	qa_16sc_deinterleave_real_16s_aligned16.cc \
	qa_8sc_deinterleave_real_32f_aligned16.cc \
	qa_16sc_magnitude_16s_aligned16.cc \
	qa_32f_normalize_aligned16.cc \
	qa_8sc_deinterleave_real_16s_aligned16.cc \
	qa_16s_convert_32f_aligned16.cc \
	qa_16s_convert_32f_unaligned16.cc \
	qa_16s_convert_8s_aligned16.cc \
	qa_16s_convert_8s_unaligned16.cc \
	qa_32f_convert_16s_aligned16.cc \
	qa_32f_convert_16s_unaligned16.cc \
	qa_32f_convert_32s_aligned16.cc \
	qa_32f_convert_32s_unaligned16.cc \
	qa_32f_convert_64f_aligned16.cc \
	qa_32f_convert_64f_unaligned16.cc \
	qa_32f_convert_8s_aligned16.cc \
	qa_32f_convert_8s_unaligned16.cc \
	qa_32s_convert_32f_aligned16.cc \
	qa_32s_convert_32f_unaligned16.cc \
	qa_64f_convert_32f_aligned16.cc \
	qa_64f_convert_32f_unaligned16.cc \
	qa_8s_convert_16s_aligned16.cc \
	qa_8s_convert_16s_unaligned16.cc \
	qa_8s_convert_32f_aligned16.cc \
	qa_8s_convert_32f_unaligned16.cc \
	qa_32fc_32f_power_32fc_aligned16.cc \
	qa_32f_power_aligned16.cc \
	qa_32fc_atan2_32f_aligned16.cc \
	qa_32fc_power_spectral_density_32f_aligned16.cc \
	qa_32fc_power_spectrum_32f_aligned16.cc \
	qa_32f_calc_spectral_noise_floor_aligned16.cc \
	qa_32f_accumulator_aligned16.cc \
	qa_32f_stddev_aligned16.cc \
	qa_32f_stddev_and_mean_aligned16.cc

libvolk_qa_la_LDFLAGS = $(NO_UNDEFINED) -version-info 0:0:0 

libvolk_qa_la_LIBADD = \
	libvolk.la \
	libvolk_runtime.la \
	$(CPPUNIT_LIBS)

# ----------------------------------------------------------------
# headers that don't get installed
# ----------------------------------------------------------------
noinst_HEADERS = \
	volk_init.h \
	qa_volk.h \
	qa_16s_quad_max_star_aligned16.h \
	qa_32fc_dot_prod_aligned16.h \
	qa_32fc_square_dist_aligned16.h \
	qa_32fc_square_dist_scalar_mult_aligned16.h \
	qa_32f_sum_of_poly_aligned16.h \
	qa_32fc_index_max_aligned16.h \
	qa_32f_index_max_aligned16.h \
	qa_32fc_conjugate_dot_prod_aligned16.h \
	qa_16s_permute_and_scalar_add_aligned16.h \
	qa_16s_branch_4_state_8_aligned16.h \
	qa_16s_max_star_horizontal_aligned16.h \
	qa_16s_max_star_aligned16.h \
	qa_16s_add_quad_aligned16.h \
	qa_32f_add_aligned16.h \
	qa_32f_subtract_aligned16.h \
	qa_32f_max_aligned16.h \
	qa_32f_min_aligned16.h \
	qa_64f_max_aligned16.h \
	qa_64f_min_aligned16.h \
	qa_32s_and_aligned16.h \
	qa_32s_or_aligned16.h \
	qa_32f_dot_prod_aligned16.h \
	qa_32f_dot_prod_unaligned16.h \
	qa_32f_fm_detect_aligned16.h \
	qa_32fc_32f_multiply_aligned16.h \
	qa_32fc_multiply_aligned16.h \
	qa_32f_divide_aligned16.h \
	qa_32f_multiply_aligned16.h \
	qa_32f_sqrt_aligned16.h \
	qa_8sc_multiply_conjugate_16sc_aligned16.h \
	qa_8sc_multiply_conjugate_32fc_aligned16.h \
	qa_32u_popcnt_aligned16.h \
	qa_64u_popcnt_aligned16.h \
	qa_64u_byteswap_aligned16.h \
	qa_8sc_deinterleave_32f_aligned16.h \
	qa_16sc_deinterleave_32f_aligned16.h \
	qa_8sc_deinterleave_16s_aligned16.h \
	qa_32f_interleave_32fc_aligned16.h \
	qa_16u_byteswap_aligned16.h \
	qa_16sc_deinterleave_16s_aligned16.h \
	qa_32fc_deinterleave_real_32f_aligned16.h \
	qa_32fc_magnitude_32f_aligned16.h \
	qa_32fc_deinterleave_real_64f_aligned16.h \
	qa_32fc_deinterleave_real_16s_aligned16.h \
	qa_32fc_magnitude_16s_aligned16.h \
	qa_32fc_deinterleave_32f_aligned16.h \
	qa_8sc_deinterleave_real_8s_aligned16.h \
	qa_32fc_deinterleave_64f_aligned16.h \
	qa_32f_interleave_16sc_aligned16.h \
	qa_16sc_deinterleave_real_8s_aligned16.h \
	qa_16sc_deinterleave_real_32f_aligned16.h \
	qa_16sc_magnitude_32f_aligned16.h \
	qa_32u_byteswap_aligned16.h \
	qa_16sc_deinterleave_real_16s_aligned16.h \
	qa_8sc_deinterleave_real_32f_aligned16.h \
	qa_16sc_magnitude_16s_aligned16.h \
	qa_32f_normalize_aligned16.h \
	qa_8sc_deinterleave_real_16s_aligned16.h \
	qa_16s_convert_32f_aligned16.h \
	qa_16s_convert_32f_unaligned16.h \
	qa_16s_convert_8s_aligned16.h \
	qa_16s_convert_8s_unaligned16.h \
	qa_32f_convert_16s_aligned16.h \
	qa_32f_convert_16s_unaligned16.h \
	qa_32f_convert_32s_aligned16.h \
	qa_32f_convert_32s_unaligned16.h \
	qa_32f_convert_64f_aligned16.h \
	qa_32f_convert_64f_unaligned16.h \
	qa_32f_convert_8s_aligned16.h \
	qa_32f_convert_8s_unaligned16.h \
	qa_32s_convert_32f_aligned16.h \
	qa_32s_convert_32f_unaligned16.h \
	qa_64f_convert_32f_aligned16.h \
	qa_64f_convert_32f_unaligned16.h \
	qa_8s_convert_16s_aligned16.h \
	qa_8s_convert_16s_unaligned16.h \
	qa_8s_convert_32f_aligned16.h \
	qa_8s_convert_32f_unaligned16.h \
	qa_32fc_32f_power_32fc_aligned16.h \
	qa_32f_power_aligned16.h \
	qa_32fc_atan2_32f_aligned16.h \
	qa_32fc_power_spectral_density_32f_aligned16.h \
	qa_32fc_power_spectrum_32f_aligned16.h \
	qa_32f_calc_spectral_noise_floor_aligned16.h \
	qa_32f_accumulator_aligned16.h \
	qa_32f_stddev_aligned16.h \
	qa_32f_stddev_and_mean_aligned16.h


# ----------------------------------------------------------------
# Our test program
# ----------------------------------------------------------------
noinst_PROGRAMS = \
	test_all

test_all_SOURCES = test_all.cc
test_all_LDADD   = libvolk_qa.la


distclean-local: 
	rm -f volk.c
	rm -f volk_cpu_generic.c
	rm -f volk_cpu_powerpc.c
	rm -f volk_cpu_x86.c
	rm -f volk_init.c
	rm -f volk_init.h
	rm -f volk_mktables
	rm -f volk_mktables.c
	rm -f volk_proccpu_sim.c
	rm -f volk_runtime.c
	rm -f volk_tables.h
	rm -f volk_environment_init.c
#SUBDIRS = 

#ifdef BUILD_SSE
#SUBDIRS += sse
#elif BUILD_SPU
#SUBDIRS += spu
#else
#SUBDIRS += port
#endif