我正在努力,虽然http://llvm.org/docs/WritingAnLLVMPass.html,试图写一个非常简单的通行证。 (假设我使用'Joe'而不是'hello',因为在相关目录中已经有'hello')写LLVM通过 - 失败
我创建了目录'joe',我应该在那里创建建议的cpp文件'joe'(虽然我注意到没有附近的目录里有任何cpp文件),我把它命名为'joe.cpp',因为我不相信我有不同的被告知......
我达到它说,在文档的一部分“编译在本地目录中一个简单的‘使用gmake’命令文件”,但我得到的错误
化妆:***没有规则,使目标
/Users/joXXXXX/llvm/llvm/lib/Transforms/joe/Makefile', needed by
Makefile'。停止。
这是完全混淆。我注意到与this case的相似性,但是在那种情况下运行../config然后在根目录中解决了问题。在我的任务中,这需要20分钟,然后什么都没有改变......任何人都可以告诉我发生了什么,或者给我一些成功的样子?
编辑 - 本地生成文件看起来是这样的:
# Makefile for hello pass
#
# # Path to top level of LLVM hierarchy
LEVEL = ../../..
#
# # Name of the library to build
LIBRARYNAME = joe
#
# # Make the shared library become a loadable module so the tools can
# # dlopen/dlsym on the resulting library.
# LOADABLE_MODULE = 1
BUILD_ARCHIVE = 1
# # Include the makefile implementation stuff
include $(LEVEL)/Makefile.common
你有像Makefile这样的指令:... '在你的Makefile中。这就是错误信息所说的。 – 2012-07-24 23:21:23
编辑为makefile提供全部内容:) – Joe 2012-07-24 23:42:36