mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-08 22:49:44 +00:00
089000ad1c
All the other makefiles just have LIBDIR optionally set so it can be overridden. These makefiles were autodetecting incorrectly. uname -i returns "GenuineIntel" so should have been uname -m. Signed-off-by: Jason Zaman <jason@perfinion.com>
26 lines
485 B
Makefile
26 lines
485 B
Makefile
# Installation directories.
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
LIBDIR ?= $(PREFIX)/lib
|
|
BINDIR ?= $(PREFIX)/sbin
|
|
|
|
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:
|
|
|