From f6ee2913053fae980acb28ff2a09726dcfc90ff0 Mon Sep 17 00:00:00 2001 From: Yaroslav Tykhiy Date: Fri, 10 Feb 2006 00:38:08 +0000 Subject: MFC: 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 --- sys/modules/an/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/modules/an') diff --git a/sys/modules/an/Makefile b/sys/modules/an/Makefile index c2c66d5fa700..7b7ad7898a5b 100644 --- a/sys/modules/an/Makefile +++ b/sys/modules/an/Makefile @@ -7,7 +7,9 @@ SRCS= if_an.c if_an_pccard.c if_an_pci.c if_an_isa.c SRCS+= opt_inet.h device_if.h bus_if.h pci_if.h isa_if.h card_if.h SRCS+= pccarddevs.h +.if !defined(KERNBUILDDIR) opt_inet.h: echo "#define INET 1" > opt_inet.h +.endif .include -- cgit v1.3