2008-08-19 19:30:36 +00:00
|
|
|
# Installation directories.
|
|
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
|
|
|
|
CFLAGS ?= -Wall -Werror
|
2017-05-05 10:12:33 +00:00
|
|
|
override CFLAGS += -I../include
|
|
|
|
override LDFLAGS += -L../src
|
2017-06-20 15:16:41 +00:00
|
|
|
override LDLIBS += -lsepol
|
2008-08-19 19:30:36 +00:00
|
|
|
|
2017-05-30 14:21:32 +00:00
|
|
|
TARGETS=$(patsubst %.c,%,$(sort $(wildcard *.c)))
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
|
|
|
install: all
|
|
|
|
-mkdir -p $(BINDIR)
|
|
|
|
install -m 755 $(TARGETS) $(BINDIR)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f $(TARGETS) *.o
|
|
|
|
|
|
|
|
indent:
|
|
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
|
|
|
|
relabel:
|
|
|
|
|