Blob Blame History Raw
# installation paths
SHAREDIR := /usr/share/selinux
HEADERDIR := $(SHAREDIR)/devel/include

AWK ?= gawk
NAME ?= $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config)

MLSENABLED := $(shell cat /selinux/mls)
ifeq ($(MLSENABLED),1)
MCSFLAG=-mcs
endif

TYPE ?= $(NAME)${MCSFLAG}

include $(HEADERDIR)/Makefile