[cfe-dev] Makefile & "make" builds successfully but no executable is generated

Omid Ghenatnevi via cfe-dev cfe-dev at lists.llvm.org
Fri Nov 13 08:42:19 PST 2015


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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151113/2f9bb4e8/attachment.html>


More information about the cfe-dev mailing list