No empty .Rs/.Re
[netbsd-mini2440.git] / external / mit / xorg / lib / libpciaccess / Makefile
blob09621a7f13d561a85332d772230e7a2836a80776
1 # $NetBSD: Makefile,v 1.1 2009/06/11 01:52:03 mrg Exp $
3 .include <bsd.own.mk>
5 LIB= pciaccess
6 .PATH: ${X11SRCDIR.${LIB}}/src
7 .PATH: ${X11SRCDIR.${LIB}}/include
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 common_vgaarb_stub.c \
17 netbsd_pci.c
19 CPPFLAGS+= ${X11FLAGS} -I${X11SRCDIR.${LIB}}/include \
20 -DHAVE_MMTR -DHAVE_ZLIB \
21 -DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H \
22 -DPCIIDS_PATH=\"${X11ROOTDIR}/share/pciids\"
24 COPTS.common_init.c= -Wno-error
26 INCS= pciaccess.h
27 INCSDIR=${X11INCDIR}
29 PKGDIST= ${LIB}
31 LDADD+= -lpci
32 DPADD+= ${LIBPCI}
34 .if ${MACHINE_ARCH} == "i386"
35 LDADD+= -li386
36 DPADD+= ${LIBI386}
37 .endif
39 .if ${MACHINE_ARCH} == "x86_64"
40 LDADD+= -lx86_64
41 DPADD+= ${LIBX86_64}
42 .endif
44 .include <bsd.x11.mk>
45 .include <bsd.lib.mk>