blob: 41dbfea3f64b1cc79c5abbaf64f6f4d75142d7c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# $NetBSD: Makefile,v 1.11 2016/05/10 19:38:29 pooka Exp $
#
RUMPTOP= ${TOPRUMP}
.include <bsd.own.mk>
.PATH: ${RUMPTOP}/../dev/pci
LIB= rumpdev_pci
COMMENT=PCI bus support
IOCONF= PCI.ioconf
SRCS+= pci.c pci_map.c pci_quirks.c pci_subr.c pci_stub.c pci_usrreq.c
SRCS+= pcibusprint.c
SRCS+= rumpdev_pci.c
# ok, these don't _really_ belong here, but it's the only
# place they're currently useful, so let it slide
SRCS+= rumpdev_bus_space.c
SRCS+= rumpdev_bus_dma.c
SRCS+= pci_at_mainbus.c
.if ${RUMP_PCI_IOSPACE:Uno} == "yes"
.error RUMP_PCI_IOSPACE defined in Makefile. Use userfeatures.h instead.
.endif
RUMPCOMP_USER_CPPFLAGS:=-I${.PARSEDIR}
# current state-of-the-art interface (remains to be seen if it's "good enuf")
.ifdef RUMPCOMP_MAKEFILEINC_rumpdev_pci
.include "${RUMPCOMP_MAKEFILEINC_rumpdev_pci}"
.endif
# old-style ("compat") interfaces. will go away some day or year.
# why? the "protocol" requires passing variables via the env, and
# the names include dots which POSIX does not, strictly speaking,
# allow in env names. There is at least one shell (dash >= 0.58)
# which refuses to pass variables with dots.
.if defined(RUMPCOMP_USER_SRCS.rumpdev_pci) \
|| defined(RUMPCOMP_MAKEFILEINC.rumpdev_pci)
.warning Use new style RUMPCOMP_MAKEFILEINC_rumpdev_pci
.endif
.ifdef RUMPCOMP_USER_PATH.rumpdev_pci
.PATH: ${RUMPCOMP_USER_PATH.rumpdev_pci}
RUMPCOMP_USER_SRCS= ${RUMPCOMP_USER_SRCS.rumpdev_pci}
RUMPCOMP_USER_CPPFLAGS+=${RUMPCOMP_USER_CPPFLAGS.rumpdev_pci}
RUMPCOMP_USER_CFLAGS= ${RUMPCOMP_USER_CFLAGS.rumpdev_pci}
CPPFLAGS+= ${RUMPCOMP_CPPFLAGS.rumpdev_pci}
.endif
.ifdef RUMPCOMP_MAKEFILEINC.rumpdev_pci
.include "${RUMPCOMP_MAKEFILEINC.rumpdev_pci}"
.endif
# XXX: messy
.undef RUMPKERN_ONLY
.include "${RUMPTOP}/Makefile.rump"
.include <bsd.lib.mk>
.include <bsd.klinks.mk>
|