
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
54 lines
1.0 KiB
Makefile
54 lines
1.0 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2015/06/24 22:20:25 matt Exp $
|
|
|
|
.include <bsd.own.mk>
|
|
|
|
LIB= pciaccess
|
|
.PATH: ${X11SRCDIR.${LIB}}/src
|
|
.PATH: ${X11SRCDIR.${LIB}}/include
|
|
|
|
XORG_MACHINE_ARCH?=${MACHINE_ARCH}
|
|
|
|
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 \
|
|
minix_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}
|
|
|
|
LDADD+= -lpci -lz
|
|
DPADD+= ${LIBPCI} ${LIBZ}
|
|
|
|
.if !defined(__MINIX)
|
|
.if ${XORG_MACHINE_ARCH} == "i386" || ${XORG_MACHINE_ARCH} == "x86_64"
|
|
CPPFLAGS+= -DHAVE_MTRR
|
|
.endif
|
|
|
|
.if ${XORG_MACHINE_ARCH} == "i386"
|
|
LDADD+= -li386
|
|
DPADD+= ${LIBI386}
|
|
.endif
|
|
|
|
.if ${XORG_MACHINE_ARCH} == "x86_64"
|
|
LDADD+= -lx86_64
|
|
DPADD+= ${LIBX86_64}
|
|
.endif
|
|
.endif # !defined(__MINIX)
|
|
|
|
.include <bsd.x11.mk>
|
|
.include <bsd.lib.mk>
|