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