Home | History | Annotate | Download | only in audit2allow
      1 PYTHON ?= python
      2 
      3 # Installation directories.
      4 PREFIX ?= $(DESTDIR)/usr
      5 BINDIR ?= $(PREFIX)/bin
      6 LIBDIR ?= $(PREFIX)/lib
      7 MANDIR ?= $(PREFIX)/share/man
      8 LOCALEDIR ?= /usr/share/locale
      9 INCLUDEDIR ?= $(PREFIX)/include
     10 LIBSEPOLA ?= $(LIBDIR)/libsepol.a
     11 
     12 CFLAGS ?= -Werror -Wall -W
     13 
     14 all: audit2why sepolgen-ifgen-attr-helper
     15 
     16 sepolgen-ifgen-attr-helper: sepolgen-ifgen-attr-helper.o $(LIBSEPOLA)
     17 
     18 audit2why:
     19 	ln -sf audit2allow audit2why
     20 
     21 test: all
     22 	@$(PYTHON) test_audit2allow.py -v
     23 
     24 install: 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 
     34 clean:
     35 	rm -f *~ *.o sepolgen-ifgen-attr-helper
     36 
     37 indent:
     38 	../../scripts/Lindent $(wildcard *.[ch])
     39 
     40 relabel: ;
     41