1# Installation directories. 2PREFIX ?= $(DESTDIR)/usr 3INCLUDEDIR ?= $(PREFIX)/include 4BINDIR ?= $(PREFIX)/bin 5MANDIR ?= $(PREFIX)/share/man 6LIBDIR ?= $(PREFIX)/lib 7 8CFLAGS ?= -Werror -Wall -W 9LDLIBS = -lsepol 10 11all: semodule_link 12 13semodule_link: semodule_link.o 14 15install: all 16 -mkdir -p $(BINDIR) 17 install -m 755 semodule_link $(BINDIR) 18 test -d $(MANDIR)/man8 || install -m 755 -d $(MANDIR)/man8 19 install -m 644 semodule_link.8 $(MANDIR)/man8/ 20 21relabel: 22 23clean: 24 -rm -f semodule_link *.o 25 26indent: 27 ../../scripts/Lindent $(wildcard *.[ch]) 28 29