2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 14:25:52 +00:00

This patch fixes the parser's dfa generation library makefile to use

the default compilation rules when compiling C++ files, so that things
like CFLAGS et al will be honored. Without this, doing 'make DEBUG=y'
in the parser/ tree will not have its added -pg flag honored, breaking
profiling of the parser.
This commit is contained in:
Steve Beattie
2011-04-05 20:51:02 -07:00
parent 5b3190d39c
commit d656afa1d5

View File

@@ -16,19 +16,14 @@ libapparmor_re.a: parse.o expr-tree.o hfa.o compressed_hfa.o aare_rules.o
ar ${ARFLAGS} $@ $^
expr-tree.o: expr-tree.cc expr-tree.h
$(CXX) $< -c -o $@
hfa.o: hfa.cc apparmor_re.h hfa.h ../immunix.h
$(CXX) $< -c -o $@
aare_rules.o: aare_rules.cc aare_rules.h apparmor_re.h expr-tree.h hfa.h compressed_hfa.h parse.h ../immunix.h
$(CXX) $< -c -o $@
compressed_hfa.o: compressed_hfa.cc compressed_hfa.h ../immunix.h
$(CXX) $< -c -o $@
parse.o : parse.cc apparmor_re.h expr-tree.h
$(CXX) $< -c -o $@
parse.cc : parse.y parse.h flex-tables.h ../immunix.h
${BISON} -o $@ $<