mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-07 05:59:38 +00:00
758a7fe501
Move code to convert a policy module to CIL from the policy package to CIL conversion tool, pp, in policycoreutils to libsepol. The only changes to the code are the additions of the prefix "sepol_" to the functions sepol_module_package_to_cil() and sepol_ppfile_to_module_package(). This code is being changed from GPL to LGPL with permission from Tresys. Convert pp to use the renamed functions in libsepol. Signed-off-by: James Carter <jwcart2@tycho.nsa.gov>
36 lines
648 B
Makefile
36 lines
648 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 = -lsepol -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])
|