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