b4e7ac
# installation paths
b4e7ac
SHAREDIR := /usr/share/selinux
b4e7ac
b4e7ac
AWK ?= gawk
b4e7ac
NAME ?= $(strip $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config))
b4e7ac
b4e7ac
ifeq ($(MLSENABLED),)
b4e7ac
	MLSENABLED := 1
b4e7ac
endif
b4e7ac
b4e7ac
ifeq ($(MLSENABLED),1)
b4e7ac
	NTYPE = mcs
b4e7ac
endif
b4e7ac
b4e7ac
ifeq ($(NAME),mls)
b4e7ac
	NTYPE = mls
b4e7ac
endif
b4e7ac
b4e7ac
TYPE ?= $(NTYPE)
b4e7ac
b4e7ac
HEADERDIR := $(SHAREDIR)/devel/include
b4e7ac
include $(HEADERDIR)/Makefile