Remove building with NOCRYPTO option
[minix.git] / external / mit / xorg / lib / libpciaccess / Makefile
blobd1074c77cfcd8b9ee65cd59e480dedc6860bea12
1 # $NetBSD: Makefile,v 1.7 2015/06/24 22:20:25 matt Exp $
3 .include <bsd.own.mk>
5 LIB= pciaccess
6 .PATH: ${X11SRCDIR.${LIB}}/src
7 .PATH: ${X11SRCDIR.${LIB}}/include
9 XORG_MACHINE_ARCH?=${MACHINE_ARCH}
11 SRCS= common_bridge.c \
12 common_io.c \
13 common_iterator.c \
14 common_init.c \
15 common_interface.c \
16 common_capability.c \
17 common_device_name.c \
18 common_map.c \
19 common_vgaarb_stub.c \
20 minix_pci.c
22 CPPFLAGS+= ${X11FLAGS} -I${X11SRCDIR.${LIB}}/include -DHAVE_ZLIB \
23 -DHAVE_STRING_H -DHAVE_STDINT_H -DHAVE_INTTYPES_H \
24 -DPCIIDS_PATH=\"${X11ROOTDIR}/share/pciids\"
26 COPTS.common_init.c= -Wno-error
28 INCS= pciaccess.h
29 INCSDIR=${X11INCDIR}
31 PKGDIST= ${LIB}
33 LDADD+= -lpci -lz
34 DPADD+= ${LIBPCI} ${LIBZ}
36 .if !defined(__MINIX)
37 .if ${XORG_MACHINE_ARCH} == "i386" || ${XORG_MACHINE_ARCH} == "x86_64"
38 CPPFLAGS+= -DHAVE_MTRR
39 .endif
41 .if ${XORG_MACHINE_ARCH} == "i386"
42 LDADD+= -li386
43 DPADD+= ${LIBI386}
44 .endif
46 .if ${XORG_MACHINE_ARCH} == "x86_64"
47 LDADD+= -lx86_64
48 DPADD+= ${LIBX86_64}
49 .endif
50 .endif # !defined(__MINIX)
52 .include <bsd.x11.mk>
53 .include <bsd.lib.mk>