Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | # |
| 2 | # Makefile for building the SELinux module as part of the kernel tree. |
| 3 | # |
| 4 | |
Paul Gortmaker | 60272da | 2010-09-15 20:14:53 -0400 | [diff] [blame] | 5 | obj-$(CONFIG_SECURITY_SELINUX) := selinux.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | |
Paul Gortmaker | 60272da | 2010-09-15 20:14:53 -0400 | [diff] [blame] | 7 | selinux-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 Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | |
Trent Jaeger | d28d1e0 | 2005-12-13 23:12:40 -0800 | [diff] [blame] | 12 | selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o |
| 13 | |
Paul Moore | 5778eab | 2007-02-28 15:14:22 -0500 | [diff] [blame] | 14 | selinux-$(CONFIG_NETLABEL) += netlabel.o |
| 15 | |
matt mooney | 8b0c543 | 2010-09-22 23:50:06 -0700 | [diff] [blame] | 16 | ccflags-y := -Isecurity/selinux -Isecurity/selinux/include |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | |
Paul Gortmaker | ceba72a | 2010-08-09 17:34:25 -0400 | [diff] [blame] | 18 | $(addprefix $(obj)/,$(selinux-y)): $(obj)/flask.h |
Stephen Smalley | 8753f6b | 2009-09-30 13:41:02 -0400 | [diff] [blame] | 19 | |
| 20 | quiet_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 Baechle | a7a387c | 2010-08-06 20:37:56 +0100 | [diff] [blame] | 23 | targets += flask.h av_permissions.h |
Stephen Smalley | 8753f6b | 2009-09-30 13:41:02 -0400 | [diff] [blame] | 24 | $(obj)/flask.h: $(src)/include/classmap.h FORCE |
| 25 | $(call if_changed,flask) |