There are several environment variables that a Makefile needs to set to use the LLVM build system:
After updating autoconf/configure.ac, regenerate the configure script with these commands:
cd autoconf
autoconf -o ../configure
You must be using Autoconf version 2.57 or higher.
Libraries can be object files, archives, or dynamic libraries. The lib directory is just a convenient place for libraries as it places them all in a directory from which they can be linked later.
By placing your header files in include, they will be found automatically by the LLVM build system. For example, if you have a file include/jazz/note.h, then your source files can include it simply with #include "jazz/note.h".
It is highly suggested that you append to CFLAGS and CPPFLAGS as opposed to overwriting them. The master Makefiles may already have useful options in them that you may not want to overwrite.