1229970Sadrian# $FreeBSD: releng/10.3/sys/modules/wtap/Makefile 230273 2012-01-17 18:20:34Z adrian $ 2229970Sadrian 3229970Sadrian 4229970Sadrian# Declare Name of kernel module 5229970SadrianKMOD = wtap 6229970Sadrian 7229970Sadrian# Enumerate Source files for kernel module 8230273Sadrian.PATH: ${.CURDIR}/../../dev/wtap 9229970SadrianSRCS = if_wtap_module.c if_wtap.c if_medium.c 10229970Sadrian 11229970Sadrian.PATH: ${.CURDIR}/../../dev/wtap/wtap_hal 12229970SadrianSRCS += hal.c 13229970Sadrian 14229970Sadrian.PATH: ${.CURDIR}/../../dev/wtap/plugins 15229970SadrianSRCS += visibility.c 16229970Sadrian 17229970SadrianSRCS += opt_global.h 18229970Sadrian 19229970Sadrian.if defined(KERNBUILDDIR) 20229970SadrianMKDEP= -include ${KERNBUILDDIR}/opt_global.h 21229970Sadrian.else 22229970SadrianCFLAGS+= -include opt_global.h 23229970SadrianMKDEP= -include opt_global.h 24229970Sadrian 25229970Sadrianopt_global.h: 26229970Sadrian echo "#define VIMAGE 1" > ${.TARGET} 27229970Sadrian.endif 28229970Sadrian 29229970Sadrian# Include kernel module makefile 30229970Sadrian.include <bsd.kmod.mk> 31