aboutsummaryrefslogtreecommitdiffstats
path: root/testing/refpolicy/Makefile.devel
diff options
context:
space:
mode:
Diffstat (limited to 'testing/refpolicy/Makefile.devel')
-rw-r--r--testing/refpolicy/Makefile.devel22
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/refpolicy/Makefile.devel b/testing/refpolicy/Makefile.devel
new file mode 100644
index 0000000000..b1c6bfe71f
--- /dev/null
+++ b/testing/refpolicy/Makefile.devel
@@ -0,0 +1,22 @@
+# installation paths
+SHAREDIR := /usr/share/selinux
+
+AWK ?= gawk
+NAME ?= $(strip $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config))
+
+ifeq ($(MLSENABLED),)
+ MLSENABLED := 1
+endif
+
+ifeq ($(MLSENABLED),1)
+ NTYPE = mcs
+endif
+
+ifeq ($(NAME),mls)
+ NTYPE = mls
+endif
+
+TYPE ?= $(NTYPE)
+
+HEADERDIR := $(SHAREDIR)/devel/include
+include $(HEADERDIR)/Makefile