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