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:
@@ -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 $@ $<
|
||||
|
Reference in New Issue
Block a user