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