On Fri, Jul 4, 2014 at 7:38 AM, Khaled Yakdan <[email protected]> wrote: > Hi, > > many thanks. > > the -save-temps flag did the trick > > best regards, > Khaled > > Am 04.07.2014 12:43, schrieb Pádraig Brady: >> On 07/04/2014 11:20 AM, Khaled Yakdan wrote: >>> Hi all, >>> >>> is there an option to configure so that the make file only runs the >>> preprocessor or at least produces preprocessed source code files in >>> addition to object files? >> >> Not a coreutils specific question, but you could >> pass --save-temps to CFLAGS through configure. >> >> Also for one off debugging, you can see the full command >> used for a standard build like: make V=1 src/$cmd >> and then adjust to add -E to send preprocessed to stdout.
In general, it's better to use AM_CFLAGS, not CFLAGS. For most GNU projects, if you run this command, make AM_CFLAGS='-dD -E' src/some-file.o it puts the cpp-preprocessed version of some-file.c in that .o file. This is a handy hack, but you'll have to remember to run "make clean" to remove those definitely-non-binary .o files before your next real build.
