1 # $NetBSD: Makefile,v 1.1 2009/06/11 01:52:03 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_iterator.c \ 11 common_init.c \ 12 common_interface.c \ 13 common_capability.c \ 14 common_device_name.c \ 15 common_map.c \ 16 netbsd_pci.c 17 18 CPPFLAGS+= ${X11FLAGS} -I${X11SRCDIR.${LIB}}/include \ 19 -DHAVE_MMTR -DHAVE_ZLIB \ 20 -DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H \ 21 -DPCIIDS_PATH=\"${X11ROOTDIR}/share/pciids\" 22 23 COPTS.common_init.c= -Wno-error 24 25 INCS= pciaccess.h 26 INCSDIR=${X11INCDIR} 27 28 PKGDIST= ${LIB} 29 30 LDADD+= -lpci 31 DPADD+= ${LIBPCI} 32 33 .if ${MACHINE_ARCH} == "i386" 34 LDADD+= -li386 35 DPADD+= ${LIBI386} 36 .endif 37 38 .if ${MACHINE_ARCH} == "x86_64" 39 LDADD+= -lx86_64 40 DPADD+= ${LIBX86_64} 41 .endif 42 43 .include <bsd.x11.mk> 44 .include <bsd.lib.mk> 45