1 1.4.2.5 skrll # $NetBSD: Makefile,v 1.4.2.5 2016/05/29 08:44:39 skrll Exp $ 2 1.1 pooka # 3 1.1 pooka 4 1.1 pooka RUMPTOP= ${TOPRUMP} 5 1.1 pooka 6 1.4.2.1 skrll .include <bsd.own.mk> 7 1.4.2.1 skrll 8 1.1 pooka .PATH: ${RUMPTOP}/../dev/pci 9 1.1 pooka 10 1.1 pooka LIB= rumpdev_pci 11 1.4.2.3 skrll COMMENT=PCI bus support 12 1.4.2.3 skrll 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.4.2.2 skrll .error RUMP_PCI_IOSPACE defined in Makefile. Use userfeatures.h instead. 29 1.4 pooka .endif 30 1.4 pooka 31 1.4.2.5 skrll RUMPCOMP_USER_CPPFLAGS:=-I${.PARSEDIR} 32 1.4.2.5 skrll 33 1.4.2.5 skrll # current state-of-the-art interface (remains to be seen if it's "good enuf") 34 1.4.2.5 skrll .ifdef RUMPCOMP_MAKEFILEINC_rumpdev_pci 35 1.4.2.5 skrll .include "${RUMPCOMP_MAKEFILEINC_rumpdev_pci}" 36 1.4.2.5 skrll .endif 37 1.4.2.5 skrll 38 1.4.2.5 skrll # old-style ("compat") interfaces. will go away some day or year. 39 1.4.2.5 skrll # why? the "protocol" requires passing variables via the env, and 40 1.4.2.5 skrll # the names include dots which POSIX does not, strictly speaking, 41 1.4.2.5 skrll # allow in env names. There is at least one shell (dash >= 0.58) 42 1.4.2.5 skrll # which refuses to pass variables with dots. 43 1.4.2.5 skrll .if defined(RUMPCOMP_USER_SRCS.rumpdev_pci) \ 44 1.4.2.5 skrll || defined(RUMPCOMP_MAKEFILEINC.rumpdev_pci) 45 1.4.2.5 skrll .warning Use new style RUMPCOMP_MAKEFILEINC_rumpdev_pci 46 1.4.2.5 skrll .endif 47 1.4.2.5 skrll .ifdef RUMPCOMP_USER_PATH.rumpdev_pci 48 1.4.2.1 skrll .PATH: ${RUMPCOMP_USER_PATH.rumpdev_pci} 49 1.4.2.1 skrll RUMPCOMP_USER_SRCS= ${RUMPCOMP_USER_SRCS.rumpdev_pci} 50 1.4.2.1 skrll RUMPCOMP_USER_CPPFLAGS+=${RUMPCOMP_USER_CPPFLAGS.rumpdev_pci} 51 1.4.2.1 skrll RUMPCOMP_USER_CFLAGS= ${RUMPCOMP_USER_CFLAGS.rumpdev_pci} 52 1.4.2.1 skrll CPPFLAGS+= ${RUMPCOMP_CPPFLAGS.rumpdev_pci} 53 1.4.2.5 skrll .endif 54 1.4.2.3 skrll .ifdef RUMPCOMP_MAKEFILEINC.rumpdev_pci 55 1.4.2.3 skrll .include "${RUMPCOMP_MAKEFILEINC.rumpdev_pci}" 56 1.4.2.3 skrll .endif 57 1.4.2.3 skrll 58 1.4.2.5 skrll # XXX: messy 59 1.4.2.5 skrll .undef RUMPKERN_ONLY 60 1.4.2.5 skrll 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