1# $NetBSD: Makefile,v 1.9 2015/07/29 19:03:15 christos Exp $
2
3XMODULEDIR=	${X11USRLIBDIR}/modules
4
5.include "../../../Makefile.serverlib"
6.include "../../../Makefile.servermod"
7
8LIB=		int10
9
10.PATH:          ${X11SRCDIR.xorg-server}/hw/xfree86/int10
11SRCS=		x86emu.c generic.c xf86x86emu.c xf86int10.c helper_mem.c \
12		helper_exec.c xf86int10module.c
13
14CPPFLAGS+=	-D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG \
15		-D_X86EMU
16
17.if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64"
18CPPFLAGS+=	-D_PC
19.endif
20
21# do not muck around in IO space trying to enable / disable non-PCI VGAs
22.if ${MACHINE} == "macppc" || ${MACHINE} == "sparc64"
23CPPFLAGS+=	-DNO_LEGACY_VGA
24.endif
25
26CPPFLAGS+=	-I${X11SRCDIR.xorg-server}/hw/xfree86/common \
27		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support \
28		-I${X11SRCDIR.xorg-server}/hw/xfree86/os-support/bus \
29		-I${X11SRCDIR.xorg-server}/hw/xfree86/${LIB} \
30		-I${X11SRCDIR.xorg-server}/hw/xfree86/x86emu \
31		-I${X11SRCDIR.xorg-server}/Xext \
32		-I${X11SRCDIR.xorg-server}/include \
33		-I${DESTDIR}${X11INCDIR}/X11 \
34		-I${DESTDIR}${X11INCDIR}/X11/extensions \
35		-I${DESTDIR}${X11INCDIR}/xorg \
36		-I${DESTDIR}${X11INCDIR}/pixman-1
37
38COPTS.xf86x86emu.c=	-Wno-error	# XXX?
39
40CWARNFLAGS.clang+=	-Wno-format
41
42.include <bsd.x11.mk>
43LIBDIR=	${XMODULEDIR}
44.include <bsd.lib.mk>
45