]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/modules/mac_veriexec/Makefile
Import mandoc 1.14.4
[FreeBSD/FreeBSD.git] / sys / modules / mac_veriexec / Makefile
1 # $FreeBSD$
2
3 .PATH: ${.PARSEDIR:H:H}/security/mac_veriexec
4
5 KMOD = mac_veriexec
6 SRCS = \
7         bus_if.h \
8         device_if.h \
9         vnode_if.h
10 SRCS += \
11         opt_capsicum.h \
12         opt_global.h \
13         opt_mac.h \
14         opt_veriexec.h
15 SRCS += \
16         mac_veriexec.c \
17         veriexec_fingerprint.c \
18         veriexec_metadata.c
19
20 EXPORT_SYMS+= ve_mutex \
21         mac_veriexec_in_state \
22         mac_veriexec_get_executable_flags
23
24 .if defined(KERNBUILDDIR)
25 MKDEP=          -include ${KERNBUILDDIR}/opt_global.h
26 .else
27 CFLAGS+=        -include opt_global.h
28 MKDEP=          -include opt_global.h
29 opt_mac.h:
30         echo "#define MAC_DEBUG 1" >> ${.TARGET}
31 opt_global.h:
32         echo "#define MAC 1" > ${.TARGET}
33 .endif
34
35 .ifndef WITHOUT_VERIEXEC_DEBUG
36 CFLAGS+= -DVERIFIED_EXEC_DEBUG
37 .endif
38
39 .include <bsd.kmod.mk>
40