mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-12 09:05:00 +00:00
c89625db93
SELinux Project contribution of mcstrans. mcstrans is a userland package specific to SELinux which allows system administrators to define sensitivity levels and categories and provides a daemon for their translation into human readable form. This version is a merge of Joe Nalls git tree ( http://github.com/joenall/mcstrans) and patches supplied by Dan Walsh and others at RedHat. Ted Signed-off-by: Steve Lawrence <slawrence@tresys.com>
42 lines
814 B
Makefile
42 lines
814 B
Makefile
# Installation directories.
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
BINDIR ?= $(PREFIX)/sbin
|
|
|
|
ARCH = $(shell uname -i)
|
|
ifeq "$(ARCH)" "x86_64"
|
|
# In case of 64 bit system, use these lines
|
|
LIBDIR=/usr/lib64
|
|
else
|
|
ifeq "$(ARCH)" "i686"
|
|
# In case of 32 bit system, use these lines
|
|
LIBDIR=/usr/lib
|
|
else
|
|
ifeq "$(ARCH)" "i386"
|
|
# In case of 32 bit system, use these lines
|
|
LIBDIR=/usr/lib
|
|
endif
|
|
endif
|
|
endif
|
|
|
|
|
|
CFLAGS ?= -Wall
|
|
override CFLAGS += -I../src -D_GNU_SOURCE
|
|
LDLIBS += -L../src ../src/mcstrans.o ../src/mls_level.o -lselinux -lpcre $(LIBDIR)/libsepol.a
|
|
|
|
TARGETS=$(patsubst %.c,%,$(wildcard *.c))
|
|
|
|
all: $(TARGETS)
|
|
|
|
install: all
|
|
-mkdir -p $(BINDIR)
|
|
install -m 755 $(TARGETS) $(BINDIR)
|
|
|
|
test:
|
|
./mlstrans-test-runner.py ../test/*.test
|
|
|
|
clean:
|
|
rm -f $(TARGETS) *.o *~ \#*
|
|
|
|
relabel:
|
|
|