[LLVMdev] help with llvm make system
stefan.oestreicher at deluxe-design.at
Tue Sep 22 06:09:05 PDT 2009
I'm working on a compiler for a small toy language and I'm using the
llvm sample project layout, i.e. the llvm make system.
I've got one library (lomo-core) which contains my parser and all that
stuff and one tool (lomoc) which is my compiler executable.
The tool declares the library as dependency using:
USEDLIBS = lomo-core
Now that I've started to add IR generation I declared the following
dependencies in the library makefile:
LINK_COMPONENTS := support system engine
This compiles and links the library without problems.
Unfortunately no matter what I do to the makefile of the compiler tool
it won't compile. I always get errors in llvm/Support/Annotation.h that
look like some type declarations are missing. Unfortunately my
experience building C/C++ programs, especially with autoconf etc., is
very limited if not to say non-existent. I would very much appreciate
any hint on what I'm doing wrong.
Both makefiles also change the compiler and linker flags after including
the Makefile.common if that's of any relevance:
CXXFLAGS += -I/usr/local/include
LDFLAGS += -L/usr/local/lib -lantlr3c
I'm using llvm 2.5 and building with gcc 3.4.5, gnu make 3.81 on, may
Stallman forgive me, windows xp using mingw/msys.
LLVM itself compiled without problems though so I'm quite sure it's
just me doing something wrong rather than my setup.
More information about the llvm-dev