mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-03 20:22:05 +00:00
fcb5d5cc72
The toolchain automatically handles them and they break cross compiling. LDFLAGS should also come before object files, some flags (eg, -Wl,as-needed) can break things if they are in the wrong place) Gentoo-Bug: https://bugs.gentoo.org/500674 Signed-off-by: Jason Zaman <jason@perfinion.com>
41 lines
917 B
Makefile
41 lines
917 B
Makefile
PYTHON ?= python
|
|
|
|
# Installation directories.
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
BINDIR ?= $(PREFIX)/bin
|
|
LIBDIR ?= $(PREFIX)/lib
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
LOCALEDIR ?= /usr/share/locale
|
|
INCLUDEDIR ?= $(PREFIX)/include
|
|
LIBSEPOLA ?= $(LIBDIR)/libsepol.a
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
|
|
|
all: audit2why sepolgen-ifgen-attr-helper
|
|
|
|
sepolgen-ifgen-attr-helper: sepolgen-ifgen-attr-helper.o $(LIBSEPOLA)
|
|
|
|
audit2why:
|
|
ln -sf audit2allow audit2why
|
|
|
|
test: all
|
|
@$(PYTHON) test_audit2allow.py -v
|
|
|
|
install: all
|
|
-mkdir -p $(BINDIR)
|
|
install -m 755 audit2allow $(BINDIR)
|
|
(cd $(BINDIR); ln -sf audit2allow audit2why)
|
|
install -m 755 sepolgen-ifgen-attr-helper $(BINDIR)
|
|
install -m 755 sepolgen-ifgen $(BINDIR)
|
|
-mkdir -p $(MANDIR)/man1
|
|
install -m 644 audit2allow.1 $(MANDIR)/man1/
|
|
install -m 644 audit2why.1 $(MANDIR)/man1/
|
|
|
|
clean:
|
|
rm -f *~ *.o sepolgen-ifgen-attr-helper
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
relabel: ;
|