blob: f013982df417bd1bd930dfab19c911ec21ad7d85 [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
28targets += flask.h
29$(obj)/flask.h: $(src)/include/classmap.h FORCE
30 $(call if_changed,flask)