[LLVMdev] fudging the top-level Makefile

Mike Stump mrs at apple.com
Thu Oct 8 17:18:08 PDT 2009


On Oct 8, 2009, at 4:52 PM, Stuart Hastings wrote:
> Currently, to get LLVM to build "Apple-style," it's necessary to  
> copy two files (utils/buildit/GNUmakefile and utils/buildit/ 
> build_llvm) into the top-level directory.

Why not:

$ RC_ARCHS="x86" make
echo Apple Build.
Apple Build.
$ make
echo Standard Build
Standard Build
$ cat Makefile
ifneq ($(RC_ARCHS),)
include Makefile.apple
else
all:
	echo Standard Build
endif
mrs $ cat Makefile.apple
all:
	echo Apple Build.

It leaves Makefile mostly alone, all except for three lines at the top  
and one line at the end of it.



More information about the llvm-dev mailing list