c417f6b
# installation paths
585f827
SHAREDIR := /usr/share/selinux
de82d85
de82d85
AWK ?= gawk
42dd742
NAME ?= $(strip $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config))
de82d85
de82d85
MLSENABLED := $(shell cat /selinux/mls)
529f12c
ifeq ($(MLSENABLED),)
529f12c
	MLSENABLED := 1
529f12c
endif
529f12c
de82d85
ifeq ($(MLSENABLED),1)
42dd742
	MCSFLAG=-mcs
42dd742
endif
42dd742
42dd742
ifeq ($(NAME), mls)
42dd742
	NAME = strict
42dd742
	MCSFLAG = -mls
de82d85
endif
de82d85
de82d85
TYPE ?= $(NAME)${MCSFLAG}
f4d1707
HEADERDIR := $(SHAREDIR)/devel/include
585f827
include $(HEADERDIR)/Makefile
a57054e