我正在努力,雖然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