2011-07-10 09:53:29 +00:00
|
|
|
# Installation directories.
|
2011-09-19 20:38:33 +00:00
|
|
|
PREFIX ?= $(DESTDIR)/usr
|
2011-07-10 09:53:29 +00:00
|
|
|
BINDIR ?= $(PREFIX)/bin
|
2011-09-19 20:38:33 +00:00
|
|
|
LIBDIR ?= $(PREFIX)/lib
|
2011-07-10 09:53:29 +00:00
|
|
|
INCLUDEDIR ?= $(PREFIX)/include
|
|
|
|
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
|
|
|
override CFLAGS += -I$(INCLUDEDIR)
|
|
|
|
LDLIBS = $(LIBDIR)/libsepol.a
|
|
|
|
|
|
|
|
all: sepolgen-ifgen-attr-helper
|
|
|
|
|
|
|
|
sepolgen-ifgen-attr-helper: sepolgen-ifgen-attr-helper.o
|
|
|
|
|
|
|
|
install: all
|
|
|
|
-mkdir -p $(BINDIR)
|
|
|
|
install -m 755 sepolgen-ifgen-attr-helper $(BINDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *~ *.o sepolgen-ifgen-attr-helper
|
|
|
|
|
|
|
|
indent:
|
|
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
|
|
|
|
relabel: ;
|