1 1.11 pooka # $NetBSD: Makefile,v 1.11 2016/05/10 19:38:29 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.11 pooka RUMPCOMP_USER_CPPFLAGS:=-I${.PARSEDIR} 32 1.11 pooka 33 1.11 pooka # current state-of-the-art interface (remains to be seen if it's "good enuf") 34 1.11 pooka .ifdef RUMPCOMP_MAKEFILEINC_rumpdev_pci 35 1.11 pooka .include "${RUMPCOMP_MAKEFILEINC_rumpdev_pci}" 36 1.11 pooka .endif 37 1.11 pooka 38 1.11 pooka # old-style ("compat") interfaces. will go away some day or year. 39 1.11 pooka # why? the "protocol" requires passing variables via the env, and 40 1.11 pooka # the names include dots which POSIX does not, strictly speaking, 41 1.11 pooka # allow in env names. There is at least one shell (dash >= 0.58) 42 1.11 pooka # which refuses to pass variables with dots. 43 1.11 pooka .if defined(RUMPCOMP_USER_SRCS.rumpdev_pci) \ 44 1.11 pooka || defined(RUMPCOMP_MAKEFILEINC.rumpdev_pci) 45 1.11 pooka .warning Use new style RUMPCOMP_MAKEFILEINC_rumpdev_pci 46 1.11 pooka .endif 47 1.11 pooka .ifdef RUMPCOMP_USER_PATH.rumpdev_pci 48 1.5 pooka .PATH: ${RUMPCOMP_USER_PATH.rumpdev_pci} 49 1.5 pooka RUMPCOMP_USER_SRCS= ${RUMPCOMP_USER_SRCS.rumpdev_pci} 50 1.5 pooka RUMPCOMP_USER_CPPFLAGS+=${RUMPCOMP_USER_CPPFLAGS.rumpdev_pci} 51 1.5 pooka RUMPCOMP_USER_CFLAGS= ${RUMPCOMP_USER_CFLAGS.rumpdev_pci} 52 1.5 pooka CPPFLAGS+= ${RUMPCOMP_CPPFLAGS.rumpdev_pci} 53 1.11 pooka .endif 54 1.11 pooka .ifdef RUMPCOMP_MAKEFILEINC.rumpdev_pci 55 1.11 pooka .include "${RUMPCOMP_MAKEFILEINC.rumpdev_pci}" 56 1.11 pooka .endif 57 1.5 pooka 58 1.5 pooka # XXX: messy 59 1.5 pooka .undef RUMPKERN_ONLY 60 1.1 pooka 61 1.1 pooka .include "${RUMPTOP}/Makefile.rump" 62 1.1 pooka .include <bsd.lib.mk> 63 1.1 pooka .include <bsd.klinks.mk> 64