Debugging Makefile

Let me refine this question with a comment that I know very little about Makefile or make.

There is a very large project that is automatically created at night. It is built both in debug mode and in Release mode, Debug is used for utilities such as Valgrind for code analysis. Somehow, some of the built-in libraries lose the debug flag during the make process, which makes some analysis results useless. I was instructed to find the error, and I need some suggestions on how to find / fix the problem.

Thanks in advance

+3
source share
3 answers

, , , Makefile .

, , Make , .

- :

find . -name Makefile -exec grep -nH -- -g {} \;

( -name, Makefiles, foo.mk bar.mak - . "-g", - - .)

, CFLAGS. , , , ​​ (, ifeq($(RELEASE),1)).

Makefile , . , . ? Makefiles ?

, .

+4

, -d; , Makefiles , ( , , script); , , .

+5

use remake its really good

0
source

Source: https://habr.com/ru/post/1754709/


All Articles