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