git: d1f5aa5633ea - main - wtap: cleanup module Makefile
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 01 Aug 2022 19:52:40 UTC
The branch main has been updated by bz:
URL: https://cgit.FreeBSD.org/src/commit/?id=d1f5aa5633ea8520b03bd8ed90d57b020d89a45c
commit d1f5aa5633ea8520b03bd8ed90d57b020d89a45c
Author: Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2022-08-01 19:43:55 +0000
Commit: Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2022-08-01 19:49:59 +0000
wtap: cleanup module Makefile
Remove comments and change whitespace.
Cleanup the opt_* and -nclude opt_global.h bits to avoid various warnings.
---
sys/modules/wtap/Makefile | 21 +++++++++------------
1 file changed, 9 insertions(+), 12 deletions(-)
diff --git a/sys/modules/wtap/Makefile b/sys/modules/wtap/Makefile
index 4386bf0dd7ad..d8ec70a2d3f0 100644
--- a/sys/modules/wtap/Makefile
+++ b/sys/modules/wtap/Makefile
@@ -1,27 +1,24 @@
# $FreeBSD$
+KMOD= wtap
-# Declare Name of kernel module
-KMOD = wtap
-
-# Enumerate Source files for kernel module
.PATH: ${SRCTOP}/sys/dev/wtap
-SRCS = if_wtap_module.c if_wtap.c if_medium.c
+SRCS= if_wtap_module.c if_wtap.c if_medium.c
.PATH: ${SRCTOP}/sys/dev/wtap/wtap_hal
-SRCS += hal.c
+SRCS+= hal.c
.PATH: ${SRCTOP}/sys/dev/wtap/plugins
-SRCS += visibility.c
+SRCS+= visibility.c
-SRCS += opt_global.h
+SRCS+= opt_wlan.h opt_global.h
.if !defined(KERNBUILDDIR)
-CFLAGS+= -include opt_global.h
-
+.if defined(VIMAGE)
opt_global.h:
- echo "#define VIMAGE 1" > ${.TARGET}
+ echo "#define VIMAGE 1" >> ${.TARGET}
+CFLAGS+= -include opt_global.h
+.endif
.endif
-# Include kernel module makefile
.include <bsd.kmod.mk>