xref: /netbsd-src/external/gpl2/libmalloc/lib/Makefile (revision 6d188dd0d771475f4319da15b0baebb7e5b51cdf)
1*6d188dd0Smrg#	$NetBSD: Makefile,v 1.6 2018/02/02 01:02:40 mrg Exp $
249e111a2Schristos
349e111a2SchristosNOMAN=	# defined
449e111a2Schristos.include <bsd.init.mk>
549e111a2Schristos
649e111a2SchristosLIB=	gnumalloc
749e111a2SchristosSRCS+=  combined.c
849e111a2Schristos#SRCS+= malloc.c free.c realloc.c
949e111a2SchristosSRCS+=  cfree.c calloc.c morecore.c
1049e111a2SchristosSRCS+=  memalign.c valloc.c mcheck.c mtrace.c mstats.c vm-limit.c
1149e111a2SchristosSRCS+=  ralloc.c
1249e111a2Schristos
1349e111a2Schristos
14c25aca9cSchristosCPPFLAGS+= -I${DIST} -I${.CURDIR} -DSTDC_HEADERS -DHAVE_STDLIB_H -DHAVE_UNISTD_H
1501a3dc11Schristos
16*6d188dd0Smrg.if ${HAVE_GCC:U0} >= 5
17d6db3d67SchristosCOPTS+=-fno-builtin-malloc
1801a3dc11Schristos.endif
1949e111a2Schristos
2049e111a2Schristos.PATH: ${DIST}
2149e111a2Schristos
2249e111a2Schristos.include <bsd.lib.mk>
23