PATH: ${JEMALLOC}/dist/src ${JEMALLOC}/lib
SUFFIXES: .3
PATH.3: ${JEMALLOC}/dist/doc
for i in ${JEMALLOC_SRCS}
# we need gnu11 for clang because of structure redefinitions.
# this is a c11 feature, that is accepted by gcc and gnu99
CPPFLAGS.${i}+=-I${JEMALLOC}/include -std=gnu11
# helps in tracking bad malloc/pointer usage, but has a serious
# performance penalty:
# CPPFLAGS.${i}+= -DDJEMALLOC_PROTECT_NOSTD -DJEMALLOC_DEBUG
CPPFLAGS.${i}+=-DJEMALLOC_PROTECT_NOSTD
COPTS.${i}+= -fvisibility=hidden -funroll-loops
COPTS.${i}+= ${${ACTIVE_CC} == "clang":? -Wno-atomic-alignment -Wno-error=missing-noreturn:}
LINTFLAGS.${i}+= -X 231 # argument unused
LINTFLAGS.${i}+= -X 220 # fallthrough on case statement
endfor