xref: /netbsd-src/external/mit/xorg/bin/xedit/lisp/Makefile (revision 76c7fc5f6b13ed0b1508e6b313e88e59977ed78e)
1#	$NetBSD: Makefile,v 1.7 2019/11/11 22:45:26 joerg Exp $
2
3LIBISPRIVATE=	yes
4
5.include <bsd.own.mk>
6
7LIB=		lisp
8SRCS=		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
13CPPFLAGS+=	-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
20CPPFLAGS+=	-DANSI_SOURCE
21.endif
22
23.PATH:		${X11SRCDIR.xedit}/lisp
24
25CWARNFLAGS.clang+=	-Wno-error=implicit-int-float-conversion
26
27# Ugh. writes to const char *
28COPTS.format.c+=	-Wno-error
29COPTS.lisp.c+=		-Wno-error
30
31.include <bsd.x11.mk>
32.include <bsd.lib.mk>
33