blob: 1d8e270b33b17d74b839ee73b33bdc3866d8e5bd [file] [log] [blame]
Damjan Marion7cd468a2016-12-19 23:05:39 +01001# Copyright (c) 2015 Cisco and/or its affiliates.
2# Licensed under the Apache License, Version 2.0 (the "License");
3# you may not use this file except in compliance with the License.
4# You may obtain a copy of the License at:
5#
6# http://www.apache.org/licenses/LICENSE-2.0
7#
8# Unless required by applicable law or agreed to in writing, software
9# distributed under the License is distributed on an "AS IS" BASIS,
10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11# See the License for the specific language governing permissions and
12# limitations under the License.
13
Damjan Marion724f64c2017-01-11 11:11:00 +010014lib_LTLIBRARIES += libvppinfra.la
Damjan Marion7cd468a2016-12-19 23:05:39 +010015
Dave Barach310518e2017-10-30 09:42:54 -040016TESTS =
Damjan Marion7cd468a2016-12-19 23:05:39 +010017
18if ENABLE_TESTS
19TESTS += test_bihash_template \
Dave Barach310518e2017-10-30 09:42:54 -040020 test_bihash_vec88 \
21 test_cuckoo_bihash \
22 test_cuckoo_template\
Damjan Marion7cd468a2016-12-19 23:05:39 +010023 test_dlist \
Damjan Marion7cd468a2016-12-19 23:05:39 +010024 test_elf \
Dave Barachb7f1faa2017-08-29 11:43:37 -040025 test_elog \
Damjan Marion7cd468a2016-12-19 23:05:39 +010026 test_fifo \
Pierre Pfister953f5512018-01-12 09:41:16 +010027 test_flowhash_template \
Damjan Marion7cd468a2016-12-19 23:05:39 +010028 test_format \
Dave Barachb7f1faa2017-08-29 11:43:37 -040029 test_fpool \
Damjan Marion7cd468a2016-12-19 23:05:39 +010030 test_hash \
31 test_heap \
32 test_longjmp \
33 test_macros \
Dave Barache9d91702017-11-29 16:59:01 -050034 test_maplog \
Damjan Marion7cd468a2016-12-19 23:05:39 +010035 test_mheap \
36 test_pool_iterate \
37 test_ptclosure \
38 test_random \
39 test_random_isaac \
40 test_serialize \
41 test_slist \
42 test_socket \
43 test_time \
Dave Baracha98c4032018-06-06 10:52:08 -040044 test_time_range \
Damjan Marion7cd468a2016-12-19 23:05:39 +010045 test_timing_wheel \
Dave Barach8e8f98c2017-02-03 11:58:53 -050046 test_tw_timer \
Dave Barach8d6ef602018-01-30 14:12:31 -050047 test_valloc \
Damjan Marion7cd468a2016-12-19 23:05:39 +010048 test_vec \
Neale Ranns32e1c012016-11-22 17:07:28 +000049 test_zvec
Damjan Marion7cd468a2016-12-19 23:05:39 +010050endif
51
52noinst_PROGRAMS = $(TESTS)
53check_PROGRAMS = $(TESTS)
54
55test_bihash_template_SOURCES = vppinfra/test_bihash_template.c
Dave Barach310518e2017-10-30 09:42:54 -040056test_bihash_vec88_SOURCES = vppinfra/test_bihash_vec88.c
Klement Sekera470a0112017-03-08 05:21:24 +010057test_cuckoo_template_SOURCES = vppinfra/test_cuckoo_template.c
58test_cuckoo_bihash_SOURCES = vppinfra/test_cuckoo_bihash.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010059test_dlist_SOURCES = vppinfra/test_dlist.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010060test_elf_SOURCES = vppinfra/test_elf.c
Dave Barachb7f1faa2017-08-29 11:43:37 -040061test_elog_SOURCES = vppinfra/test_elog.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010062test_fifo_SOURCES = vppinfra/test_fifo.c
Pierre Pfister953f5512018-01-12 09:41:16 +010063test_flowhash_template_SOURCES = vppinfra/test_flowhash_template.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010064test_format_SOURCES = vppinfra/test_format.c
Dave Barachb7f1faa2017-08-29 11:43:37 -040065test_fpool_SOURCES = vppinfra/test_fpool.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010066test_hash_SOURCES = vppinfra/test_hash.c
67test_heap_SOURCES = vppinfra/test_heap.c
68test_longjmp_SOURCES = vppinfra/test_longjmp.c
69test_macros_SOURCES = vppinfra/test_macros.c
Dave Barache9d91702017-11-29 16:59:01 -050070test_maplog_SOURCES = vppinfra/test_maplog.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010071test_mheap_SOURCES = vppinfra/test_mheap.c
72test_pool_iterate_SOURCES = vppinfra/test_pool_iterate.c
73test_ptclosure_SOURCES = vppinfra/test_ptclosure.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010074test_random_isaac_SOURCES = vppinfra/test_random_isaac.c
Dave Barachb7f1faa2017-08-29 11:43:37 -040075test_random_SOURCES = vppinfra/test_random.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010076test_serialize_SOURCES = vppinfra/test_serialize.c
77test_slist_SOURCES = vppinfra/test_slist.c
78test_socket_SOURCES = vppinfra/test_socket.c
79test_time_SOURCES = vppinfra/test_time.c
Dave Baracha98c4032018-06-06 10:52:08 -040080test_time_range_SOURCES = vppinfra/test_time_range.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010081test_timing_wheel_SOURCES = vppinfra/test_timing_wheel.c
Dave Barach8e8f98c2017-02-03 11:58:53 -050082test_tw_timer_SOURCES = vppinfra/test_tw_timer.c
Dave Barach8d6ef602018-01-30 14:12:31 -050083test_valloc_SOURCES = vppinfra/test_valloc.c
Damjan Marion7cd468a2016-12-19 23:05:39 +010084test_vec_SOURCES = vppinfra/test_vec.c
85test_zvec_SOURCES = vppinfra/test_zvec.c
86
87# All unit tests use ASSERT for failure
88# So we'll need -DDEBUG to enable ASSERTs
89test_bihash_template_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Dave Barach310518e2017-10-30 09:42:54 -040090test_bihash_vec88_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Klement Sekera470a0112017-03-08 05:21:24 +010091test_cuckoo_template_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
92test_cuckoo_bihash_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Damjan Marion7cd468a2016-12-19 23:05:39 +010093test_dlist_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Damjan Marion7cd468a2016-12-19 23:05:39 +010094test_elf_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Dave Barachb7f1faa2017-08-29 11:43:37 -040095test_elog_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Damjan Marion7cd468a2016-12-19 23:05:39 +010096test_fifo_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Pierre Pfister953f5512018-01-12 09:41:16 +010097test_flowhash_template_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Damjan Marion7cd468a2016-12-19 23:05:39 +010098test_format_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Dave Barachb7f1faa2017-08-29 11:43:37 -040099test_fpool_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Damjan Marion7cd468a2016-12-19 23:05:39 +0100100test_hash_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
101test_heap_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
102test_longjmp_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
103test_macros_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Dave Barache9d91702017-11-29 16:59:01 -0500104test_maplog_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Damjan Marion7cd468a2016-12-19 23:05:39 +0100105test_mheap_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
106test_pool_iterate_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
107test_ptclosure_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
108test_random_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
109test_random_isaac_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Damjan Marion7cd468a2016-12-19 23:05:39 +0100110test_serialize_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
111test_slist_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Dave Barachb7f1faa2017-08-29 11:43:37 -0400112test_socket_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Damjan Marion7cd468a2016-12-19 23:05:39 +0100113test_time_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
114test_timing_wheel_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Dave Barach8e8f98c2017-02-03 11:58:53 -0500115test_tw_timer_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Dave Barach8d6ef602018-01-30 14:12:31 -0500116test_valloc_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
Damjan Marion7cd468a2016-12-19 23:05:39 +0100117test_vec_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
118test_zvec_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
119
Dave Barach9466c452018-08-24 17:21:14 -0400120test_bihash_template_LDADD = libvppinfra.la -lpthread
Dave Barach310518e2017-10-30 09:42:54 -0400121test_bihash_vec88_LDADD = libvppinfra.la
Klement Sekera470a0112017-03-08 05:21:24 +0100122test_cuckoo_template_LDADD = libvppinfra.la
123test_cuckoo_bihash_LDADD = libvppinfra.la
Damjan Marion7cd468a2016-12-19 23:05:39 +0100124test_dlist_LDADD = libvppinfra.la
Damjan Marion7cd468a2016-12-19 23:05:39 +0100125test_elf_LDADD = libvppinfra.la
Dave Barachb7f1faa2017-08-29 11:43:37 -0400126test_elog_LDADD = libvppinfra.la
Damjan Marion7cd468a2016-12-19 23:05:39 +0100127test_fifo_LDADD = libvppinfra.la
Pierre Pfister953f5512018-01-12 09:41:16 +0100128test_flowhash_template_LDADD = libvppinfra.la
Damjan Marion7cd468a2016-12-19 23:05:39 +0100129test_format_LDADD = libvppinfra.la
Dave Barachb7f1faa2017-08-29 11:43:37 -0400130test_fpool_LDADD = libvppinfra.la
Damjan Marion7cd468a2016-12-19 23:05:39 +0100131test_hash_LDADD = libvppinfra.la
132test_heap_LDADD = libvppinfra.la
133test_longjmp_LDADD = libvppinfra.la
134test_macros_LDADD = libvppinfra.la
Dave Barache9d91702017-11-29 16:59:01 -0500135test_maplog_LDADD = libvppinfra.la
Damjan Marion7cd468a2016-12-19 23:05:39 +0100136test_mheap_LDADD = libvppinfra.la
137test_pool_iterate_LDADD = libvppinfra.la
138test_ptclosure_LDADD = libvppinfra.la
Damjan Marion7cd468a2016-12-19 23:05:39 +0100139test_random_isaac_LDADD = libvppinfra.la
Dave Barachb7f1faa2017-08-29 11:43:37 -0400140test_random_LDADD = libvppinfra.la
Damjan Marion7cd468a2016-12-19 23:05:39 +0100141test_serialize_LDADD = libvppinfra.la
142test_slist_LDADD = libvppinfra.la
143test_socket_LDADD = libvppinfra.la
144test_time_LDADD = libvppinfra.la -lm
Dave Baracha98c4032018-06-06 10:52:08 -0400145test_time_range_LDADD = libvppinfra.la -lm
Damjan Marion7cd468a2016-12-19 23:05:39 +0100146test_timing_wheel_LDADD = libvppinfra.la -lm
Dave Barach8e8f98c2017-02-03 11:58:53 -0500147test_tw_timer_LDADD = libvppinfra.la
Dave Barach8d6ef602018-01-30 14:12:31 -0500148test_valloc_LDADD = libvppinfra.la
Damjan Marion7cd468a2016-12-19 23:05:39 +0100149test_vec_LDADD = libvppinfra.la
150test_zvec_LDADD = libvppinfra.la
151
152test_bihash_template_LDFLAGS = -static
Dave Barach310518e2017-10-30 09:42:54 -0400153test_bihash_vec88_LDFLAGS = -static
Klement Sekera470a0112017-03-08 05:21:24 +0100154test_cuckoo_template_LDFLAGS = -static
155test_cuckoo_bihash_LDFLAGS = -static -lpthread
Damjan Marion7cd468a2016-12-19 23:05:39 +0100156test_dlist_LDFLAGS = -static
Damjan Marion7cd468a2016-12-19 23:05:39 +0100157test_elf_LDFLAGS = -static
Dave Barachb7f1faa2017-08-29 11:43:37 -0400158test_elog_LDFLAGS = -static
Damjan Marion7cd468a2016-12-19 23:05:39 +0100159test_fifo_LDFLAGS = -static
Pierre Pfister953f5512018-01-12 09:41:16 +0100160test_flowhash_template_LDFLAGS = -static
Damjan Marion7cd468a2016-12-19 23:05:39 +0100161test_format_LDFLAGS = -static
Dave Barachb7f1faa2017-08-29 11:43:37 -0400162test_fpool_LDFLAGS = -static
Damjan Marion7cd468a2016-12-19 23:05:39 +0100163test_hash_LDFLAGS = -static
164test_heap_LDFLAGS = -static
165test_longjmp_LDFLAGS = -static
166test_macros_LDFLAGS = -static
Dave Barache9d91702017-11-29 16:59:01 -0500167test_maplog_LDFLAGS = -static
Damjan Marion7cd468a2016-12-19 23:05:39 +0100168test_mheap_LDFLAGS = -static
169test_pool_iterate_LDFLAGS = -static
170test_ptclosure_LDFLAGS = -static
Damjan Marion7cd468a2016-12-19 23:05:39 +0100171test_random_isaac_LDFLAGS = -static
Dave Barachb7f1faa2017-08-29 11:43:37 -0400172test_random_LDFLAGS = -static
Damjan Marion7cd468a2016-12-19 23:05:39 +0100173test_serialize_LDFLAGS = -static
174test_slist_LDFLAGS = -static
175test_socket_LDFLAGS = -static
176test_time_LDFLAGS = -static
Dave Baracha98c4032018-06-06 10:52:08 -0400177test_time_range_LDFLAGS = -static
Damjan Marion7cd468a2016-12-19 23:05:39 +0100178test_timing_wheel_LDFLAGS = -static
Dave Barach8e8f98c2017-02-03 11:58:53 -0500179test_tw_timer_LDFLAGS = -static
Dave Barach8d6ef602018-01-30 14:12:31 -0500180test_valloc_LDFLAGS = -static
Damjan Marion7cd468a2016-12-19 23:05:39 +0100181test_vec_LDFLAGS = -static
182test_zvec_LDFLAGS = -static
183
184# noinst_PROGRAMS += test_vhash
185# test_vhash_SOURCES = vppinfra/test_vhash.c vppinfra/vhash.c
186# test_vhash_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG
187# test_vhash_LDADD = libvppinfra.la
188# test_vhash_LDFLAGS = -static
189
190nobase_include_HEADERS = \
191 vppinfra/asm_mips.h \
192 vppinfra/asm_x86.h \
193 vppinfra/bihash_8_8.h \
Dave Barach310518e2017-10-30 09:42:54 -0400194 vppinfra/bihash_vec8_8.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500195 vppinfra/bihash_16_8.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100196 vppinfra/bihash_24_8.h \
Damjan Marion18c458e2018-07-13 19:17:57 +0200197 vppinfra/bihash_40_8.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500198 vppinfra/bihash_48_8.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100199 vppinfra/bihash_template.h \
200 vppinfra/bihash_template.c \
201 vppinfra/bitmap.h \
202 vppinfra/bitops.h \
203 vppinfra/byte_order.h \
204 vppinfra/cache.h \
Dave Barach473f4612018-05-29 17:06:45 -0400205 vppinfra/config.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100206 vppinfra/clib.h \
Klement Sekera58eb8662017-06-09 06:06:49 +0200207 vppinfra/clib_error.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100208 vppinfra/cpu.h \
Damjan Marion0f68c792017-04-26 13:05:05 +0200209 vppinfra/crc32.h \
Steven0d883012018-05-11 11:06:23 -0700210 vppinfra/lb_hash_hash.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100211 vppinfra/dlist.h \
212 vppinfra/elf.h \
213 vppinfra/elf_clib.h \
214 vppinfra/elog.h \
215 vppinfra/fheap.h \
216 vppinfra/error.h \
217 vppinfra/error_bootstrap.h \
218 vppinfra/fifo.h \
Damjan Marion56dd5432017-09-08 19:52:02 +0200219 vppinfra/file.h \
Pierre Pfister953f5512018-01-12 09:41:16 +0100220 vppinfra/flowhash_template.h \
221 vppinfra/flowhash_8_8.h \
222 vppinfra/flowhash_24_16.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100223 vppinfra/format.h \
224 vppinfra/graph.h \
225 vppinfra/hash.h \
226 vppinfra/heap.h \
Damjan Marion01914ce2017-09-14 19:04:50 +0200227 vppinfra/linux/sysfs.h \
228 vppinfra/linux/syscall.h \
Damjan Marion1927da22017-03-27 17:08:20 +0200229 vppinfra/lock.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100230 vppinfra/longjmp.h \
231 vppinfra/macros.h \
Dave Barache9d91702017-11-29 16:59:01 -0500232 vppinfra/maplog.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100233 vppinfra/math.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100234 vppinfra/mem.h \
235 vppinfra/memcpy_sse3.h \
Damjan Marionfad3fb32017-12-14 09:30:11 +0100236 vppinfra/memcpy_avx2.h \
237 vppinfra/memcpy_avx512.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100238 vppinfra/mhash.h \
239 vppinfra/mheap.h \
Damjan Marioncc4a5e82018-07-30 16:10:14 +0200240 vppinfra/mheap_bootstrap.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100241 vppinfra/os.h \
242 vppinfra/pipeline.h \
243 vppinfra/pool.h \
244 vppinfra/ptclosure.h \
245 vppinfra/random.h \
246 vppinfra/random_buffer.h \
247 vppinfra/random_isaac.h \
248 vppinfra/serialize.h \
249 vppinfra/slist.h \
250 vppinfra/smp.h \
251 vppinfra/socket.h \
252 vppinfra/sparse_vec.h \
253 vppinfra/string.h \
254 vppinfra/time.h \
Dave Baracha98c4032018-06-06 10:52:08 -0400255 vppinfra/time_range.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100256 vppinfra/timing_wheel.h \
257 vppinfra/timer.h \
Dave Barach8e8f98c2017-02-03 11:58:53 -0500258 vppinfra/tw_timer_2t_1w_2048sl.h \
259 vppinfra/tw_timer_16t_2w_512sl.h \
Dave Barach68b0fb02017-02-28 15:15:56 -0500260 vppinfra/tw_timer_16t_1w_2048sl.h \
Dave Barach4af9ba12017-06-07 15:18:23 -0400261 vppinfra/tw_timer_4t_3w_256sl.h \
262 vppinfra/tw_timer_1t_3w_1024sl_ov.h \
Dave Barach8e8f98c2017-02-03 11:58:53 -0500263 vppinfra/tw_timer_template.h \
Gabriel Ganne613c79f2017-02-15 11:37:53 +0100264 vppinfra/tw_timer_template.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100265 vppinfra/types.h \
266 vppinfra/unix.h \
Dave Barach8d6ef602018-01-30 14:12:31 -0500267 vppinfra/valloc.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100268 vppinfra/vec.h \
269 vppinfra/vec_bootstrap.h \
270 vppinfra/vector.h \
271 vppinfra/vector_altivec.h \
Damjan Marionc5766222018-04-16 00:18:34 +0200272 vppinfra/vector_avx2.h \
273 vppinfra/vector_avx512.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100274 vppinfra/vector_funcs.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100275 vppinfra/vector_neon.h \
Damjan Marion927b0712018-02-20 08:33:50 +0100276 vppinfra/vector_sse42.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100277 vppinfra/valgrind.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100278 vppinfra/xxhash.h \
279 vppinfra/xy.h \
280 vppinfra/zvec.h
281
Dave Barach6a5adc32018-07-04 10:56:23 -0400282if ENABLE_DLMALLOC
283 nobase_include_HEADERS += \
284 vppinfra/dlmalloc.h
285else
286 nobase_include_HEADERS += \
287 vppinfra/mheap_bootstrap.h
288endif
289
Damjan Marion7cd468a2016-12-19 23:05:39 +0100290CLIB_CORE = \
291 vppinfra/asm_x86.c \
292 vppinfra/backtrace.c \
293 vppinfra/bihash_8_8.h \
Dave Barach310518e2017-10-30 09:42:54 -0400294 vppinfra/bihash_vec8_8.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100295 vppinfra/bihash_24_8.h \
296 vppinfra/bihash_template.h \
297 vppinfra/cpu.c \
298 vppinfra/elf.c \
299 vppinfra/elog.c \
300 vppinfra/error.c \
301 vppinfra/fifo.c \
302 vppinfra/fheap.c \
Pierre Pfister953f5512018-01-12 09:41:16 +0100303 vppinfra/flowhash_8_8.h \
304 vppinfra/flowhash_24_16.h \
305 vppinfra/flowhash_template.h \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100306 vppinfra/format.c \
Dave Barachb7f1faa2017-08-29 11:43:37 -0400307 vppinfra/pool.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100308 vppinfra/graph.c \
309 vppinfra/hash.c \
310 vppinfra/heap.c \
311 vppinfra/longjmp.S \
312 vppinfra/macros.c \
313 vppinfra/mhash.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100314 vppinfra/ptclosure.c \
315 vppinfra/random.c \
316 vppinfra/random_buffer.c \
317 vppinfra/random_isaac.c \
318 vppinfra/serialize.c \
319 vppinfra/slist.c \
320 vppinfra/std-formats.c \
321 vppinfra/string.c \
322 vppinfra/time.c \
Dave Baracha98c4032018-06-06 10:52:08 -0400323 vppinfra/time_range.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100324 vppinfra/timing_wheel.c \
Dave Barach8e8f98c2017-02-03 11:58:53 -0500325 vppinfra/tw_timer_template.h \
326 vppinfra/tw_timer_2t_1w_2048sl.h \
327 vppinfra/tw_timer_2t_1w_2048sl.c \
328 vppinfra/tw_timer_16t_2w_512sl.h \
329 vppinfra/tw_timer_16t_2w_512sl.c \
Dave Barach68b0fb02017-02-28 15:15:56 -0500330 vppinfra/tw_timer_16t_1w_2048sl.h \
331 vppinfra/tw_timer_16t_1w_2048sl.c \
Dave Barach4af9ba12017-06-07 15:18:23 -0400332 vppinfra/tw_timer_4t_3w_256sl.h \
333 vppinfra/tw_timer_4t_3w_256sl.c \
334 vppinfra/tw_timer_1t_3w_1024sl_ov.h \
335 vppinfra/tw_timer_1t_3w_1024sl_ov.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100336 vppinfra/unformat.c \
Dave Barach8d6ef602018-01-30 14:12:31 -0500337 vppinfra/valloc.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100338 vppinfra/vec.c \
339 vppinfra/vector.c \
340 vppinfra/zvec.c
341
Dave Barach6a5adc32018-07-04 10:56:23 -0400342if ENABLE_DLMALLOC
343 CLIB_CORE += \
344 vppinfra/mem_dlmalloc.c \
345 vppinfra/dlmalloc.c \
346 vppinfra/dlmalloc.h
347else
348 CLIB_CORE += \
349 vppinfra/mheap.c \
350 vppinfra/mem_mheap.c
351endif
352
Damjan Marion7cd468a2016-12-19 23:05:39 +0100353# Core plus Unix additions
354libvppinfra_la_SOURCES = \
355 $(CLIB_CORE) \
356 vppinfra/elf_clib.c \
Damjan Marion01914ce2017-09-14 19:04:50 +0200357 vppinfra/linux/mem.c \
358 vppinfra/linux/sysfs.c \
Dave Barache9d91702017-11-29 16:59:01 -0500359 vppinfra/maplog.c \
Damjan Marion7cd468a2016-12-19 23:05:39 +0100360 vppinfra/socket.c \
361 vppinfra/timer.c \
362 vppinfra/unix-formats.c \
363 vppinfra/unix-misc.c
364
365bin_PROGRAMS = elftool
366
367elftool_SOURCES = tools/elftool/elftool.c
368elftool_CPPFLAGS = $(AM_CPPFLAGS)
369elftool_LDADD = libvppinfra.la -lpthread -lrt -lm
370
371# vi:syntax=automake