• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Installation directories.
2PREFIX ?= /usr
3BINDIR ?= $(PREFIX)/bin
4
5CFLAGS ?= -Wall -Werror
6override CFLAGS += -I../include
7override LDFLAGS += -L../src
8override LDLIBS += -lsepol
9
10TARGETS=$(patsubst %.c,%,$(sort $(wildcard *.c)))
11
12all: $(TARGETS)
13
14install: all
15	-mkdir -p $(DESTDIR)$(BINDIR)
16	install -m 755 $(TARGETS) $(DESTDIR)$(BINDIR)
17
18clean:
19	-rm -f $(TARGETS) *.o
20
21indent:
22	../../scripts/Lindent $(wildcard *.[ch])
23
24relabel:
25
26