Home | History | Annotate | Line # | Download | only in libpci
Makefile revision 1.8
      1 #	$NetBSD: Makefile,v 1.8 2015/10/19 16:16:33 pooka Exp $
      2 #
      3 
      4 RUMPTOP= ${TOPRUMP}
      5 
      6 .include <bsd.own.mk>
      7 
      8 .PATH:	${RUMPTOP}/../dev/pci
      9 
     10 LIB=	rumpdev_pci
     11 COMMENT=PCI bus support
     12 
     13 IOCONF=	PCI.ioconf
     14 
     15 SRCS+=	pci.c pci_map.c pci_quirks.c pci_subr.c pci_stub.c pci_usrreq.c
     16 SRCS+=	pcibusprint.c
     17 
     18 SRCS+=	rumpdev_pci.c
     19 
     20 # ok, these don't _really_ belong here, but it's the only
     21 # place they're currently useful, so let it slide
     22 SRCS+=	rumpdev_bus_space.c
     23 SRCS+=	rumpdev_bus_dma.c
     24 
     25 SRCS+=	pci_at_mainbus.c
     26 
     27 CPPFLAGS+= -I${RUMPTOP}/librump/rumpkern
     28 CPPFLAGS+= -I${RUMPTOP}/librump/rumpvfs
     29 
     30 .if ${RUMP_PCI_IOSPACE:Uno} == "yes"
     31 .error RUMP_PCI_IOSPACE defined in Makefile.  Use userfeatures.h instead.
     32 .endif
     33 
     34 .PATH:			${RUMPCOMP_USER_PATH.rumpdev_pci}
     35 RUMPCOMP_USER_SRCS=	${RUMPCOMP_USER_SRCS.rumpdev_pci}
     36 MYDIR:=			${.PARSEDIR}
     37 RUMPCOMP_USER_CPPFLAGS=	-I${MYDIR}
     38 RUMPCOMP_USER_CPPFLAGS+=${RUMPCOMP_USER_CPPFLAGS.rumpdev_pci}
     39 RUMPCOMP_USER_CFLAGS=	${RUMPCOMP_USER_CFLAGS.rumpdev_pci}
     40 
     41 CPPFLAGS+=		${RUMPCOMP_CPPFLAGS.rumpdev_pci}
     42 
     43 # XXX: messy
     44 .undef RUMPKERN_ONLY
     45 
     46 .include "${RUMPTOP}/Makefile.rump"
     47 .include <bsd.lib.mk>
     48 .include <bsd.klinks.mk>
     49