25d6e2cc4f
Avoid creating (and subsequently using) fake opt_*.h files when the modules are built with the kernel and hence actual opt_*.h files are available in ${KERNBUILDDIR}. Fix a few small bugs that would prevent this from working. At last the build options of the modules become consistent with those of the kernel unless the MODULES_WITH_WORLD way still is used. Approved by: re (kensmith, scottl) Requested by: ru Tested on: amd64 i386 sparc64 Tested by: md5
18 lines
339 B
Makefile
18 lines
339 B
Makefile
# $FreeBSD$
|
|
|
|
.PATH: ${.CURDIR}/../../dev/ar
|
|
KMOD = if_ar
|
|
SRCS = if_ar.c if_ar_isa.c if_ar_pci.c
|
|
SRCS += device_if.h bus_if.h pci_if.h isa_if.h opt_netgraph.h
|
|
|
|
.if !defined(KERNBUILDDIR)
|
|
NETGRAPH?= 0
|
|
|
|
.if ${NETGRAPH} != 0
|
|
opt_netgraph.h:
|
|
echo "#define NETGRAPH ${NETGRAPH}" > opt_netgraph.h
|
|
.endif
|
|
.endif
|
|
|
|
.include <bsd.kmod.mk>
|