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