mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 06:45:38 +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} $@ $^
|
ar ${ARFLAGS} $@ $^
|
||||||
|
|
||||||
expr-tree.o: expr-tree.cc expr-tree.h
|
expr-tree.o: expr-tree.cc expr-tree.h
|
||||||
$(CXX) $< -c -o $@
|
|
||||||
|
|
||||||
hfa.o: hfa.cc apparmor_re.h hfa.h ../immunix.h
|
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
|
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
|
compressed_hfa.o: compressed_hfa.cc compressed_hfa.h ../immunix.h
|
||||||
$(CXX) $< -c -o $@
|
|
||||||
|
|
||||||
parse.o : parse.cc apparmor_re.h expr-tree.h
|
parse.o : parse.cc apparmor_re.h expr-tree.h
|
||||||
$(CXX) $< -c -o $@
|
|
||||||
|
|
||||||
parse.cc : parse.y parse.h flex-tables.h ../immunix.h
|
parse.cc : parse.y parse.h flex-tables.h ../immunix.h
|
||||||
${BISON} -o $@ $<
|
${BISON} -o $@ $<
|
||||||
|
Reference in New Issue
Block a user