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 | |
| 5 | obj-$(CONFIG_SECURITY_SELINUX) := selinux.o ss/ |
| 6 | |
Paul Moore | 224dfbd | 2008-01-29 08:38:13 -0500 | [diff] [blame] | 7 | selinux-y := avc.o \ |
| 8 | hooks.o \ |
| 9 | selinuxfs.o \ |
| 10 | netlink.o \ |
| 11 | nlmsgtab.o \ |
| 12 | netif.o \ |
| 13 | netnode.o \ |
Paul Moore | 3e11217 | 2008-04-10 10:48:14 -0400 | [diff] [blame] | 14 | netport.o \ |
Paul Moore | 224dfbd | 2008-01-29 08:38:13 -0500 | [diff] [blame] | 15 | exports.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
Trent Jaeger | d28d1e0 | 2005-12-13 23:12:40 -0800 | [diff] [blame] | 17 | selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o |
| 18 | |
Paul Moore | 5778eab | 2007-02-28 15:14:22 -0500 | [diff] [blame] | 19 | selinux-$(CONFIG_NETLABEL) += netlabel.o |
| 20 | |
Stephen Smalley | 8753f6b | 2009-09-30 13:41:02 -0400 | [diff] [blame^] | 21 | EXTRA_CFLAGS += -Isecurity/selinux -Isecurity/selinux/include |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 22 | |
Stephen Smalley | 8753f6b | 2009-09-30 13:41:02 -0400 | [diff] [blame^] | 23 | $(obj)/avc.o: $(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 |
| 29 | $(obj)/flask.h: $(src)/include/classmap.h FORCE |
| 30 | $(call if_changed,flask) |