2008-08-19 19:30:36 +00:00
|
|
|
# Installation directories.
|
|
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
|
|
|
|
CFLAGS ?= -Wall -Werror
|
2017-04-24 17:59:56 +00:00
|
|
|
LDFLAGS += -L../src
|
|
|
|
LDLIBS += -lsepol
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
TARGETS=$(patsubst %.c,%,$(wildcard *.c))
|
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
install: all
|
|
|
|
-mkdir -p $(BINDIR)
|
|
|
|
install -m 755 $(TARGETS) $(BINDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f $(TARGETS) *.o
|
|
|
|
|
|
|
|
indent:
|
|
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
|
|
|
|
relabel:
|
|
|
|
|