blob: 58d80f3bd6f681f6d366f5b67becd7ff433ce2c7 [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
5obj-$(CONFIG_SECURITY_SELINUX) := selinux.o ss/
6
Paul Moore224dfbd2008-01-29 08:38:13 -05007selinux-y := avc.o \
8 hooks.o \
9 selinuxfs.o \
10 netlink.o \
11 nlmsgtab.o \
12 netif.o \
13 netnode.o \
Paul Moore3e112172008-04-10 10:48:14 -040014 netport.o \
Paul Moore224dfbd2008-01-29 08:38:13 -050015 exports.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
Trent Jaegerd28d1e02005-12-13 23:12:40 -080017selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o
18
Paul Moore5778eab2007-02-28 15:14:22 -050019selinux-$(CONFIG_NETLABEL) += netlabel.o
20
Stephen Smalley8753f6b2009-09-30 13:41:02 -040021EXTRA_CFLAGS += -Isecurity/selinux -Isecurity/selinux/include
Linus Torvalds1da177e2005-04-16 15:20:36 -070022
Stephen Smalley8753f6b2009-09-30 13:41:02 -040023$(obj)/avc.o: $(obj)/flask.h
24
25quiet_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
Ralf Baechlea7a387c2010-08-06 20:37:56 +010028targets += flask.h av_permissions.h
Stephen Smalley8753f6b2009-09-30 13:41:02 -040029$(obj)/flask.h: $(src)/include/classmap.h FORCE
30 $(call if_changed,flask)