Makefile 766 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3 4 5 6
#
# Makefile for building the SELinux module as part of the kernel tree.
#

obj-$(CONFIG_SECURITY_SELINUX) := selinux.o ss/

7 8 9 10 11 12 13
selinux-y := avc.o \
	     hooks.o \
	     selinuxfs.o \
	     netlink.o \
	     nlmsgtab.o \
	     netif.o \
	     netnode.o \
P
Paul Moore 已提交
14
	     netport.o \
15
	     exports.o
L
Linus Torvalds 已提交
16

17 18
selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o

19 20
selinux-$(CONFIG_NETLABEL) += netlabel.o

21
EXTRA_CFLAGS += -Isecurity/selinux -Isecurity/selinux/include
L
Linus Torvalds 已提交
22

23
$(addprefix $(obj)/,$(selinux-y)): $(obj)/flask.h
24 25 26 27

quiet_cmd_flask = GEN     $(obj)/flask.h $(obj)/av_permissions.h
      cmd_flask = scripts/selinux/genheaders/genheaders $(obj)/flask.h $(obj)/av_permissions.h

R
Ralf Baechle 已提交
28
targets += flask.h av_permissions.h
29 30
$(obj)/flask.h: $(src)/include/classmap.h FORCE
	$(call if_changed,flask)