X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvppinfra.am;h=57f7a1f7e3b35a55827db1a2e75ebf536e464656;hb=cc4a5e8089967f0c266e9c5ed319c38c111004cd;hp=66c2ad2a9fc5aabe568cd7fe477e5f71d73f5227;hpb=a98c40305deedc58860722fb9710075028c8b9f8;p=vpp.git diff --git a/src/vppinfra.am b/src/vppinfra.am index 66c2ad2a9fc..57f7a1f7e3b 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 @@ -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) \