]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - security/selinux/Makefile
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / security / selinux / Makefile
CommitLineData
b2441318 1# SPDX-License-Identifier: GPL-2.0
1da177e4
LT
2#
3# Makefile for building the SELinux module as part of the kernel tree.
4#
5
60272da0
PG
6obj-$(CONFIG_SECURITY_SELINUX) := selinux.o
7
8selinux-y := avc.o hooks.o selinuxfs.o netlink.o nlmsgtab.o netif.o \
409dcf31 9 netnode.o netport.o ibpkey.o exports.o \
60272da0
PG
10 ss/ebitmap.o ss/hashtab.o ss/symtab.o ss/sidtab.o ss/avtab.o \
11 ss/policydb.o ss/services.o ss/conditional.o ss/mls.o ss/status.o
1da177e4 12
d28d1e08
TJ
13selinux-$(CONFIG_SECURITY_NETWORK_XFRM) += xfrm.o
14
5778eabd
PM
15selinux-$(CONFIG_NETLABEL) += netlabel.o
16
9090a2d5 17ccflags-y := -I$(srctree)/security/selinux -I$(srctree)/security/selinux/include
1da177e4 18
ceba72a6 19$(addprefix $(obj)/,$(selinux-y)): $(obj)/flask.h
8753f6be
SS
20
21quiet_cmd_flask = GEN $(obj)/flask.h $(obj)/av_permissions.h
22 cmd_flask = scripts/selinux/genheaders/genheaders $(obj)/flask.h $(obj)/av_permissions.h
23
a7a387cc 24targets += flask.h av_permissions.h
8753f6be
SS
25$(obj)/flask.h: $(src)/include/classmap.h FORCE
26 $(call if_changed,flask)