Home | History | Annotate | Line # | Download | only in lib
      1 #	$NetBSD: Makefile,v 1.6 2023/08/14 05:29:28 mrg Exp $
      2 
      3 # for information:
      4 # the configure script is run as:
      5 #	./configure --prefix=/usr --without-alloca
      6 
      7 .include <bsd.own.mk>
      8 TREDIST=	${.CURDIR}/../dist
      9 
     10 # external tre sources
     11 .PATH: ${TREDIST}/lib
     12 
     13 CPPFLAGS+=	-I${.CURDIR}
     14 
     15 LIB=	tre
     16 
     17 SRCS+=	regcomp.c regerror.c regexec.c
     18 SRCS+=	tre-ast.c tre-compile.c tre-match-approx.c
     19 SRCS+=	tre-match-backtrack.c tre-match-parallel.c tre-mem.c
     20 SRCS+=	tre-parse.c tre-stack.c xmalloc.c
     21 
     22 # XXXGCC12 this is very broken.  it double-free()'s as well as the UB
     23 # after realloc().
     24 COPTS.xmalloc.c+=	-Wno-error
     25 
     26 .include <bsd.lib.mk>
     27