selinux: fix parallel compile error
[linux-2.6.git] / security / selinux / Makefile
1 #
2 # Makefile for building the SELinux module as part of the kernel tree.
3 #
4
5 obj-$(CONFIG_SECURITY_SELINUX) := selinux.o ss/
6
7 selinux-y := avc.o \
8              hooks.o \
9              selinuxfs.o \
10              netlink.o \
11              nlmsgtab.o \
12              netif.o \
13              netnode.o \
14              netport.o \
15              exports.o
16
17 selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o
18
19 selinux-$(CONFIG_NETLABEL) += netlabel.o
20
21 EXTRA_CFLAGS += -Isecurity/selinux -Isecurity/selinux/include
22
23 $(addprefix $(obj)/,$(selinux-y)): $(obj)/flask.h
24
25 quiet_cmd_flask = GEN     $(obj)/flask.h $(obj)/av_permissions.h
26       cmd_flask = scripts/selinux/genheaders/genheaders $(obj)/flask.h $(obj)/av_permissions.h
27
28 targets += flask.h av_permissions.h
29 $(obj)/flask.h: $(src)/include/classmap.h FORCE
30         $(call if_changed,flask)