c417f6
# installation paths
585f82
SHAREDIR := /usr/share/selinux
de82d8
de82d8
AWK ?= gawk
42dd74
NAME ?= $(strip $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config))
de82d8
de82d8
MLSENABLED := $(shell cat /selinux/mls)
529f12
ifeq ($(MLSENABLED),)
529f12
	MLSENABLED := 1
529f12
endif
529f12
de82d8
ifeq ($(MLSENABLED),1)
27b2b0
	NTYPE = mcs
42dd74
endif
42dd74
27b2b0
ifeq ($(NAME),mls)
27b2b0
	NTYPE = mls
de82d8
endif
de82d8
27b2b0
TYPE ?= $(NTYPE)
27b2b0
f4d170
HEADERDIR := $(SHAREDIR)/devel/include
585f82
include $(HEADERDIR)/Makefile