Module Name:    src
Committed By:   christos
Date:           Fri Mar  7 15:56:37 UTC 2025

Modified Files:
        src/usr.sbin/racoon: Makefile

Log Message:
generate a header file for lex and remove lint prototype warning


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 src/usr.sbin/racoon/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/racoon/Makefile
diff -u src/usr.sbin/racoon/Makefile:1.44 src/usr.sbin/racoon/Makefile:1.45
--- src/usr.sbin/racoon/Makefile:1.44	Thu Feb 27 18:48:22 2025
+++ src/usr.sbin/racoon/Makefile	Fri Mar  7 10:56:37 2025
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2025/02/27 23:48:22 rillig Exp $
+# $NetBSD: Makefile,v 1.45 2025/03/07 15:56:37 christos Exp $
 
 WARNS?=	0	# XXX third-party program, many issues
 NOCLANGERROR=	# defined
@@ -75,8 +75,8 @@ DPADD+= ${LIBIPSEC} ${LIBCRYPT}
 
 .PATH:  ${NETBSDSRCDIR}/lib/libipsec ${DIST}/src/racoon
 
-prsa_tok.c: ${DIST}/src/racoon/prsa_tok.l
-	${LEX} -Pprsa -o${.TARGET} ${.ALLSRC}
+prsa_tok.c prsa_tok.h: ${DIST}/src/racoon/prsa_tok.l
+	${LEX} -Pprsa --header-file=prsa_tok.h -oprsa_tok.c ${.ALLSRC}
 
 prsa_par.c: ${DIST}/src/racoon/prsa_par.y
 	${YACC} -pprsa -d -o ${.TARGET} ${.ALLSRC}
@@ -89,7 +89,4 @@ COPTS.rsalist.c+= -Wno-error=deprecated-
 COPTS.prsa_par.c+= -Wno-error=deprecated-declarations
 COPTS.plainrsa-gen.c+= -Wno-error=deprecated-declarations
 
-# Has to be fixed upstream.
-LINTFLAGS+=	-X 384		# function definition with identifier list
-
 .include <bsd.prog.mk>

Reply via email to