There is another way for building mcc16 in tree indepandent of sources Change DIRS = plugins driver to DIRS = plugins driverexample/mcc16 in tools/llmc/Makefile works for me mcc16 is then generated directly from the llvm main makefile.