mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-09 15:45:08 +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>
33 lines
697 B
Makefile
33 lines
697 B
Makefile
# Installation directories.
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR = $(PREFIX)/share/man
|
|
ETCDIR ?= $(DESTDIR)/etc
|
|
LIBDIR ?= $(PREFIX)/lib
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
|
override CFLAGS += -D_FILE_OFFSET_BITS=64
|
|
LDLIBS = -lselinux
|
|
|
|
all: sestatus
|
|
|
|
sestatus: sestatus.o
|
|
|
|
install: all
|
|
[ -d $(MANDIR)/man8 ] || mkdir -p $(MANDIR)/man8
|
|
[ -d $(MANDIR)/man5 ] || mkdir -p $(MANDIR)/man5
|
|
-mkdir -p $(SBINDIR)
|
|
install -m 755 sestatus $(SBINDIR)
|
|
install -m 644 sestatus.8 $(MANDIR)/man8
|
|
install -m 644 sestatus.conf.5 $(MANDIR)/man5
|
|
-mkdir -p $(ETCDIR)
|
|
install -m 644 sestatus.conf $(ETCDIR)
|
|
|
|
clean:
|
|
rm -f sestatus *.o
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
relabel:
|