Makefile.inc revision 285830
1# $FreeBSD: releng/10.2/lib/libc/stdlib/jemalloc/Makefile.inc 234370 2012-04-17 07:22:14Z jasone $ 2 3.PATH: ${.CURDIR}/stdlib/jemalloc 4 5JEMALLOCSRCS:= jemalloc.c arena.c atomic.c base.c bitmap.c chunk.c \ 6 chunk_dss.c chunk_mmap.c ckh.c ctl.c extent.c hash.c huge.c mb.c \ 7 mutex.c prof.c quarantine.c rtree.c stats.c tcache.c util.c tsd.c 8 9SYM_MAPS+=${.CURDIR}/stdlib/jemalloc/Symbol.map 10 11CFLAGS+=-I${.CURDIR}/../../contrib/jemalloc/include 12 13.for src in ${JEMALLOCSRCS} 14MISRCS+=jemalloc_${src} 15CLEANFILES+=jemalloc_${src} 16jemalloc_${src}: 17 ln -sf ${.CURDIR}/../../contrib/jemalloc/src/${src} ${.TARGET} 18.endfor 19 20MAN+=jemalloc.3 21CLEANFILES+=jemalloc.3 22jemalloc.3: 23 ln -sf ${.CURDIR}/../../contrib/jemalloc/doc/jemalloc.3 ${.TARGET} 24 25MLINKS+= \ 26 jemalloc.3 malloc.3 \ 27 jemalloc.3 calloc.3 \ 28 jemalloc.3 posix_memalign.3 \ 29 jemalloc.3 aligned_alloc.3 \ 30 jemalloc.3 realloc.3 \ 31 jemalloc.3 free.3 \ 32 jemalloc.3 malloc_usable_size.3 \ 33 jemalloc.3 malloc_stats_print.3 \ 34 jemalloc.3 mallctl.3 \ 35 jemalloc.3 mallctlnametomib.3 \ 36 jemalloc.3 mallctlbymib.3 \ 37 jemalloc.3 allocm.3 \ 38 jemalloc.3 rallocm.3 \ 39 jemalloc.3 sallocm.3 \ 40 jemalloc.3 dallocm.3 \ 41 jemalloc.3 nallocm.3 \ 42 jemalloc.3 malloc.conf.5 43 44.if defined(MALLOC_PRODUCTION) 45CFLAGS+= -DMALLOC_PRODUCTION 46.endif 47