20 lines
372 B
Makefile
20 lines
372 B
Makefile
# installation paths
|
|
SHAREDIR := /usr/share/selinux
|
|
|
|
AWK ?= gawk
|
|
NAME ?= $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config)
|
|
|
|
MLSENABLED := $(shell cat /selinux/mls)
|
|
ifeq ($(MLSENABLED),)
|
|
MLSENABLED := 1
|
|
endif
|
|
|
|
ifeq ($(MLSENABLED),1)
|
|
MCSFLAG=-mcs
|
|
endif
|
|
|
|
TYPE ?= $(NAME)${MCSFLAG}
|
|
HEADERDIR := $(SHAREDIR)/targeted/include
|
|
include $(HEADERDIR)/Makefile
|
|
|