1.PATH: ${LIBC_SRCTOP}/stdlib/malloc/jemalloc 2 3JEMALLOCSRCS:= jemalloc.c arena.c background_thread.c base.c bin.c bitmap.c \ 4 ckh.c ctl.c div.c extent.c extent_dss.c extent_mmap.c hash.c hook.c \ 5 large.c log.c malloc_io.c mutex.c mutex_pool.c nstime.c pages.c \ 6 prng.c prof.c rtree.c safety_check.c sc.c stats.c sz.c tcache.c \ 7 test_hooks.c ticker.c tsd.c witness.c 8 9CFLAGS+=-I${SRCTOP}/contrib/jemalloc/include -I${LIBC_SRCTOP}/stdlib/malloc/jemalloc/include 10.if ${MK_JEMALLOC_LG_VADDR_WIDE} != no 11CFLAGS+=-D_USE_LG_VADDR_WIDE 12.endif 13 14.for src in ${JEMALLOCSRCS} 15MISRCS+=jemalloc_${src} 16CLEANFILES+=jemalloc_${src} 17jemalloc_${src}: ${SRCTOP}/contrib/jemalloc/src/${src} .NOMETA 18 ln -sf ${.ALLSRC} ${.TARGET} 19.endfor 20 21MAN+= jemalloc.3 22 23MLINKS+= \ 24 jemalloc.3 malloc.3 \ 25 jemalloc.3 calloc.3 \ 26 jemalloc.3 posix_memalign.3 \ 27 jemalloc.3 aligned_alloc.3 \ 28 jemalloc.3 realloc.3 \ 29 jemalloc.3 free.3 \ 30 jemalloc.3 malloc_usable_size.3 \ 31 jemalloc.3 malloc_stats_print.3 \ 32 jemalloc.3 mallctl.3 \ 33 jemalloc.3 mallctlnametomib.3 \ 34 jemalloc.3 mallctlbymib.3 \ 35 jemalloc.3 mallocx.3 \ 36 jemalloc.3 rallocx.3 \ 37 jemalloc.3 xallocx.3 \ 38 jemalloc.3 sallocx.3 \ 39 jemalloc.3 dallocx.3 \ 40 jemalloc.3 sdallocx.3 \ 41 jemalloc.3 nallocx.3 \ 42 jemalloc.3 malloc.conf.5 43 44.if ${MK_MALLOC_PRODUCTION} != "no" || defined(MALLOC_PRODUCTION) 45CFLAGS+= -DMALLOC_PRODUCTION 46.endif 47