selinux-policy/Makefile.devel

25 lines
437 B
Makefile
Raw Normal View History

2006-02-14 17:11:59 +00:00
# installation paths
2006-02-22 22:46:02 +00:00
SHAREDIR := /usr/share/selinux
2006-02-03 14:59:07 +00:00
AWK ?= gawk
2006-10-02 19:45:00 +00:00
NAME ?= $(strip $(shell $(AWK) -F= '/^SELINUXTYPE/{ print $$2 }' /etc/selinux/config))
2006-02-03 14:59:07 +00:00
MLSENABLED := $(shell cat /selinux/mls)
2006-05-04 17:39:16 +00:00
ifeq ($(MLSENABLED),)
MLSENABLED := 1
endif
2006-02-03 14:59:07 +00:00
ifeq ($(MLSENABLED),1)
2006-10-02 19:45:00 +00:00
MCSFLAG=-mcs
endif
ifeq ($(NAME), mls)
NAME = strict
MCSFLAG = -mls
2006-02-03 14:59:07 +00:00
endif
TYPE ?= $(NAME)${MCSFLAG}
2006-05-17 01:40:53 +00:00
HEADERDIR := $(SHAREDIR)/devel/include
2006-02-22 22:46:02 +00:00
include $(HEADERDIR)/Makefile
2006-02-22 00:53:12 +00:00