# $NetBSD: Makefile,v 1.11 2022/11/12 02:03:08 mrg Exp $ .include <bsd.own.mk> LIB= pciaccess .PATH: ${X11SRCDIR.${LIB}}/src .PATH: ${X11SRCDIR.${LIB}}/include SRCS= common_bridge.c \ common_io.c \ common_iterator.c \ common_init.c \ common_interface.c \ common_capability.c \ common_device_name.c \ common_map.c \ common_vgaarb_stub.c \ netbsd_pci.c CPPFLAGS+= ${X11FLAGS} -I${X11SRCDIR.${LIB}}/include -DHAVE_ZLIB \ -DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H \ -DPCIIDS_PATH=\"${X11ROOTDIR}/share/pciids\" COPTS.common_init.c= -Wno-error INCS= pciaccess.h INCSDIR=${X11INCDIR} PKGDIST= ${LIB} PKGCONFIG_SED_FLAGS= \ -e "s,@PCIACCESS_LIBS@,-lpci -lz," \ LIBDPLIBS+= pci ${NETBSDSRCDIR}/lib/libpci \ z ${NETBSDSRCDIR}/lib/libz # do not blindly enable memory and IO access on macppc .if ${MACHINE} == "macppc" CPPFLAGS+= -DAVOID_DEVICE_ENABLE .endif .if ${MACHINE_ARCH} == "i386" || ${MACHINE_ARCH} == "x86_64" CPPFLAGS+= -DHAVE_MTRR LIBDPLIBS+= ${XORG_MACHINE_ARCH:U${MACHINE_ARCH}} ${NETBSDSRCDIR}/lib/libarch .endif .include <bsd.x11.mk> .include <bsd.lib.mk> |