freebsd-skq/lib/libc/stdlib/jemalloc/Makefile.inc
Jason Evans a4bd5210d5 Import jemalloc 9ef7f5dc34ff02f50d401e41c8d9a4a928e7c2aa (dev branch,
prior to 3.0.0 release) as contrib/jemalloc, and integrate it into libc.
The code being imported by this commit diverged from
lib/libc/stdlib/malloc.c in March 2010, which means that a portion of
the jemalloc 1.0.0 ChangeLog entries are relevant, as are the entries
for all subsequent releases.
2012-04-17 07:22:14 +00:00

47 lines
1.1 KiB
Makefile

# $FreeBSD$
.PATH: ${.CURDIR}/stdlib/jemalloc
JEMALLOCSRCS:= jemalloc.c arena.c atomic.c base.c bitmap.c chunk.c \
chunk_dss.c chunk_mmap.c ckh.c ctl.c extent.c hash.c huge.c mb.c \
mutex.c prof.c quarantine.c rtree.c stats.c tcache.c util.c tsd.c
SYM_MAPS+=${.CURDIR}/stdlib/jemalloc/Symbol.map
CFLAGS+=-I${.CURDIR}/../../contrib/jemalloc/include
.for src in ${JEMALLOCSRCS}
MISRCS+=jemalloc_${src}
CLEANFILES+=jemalloc_${src}
jemalloc_${src}:
ln -sf ${.CURDIR}/../../contrib/jemalloc/src/${src} ${.TARGET}
.endfor
MAN+=jemalloc.3
CLEANFILES+=jemalloc.3
jemalloc.3:
ln -sf ${.CURDIR}/../../contrib/jemalloc/doc/jemalloc.3 ${.TARGET}
MLINKS+= \
jemalloc.3 malloc.3 \
jemalloc.3 calloc.3 \
jemalloc.3 posix_memalign.3 \
jemalloc.3 aligned_alloc.3 \
jemalloc.3 realloc.3 \
jemalloc.3 free.3 \
jemalloc.3 malloc_usable_size.3 \
jemalloc.3 malloc_stats_print.3 \
jemalloc.3 mallctl.3 \
jemalloc.3 mallctlnametomib.3 \
jemalloc.3 mallctlbymib.3 \
jemalloc.3 allocm.3 \
jemalloc.3 rallocm.3 \
jemalloc.3 sallocm.3 \
jemalloc.3 dallocm.3 \
jemalloc.3 nallocm.3 \
jemalloc.3 malloc.conf.5
.if defined(MALLOC_PRODUCTION)
CFLAGS+= -DMALLOC_PRODUCTION
.endif