wtap: cleanup module Makefile
Remove comments and change whitespace. Cleanup the opt_* and -nclude opt_global.h bits to avoid various warnings.
This commit is contained in:
parent
fb1526ca27
commit
d1f5aa5633
@ -1,10 +1,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
|
||||
# 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
|
||||
|
||||
@ -14,14 +11,14 @@ SRCS += hal.c
|
||||
.PATH: ${SRCTOP}/sys/dev/wtap/plugins
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user