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 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 27b2b0
	NTYPE = mcs
Daniel J Walsh 42dd74
endif
Daniel J Walsh 42dd74
Daniel J Walsh 27b2b0
ifeq ($(NAME),mls)
Daniel J Walsh 27b2b0
	NTYPE = mls
Daniel J Walsh de82d8
endif
Daniel J Walsh de82d8
Daniel J Walsh 27b2b0
TYPE ?= $(NTYPE)
Daniel J Walsh 27b2b0
Daniel J Walsh f4d170
HEADERDIR := $(SHAREDIR)/devel/include
Daniel J Walsh 585f82
include $(HEADERDIR)/Makefile