blob: ad5cd76ec231cd14f02b2fb15f07a3d8a069972f [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Makefile for building the SELinux module as part of the kernel tree.
3#
4
Paul Gortmaker60272da2010-09-15 20:14:53 -04005obj-$(CONFIG_SECURITY_SELINUX) := selinux.o
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
Paul Gortmaker60272da2010-09-15 20:14:53 -04007selinux-y := avc.o hooks.o selinuxfs.o netlink.o nlmsgtab.o netif.o \
8 netnode.o netport.o exports.o \
9 ss/ebitmap.o ss/hashtab.o ss/symtab.o ss/sidtab.o ss/avtab.o \
10 ss/policydb.o ss/services.o ss/conditional.o ss/mls.o ss/status.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070011
Trent Jaegerd28d1e02005-12-13 23:12:40 -080012selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o
13
Paul Moore5778eab2007-02-28 15:14:22 -050014selinux-$(CONFIG_NETLABEL) += netlabel.o
15
matt mooney8b0c5432010-09-22 23:50:06 -070016ccflags-y := -Isecurity/selinux -Isecurity/selinux/include
Linus Torvalds1da177e2005-04-16 15:20:36 -070017
Paul Gortmakerceba72a2010-08-09 17:34:25 -040018$(addprefix $(obj)/,$(selinux-y)): $(obj)/flask.h
Stephen Smalley8753f6b2009-09-30 13:41:02 -040019
20quiet_cmd_flask = GEN $(obj)/flask.h $(obj)/av_permissions.h
21 cmd_flask = scripts/selinux/genheaders/genheaders $(obj)/flask.h $(obj)/av_permissions.h
22
Ralf Baechlea7a387c2010-08-06 20:37:56 +010023targets += flask.h av_permissions.h
Stephen Smalley8753f6b2009-09-30 13:41:02 -040024$(obj)/flask.h: $(src)/include/classmap.h FORCE
25 $(call if_changed,flask)