<div dir="ltr">Hi LLVM Devs<div><br></div><div>I am not sure whether this is the right email to ask such kind of question. If not, please tell me the right mailing list.</div><div><br></div><div>I am new to llvm and I am going to use llvm to do some task related to program analysis. Now I would like to generate llvm IR.</div><div><br></div><div>I know that  we can use the command like "clang -S -emit-llvm" to get the llvm IR.</div><div><br></div><div>However, I would like to have a makefile that can help me to generate the llvm IR.</div><div><br></div><div>For example, I am now compiling the coreutils. I use `./configure CC=/path/to/clang  CFLAGS='-S -emit-llvm` to try to generate the target makefile.It doesn't work due to the following error</div><div>make[2]: *** No rule to make target `lib/asnprintf.ll.ll', needed by `lib/libcoreutils.a'.  Stop.<br></div><div><br></div><div>I would like to use clang to cross compile the coreutils and the target architecture is ARM. For the purpose of program analysis, I would like to have the LLVM IR generated and also the dwarf information. Can anyone give me some suggestions. Thank you so much</div><div><br></div><div>Regards</div><div>Muhui</div></div>