1# Installation directories. 2PREFIX ?= $(DESTDIR)/usr 3LIBDIR ?= $(PREFIX)/lib 4SBINDIR ?= $(PREFIX)/sbin 5LIBSEPOLA ?= $(LIBDIR)/libsepol.a 6 7CFLAGS ?= -Wall 8override CFLAGS += -I../src -D_GNU_SOURCE 9override LDLIBS += -lselinux -lpcre 10 11TARGETS=$(patsubst %.c,%,$(sort $(wildcard *.c))) 12 13all: $(TARGETS) 14 15$(TARGETS): ../src/mcstrans.o ../src/mls_level.o $(LIBSEPOLA) 16 17install: all 18 -mkdir -p $(SBINDIR) 19 install -m 755 $(TARGETS) $(SBINDIR) 20 21test: 22 ./mlstrans-test-runner.py ../test/*.test 23 24clean: 25 rm -f $(TARGETS) *.o *~ \#* 26 27relabel: 28 29