selinux/policycoreutils/hll/pp/Makefile

34 lines
593 B
Makefile
Raw Normal View History

# Installation directories.
PREFIX ?= $(DESTDIR)/usr
INCLUDEDIR ?= $(PREFIX)/include
MANDIR = $(PREFIX)/share/man
LIBDIR ?= $(PREFIX)/lib
LIBEXECDIR ?= $(PREFIX)/libexec
HLLDIR ?= $(LIBEXECDIR)/selinux/hll
CFLAGS ?= -Werror -Wall -W
override LDLIBS += -lsepol
PP_SRCS = $(sort $(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])