1 # $NetBSD: Makefile,v 1.3 2010/05/22 10:31:20 mrg Exp $ 2 3 .include <bsd.own.mk> 4 5 LIB= pciaccess 6 .PATH: ${X11SRCDIR.${LIB}}/src 7 .PATH: ${X11SRCDIR.${LIB}}/include 8 9 SRCS= common_bridge.c \ 10 common_io.c \ 11 common_iterator.c \ 12 common_init.c \ 13 common_interface.c \ 14 common_capability.c \ 15 common_device_name.c \ 16 common_map.c \ 17 common_vgaarb_stub.c \ 18 netbsd_pci.c 19 20 CPPFLAGS+= ${X11FLAGS} -I${X11SRCDIR.${LIB}}/include \ 21 -DHAVE_MMTR -DHAVE_ZLIB \ 22 -DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H \ 23 -DPCIIDS_PATH=\"${X11ROOTDIR}/share/pciids\" 24 25 COPTS.common_init.c= -Wno-error 26 27 INCS= pciaccess.h 28 INCSDIR=${X11INCDIR} 29 30 PKGDIST= ${LIB} 31 32 LDADD+= -lpci 33 DPADD+= ${LIBPCI} 34 35 .if ${MACHINE_ARCH} == "i386" 36 LDADD+= -li386 37 DPADD+= ${LIBI386} 38 .endif 39 40 .if ${MACHINE_ARCH} == "x86_64" 41 LDADD+= -lx86_64 42 DPADD+= ${LIBX86_64} 43 .endif 44 45 .include <bsd.x11.mk> 46 .include <bsd.lib.mk> 47