mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-10 15:39:25 +00:00
893851c0a1
Reads in a policy package file via stdin or via filename, and writes out the equivilent CIL to stdout or to an output file, depending on the parameters passed in. Signed-off-by: Steve Lawrence <slawrence@tresys.com>
36 lines
661 B
Makefile
36 lines
661 B
Makefile
# Installation directories.
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
INCLUDEDIR ?= $(PREFIX)/include
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR = $(PREFIX)/share/man
|
|
LIBDIR ?= $(PREFIX)/lib
|
|
LIBEXECDIR ?= $(PREFIX)/libexec
|
|
HLLDIR ?= $(LIBEXECDIR)/selinux/hll
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
|
override CFLAGS += -I$(INCLUDEDIR)
|
|
LDLIBS = $(LIBDIR)/libsepol.a -L$(LIBDIR)
|
|
|
|
PP_SRCS = $(wildcard *.c)
|
|
PP_OBJS = $(patsubst %.c,%.o,$(PP_SRCS))
|
|
|
|
all: pp
|
|
|
|
pp: $(PP_OBJS)
|
|
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $^
|
|
|
|
install: all
|
|
-mkdir -p $(HLLDIR)
|
|
install -m 755 pp $(HLLDIR)
|
|
|
|
relabel:
|
|
|
|
clean:
|
|
-rm -f pp $(PP_OBJS)
|
|
|
|
indent:
|
|
../../scripts/Lindent $(wildcard *.[ch])
|