1 # $NetBSD: Makefile,v 1.1.1.1 2016/06/10 03:42:14 mrg Exp $ 2 3 XMODULEDIR= ${X11USRLIBDIR}/modules 4 5 .include "../../../Makefile.serverlib" 6 .include "../../../Makefile.servermod" 7 8 LIB= int10 9 10 .PATH: ${X11SRCDIR.xorg-server}/hw/xfree86/int10 11 SRCS= x86emu.c generic.c xf86x86emu.c xf86int10.c helper_mem.c \ 12 helper_exec.c xf86int10module.c 13 14 CPPFLAGS+= -D__DRIVER__ -DFORCE_POST -D_CEXPORT= -DNO_LONG_LONG \ 15 -D_X86EMU 16 17 .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" 18 CPPFLAGS+= -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" 23 CPPFLAGS+= -DNO_LEGACY_VGA 24 .endif 25 26 CPPFLAGS+= -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 38 COPTS.xf86x86emu.c= -Wno-error # XXX? 39 40 CWARNFLAGS.clang+= -Wno-format 41 42 .include <bsd.x11.mk> 43 LIBDIR= ${XMODULEDIR} 44 .include <bsd.lib.mk> 45