1PYTHON ?= python 2 3# Installation directories. 4PREFIX ?= $(DESTDIR)/usr 5BINDIR ?= $(PREFIX)/bin 6LIBDIR ?= $(PREFIX)/lib 7MANDIR ?= $(PREFIX)/share/man 8LOCALEDIR ?= /usr/share/locale 9INCLUDEDIR ?= $(PREFIX)/include 10LIBSEPOLA ?= $(LIBDIR)/libsepol.a 11 12CFLAGS ?= -Werror -Wall -W 13 14all: audit2why sepolgen-ifgen-attr-helper 15 16sepolgen-ifgen-attr-helper: sepolgen-ifgen-attr-helper.o $(LIBSEPOLA) 17 18audit2why: 19 ln -sf audit2allow audit2why 20 21test: all 22 @$(PYTHON) test_audit2allow.py -v 23 24install: all 25 -mkdir -p $(BINDIR) 26 install -m 755 audit2allow $(BINDIR) 27 (cd $(BINDIR); ln -sf audit2allow audit2why) 28 install -m 755 sepolgen-ifgen-attr-helper $(BINDIR) 29 install -m 755 sepolgen-ifgen $(BINDIR) 30 -mkdir -p $(MANDIR)/man1 31 install -m 644 audit2allow.1 $(MANDIR)/man1/ 32 install -m 644 audit2why.1 $(MANDIR)/man1/ 33 34clean: 35 rm -f *~ *.o sepolgen-ifgen-attr-helper 36 37indent: 38 ../../scripts/Lindent $(wildcard *.[ch]) 39 40relabel: ; 41