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