[cfe-dev] Makefile & "make" builds successfully but no executable is generated
Jonathan Roelofs via cfe-dev
cfe-dev at lists.llvm.org
Fri Nov 13 08:46:14 PST 2015
On 11/13/15 9:42 AM, Omid Ghenatnevi via cfe-dev wrote:
>
> Hello everyone,
>
> When I execute the cmd "make" the build is successful. However, the
> executable is NOT created/generated. Am I doing something wrong?
>
> Below is my makefile in my example directory which is located in:
> static_analysis/build/release/tools/clang/tools/example
>
> which contains the Example.cpp file I want to compile
>
>
> Makefile:
>
> CLANG_LEVEL:= ../..
>
> TOOLNAME= example #the name of tool's executable
>
> SOURCES:= Example.cpp #the Clang source files you want to compile
>
> include$(CLANG_LEVEL)/../../Makefile.config
>
> LINK_COMPONENTS:= $(TARGETS_TO_BUILD)asmparser bitreader support mc option
>
> USEDLIBS= clangFrontend.a clangSerialization.a clangDriver.a \
> clangTooling.a clangParse.a clangSema.a \
> clangAnalysis.a clangRewriteFrontend.a clangRewriteCore.a \
> clangEdit.a clangAST.a clangLex.a clangBasic.a
> include$(CLANG_LEVEL)/Makefile
>
> Any help would be greatly appreciated!
Did you tell clang/tools/Makefile about your new directory?
Jon
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
--
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded
More information about the cfe-dev
mailing list