Home | History | Annotate | Line # | Download | only in lisp
      1 #	$NetBSD: Makefile,v 1.8 2025/02/20 21:20:02 rillig Exp $
      2 
      3 LIBISPRIVATE=	yes
      4 
      5 .include <bsd.own.mk>
      6 
      7 LIB=		lisp
      8 SRCS=		bytecode.c core.c debugger.c format.c hash.c helper.c \
      9 		io.c lisp.c math.c package.c pathname.c read.c \
     10 		regex.c require.c stream.c string.c struct.c time.c \
     11 		write.c xedit.c
     12 
     13 CPPFLAGS+=	-DLISP  -DLISPDIR=\"${X11LIBDIR}/xedit/lisp\" \
     14 		-I${X11SRCDIR.xedit}/lisp/mp \
     15 		-I${X11SRCDIR.xedit}/lisp/re \
     16 		-I${X11SRCDIR.xedit}
     17 
     18 .if defined(HAVE_PCC)
     19 # code uses gcc-specific "label as values" feature
     20 CPPFLAGS+=	-DANSI_SOURCE
     21 .endif
     22 
     23 .PATH:		${X11SRCDIR.xedit}/lisp
     24 
     25 CWARNFLAGS.clang+=	-Wno-error=implicit-int-float-conversion
     26 
     27 # Ugh. writes to const char *
     28 COPTS.format.c+=	-Wno-error
     29 COPTS.lisp.c+=		-Wno-error
     30 
     31 LINTFLAGS+=	-X 34		# bit-field with underlying enum
     32 LINTFLAGS+=	-X 117		# signed '>>'
     33 LINTFLAGS+=	-X 132		# loss of accuracy
     34 LINTFLAGS+=	-X 220		# fallthrough in 'case' statement
     35 LINTFLAGS+=	-X 231		# unused parameter
     36 LINTFLAGS+=	-X 275		# cast discards 'const'
     37 LINTFLAGS+=	-X 298		# loss of accuracy in function call
     38 LINTFLAGS+=	-X 341		# wrong <ctype.h> usage
     39 LINTFLAGS+=	-X 344		# plain 'int' in bit-field
     40 LINTFLAGS+=	-X 351		# missing header declaration
     41 
     42 .include <bsd.x11.mk>
     43 .include <bsd.lib.mk>
     44