mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-05 17:01:00 +01:00

Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Kees Cook <kees@ubuntu.com>
32 lines
648 B
Makefile
32 lines
648 B
Makefile
# Profiling:
|
|
#EXTRA_CFLAGS = -pg
|
|
|
|
TARGET=libapparmor_re.a
|
|
|
|
CFLAGS ?= -g -Wall -O2 ${EXTRA_CFLAGS}
|
|
CXXFLAGS := ${CFLAGS} -std=c++0x
|
|
|
|
ARFLAGS=-rcs
|
|
|
|
BISON := bison
|
|
|
|
all : ${TARGET}
|
|
|
|
libapparmor_re.a: parse.o expr-tree.o hfa.o chfa.o aare_rules.o
|
|
ar ${ARFLAGS} $@ $^
|
|
|
|
expr-tree.o: expr-tree.cc expr-tree.h
|
|
|
|
hfa.o: hfa.cc apparmor_re.h hfa.h ../immunix.h
|
|
|
|
aare_rules.o: aare_rules.cc aare_rules.h apparmor_re.h expr-tree.h hfa.h chfa.h parse.h ../immunix.h
|
|
|
|
chfa.o: chfa.cc chfa.h ../immunix.h
|
|
|
|
parse.o : parse.cc apparmor_re.h expr-tree.h
|
|
|
|
parse.cc : parse.y parse.h flex-tables.h ../immunix.h
|
|
${BISON} -o $@ $<
|
|
|
|
clean:
|
|
rm -f *.o parse.cc ${TARGET}
|