#
# Makefile for the kernel security code
#

# The target object and module list name.
O_TARGET	:= vmlinux-obj.o

# subdirectory list
subdir-$(CONFIG_SECURITY_SELINUX)	+= selinux
subdir-$(CONFIG_SECURITY_SELINUX_SELOPT)+= selinux/selopt
subdir-$(CONFIG_SECURITY_DTE)		+= dte
subdir-$(CONFIG_LIDS)		+= lids 

# Objects that export symbols
export-objs	:= security.o

# Object file lists
obj-y		:= security.o dummy.o

# Must precede capabilities in order to stack properly.
ifeq ($(CONFIG_SECURITY_SELINUX),y)
	obj-$(CONFIG_SECURITY_SELINUX)	+= selinux/selinux-obj.o
endif
obj-$(CONFIG_SECURITY_CAPABILITIES)	+= capability.o
obj-$(CONFIG_SECURITY_IP)		+= lsm_ip_glue.o
obj-$(CONFIG_SECURITY_OWLSM)		+= owlsm.o
ifeq ($(CONFIG_SECURITY_DTE),y)
	obj-y += dte/dte_plug.o
endif
ifeq ($(CONFIG_LIDS),y)
	obj-y += lids/lids.o
endif

include $(TOPDIR)/Rules.make
