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