X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fvppinfra.am;h=1d8e270b33b17d74b839ee73b33bdc3866d8e5bd;hb=3b23e9d5af4f02836b689286824c9217fa2aa19a;hp=66c2ad2a9fc5aabe568cd7fe477e5f71d73f5227;hpb=a98c40305deedc58860722fb9710075028c8b9f8;p=vpp.git diff --git a/src/vppinfra.am b/src/vppinfra.am index 66c2ad2a9fc..1d8e270b33b 100644 --- a/src/vppinfra.am +++ b/src/vppinfra.am @@ -13,17 +13,6 @@ lib_LTLIBRARIES += libvppinfra.la -BUILT_SOURCES += vppinfra/config.h - -vppinfra/config.h: - @echo "/** Autogenerated by Autotools **/" > $@ - @echo "#ifndef included_clib_config_h" >> $@ - @echo "#define included_clib_config_h" >> $@ - @echo "#ifndef CLIB_LOG2_CACHE_LINE_BYTES " >> $@ - @echo "#define CLIB_LOG2_CACHE_LINE_BYTES " @LOG2_CACHE_LINE_BYTES@ >> $@ - @echo "#endif " >> $@ - @echo "#endif " >> $@ - TESTS = if ENABLE_TESTS @@ -128,7 +117,7 @@ test_valloc_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG test_vec_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG test_zvec_CPPFLAGS = $(AM_CPPFLAGS) -DCLIB_DEBUG -test_bihash_template_LDADD = libvppinfra.la +test_bihash_template_LDADD = libvppinfra.la -lpthread test_bihash_vec88_LDADD = libvppinfra.la test_cuckoo_template_LDADD = libvppinfra.la test_cuckoo_bihash_LDADD = libvppinfra.la @@ -205,6 +194,7 @@ nobase_include_HEADERS = \ vppinfra/bihash_vec8_8.h \ vppinfra/bihash_16_8.h \ vppinfra/bihash_24_8.h \ + vppinfra/bihash_40_8.h \ vppinfra/bihash_48_8.h \ vppinfra/bihash_template.h \ vppinfra/bihash_template.c \ @@ -289,6 +279,14 @@ nobase_include_HEADERS = \ vppinfra/xy.h \ vppinfra/zvec.h +if ENABLE_DLMALLOC + nobase_include_HEADERS += \ + vppinfra/dlmalloc.h +else + nobase_include_HEADERS += \ + vppinfra/mheap_bootstrap.h +endif + CLIB_CORE = \ vppinfra/asm_x86.c \ vppinfra/backtrace.c \ @@ -313,8 +311,6 @@ CLIB_CORE = \ vppinfra/longjmp.S \ vppinfra/macros.c \ vppinfra/mhash.c \ - vppinfra/mheap.c \ - vppinfra/mem_mheap.c \ vppinfra/ptclosure.c \ vppinfra/random.c \ vppinfra/random_buffer.c \ @@ -343,6 +339,17 @@ CLIB_CORE = \ vppinfra/vector.c \ vppinfra/zvec.c +if ENABLE_DLMALLOC + CLIB_CORE += \ + vppinfra/mem_dlmalloc.c \ + vppinfra/dlmalloc.c \ + vppinfra/dlmalloc.h +else + CLIB_CORE += \ + vppinfra/mheap.c \ + vppinfra/mem_mheap.c +endif + # Core plus Unix additions libvppinfra_la_SOURCES = \ $(CLIB_CORE) \