0
我正在尝试使用GNU-make从Chris Crawford的源代码Balance of Power 1990运行makefile。坦率地说,我没有使用makefile的经验,也不知道我在做什么。在生成文件看起来是这样的:试图修复80年代源代码的Makefile
GlobDebug=FALSE
"{BOPO}"BOPSRace1 ト "{BOPO}"BOP2.code "{BOPS}"NewResrc.r
rez "{BOPS}"NewResrc.r -o "DataFrame:BOP2_ト:BOP2"
"{BOPO}"BOP2.code ト "{BOPO}"Globals.p.o カ
"{BOPO}"AsmCode.a.o カ
"{BOPO}"Init.p.o カ
"{BOPO}"Titles.p.o カ
"{BOPO}"Background.p.o カ
"{BOPO}"StdRoutines.p.o カ
"{BOPO}"History.p.o カ
"{BOPO}"PlanMove.p.o カ
"{BOPO}"CrisisU.p.o カ
"{BOPO}"Main.p.o
link "{Libraries}"Interface.o カ
"{Libraries}"Runtime.o カ
"{PLibraries}"Paslib.o カ
"{BOPO}"Globals.p.o カ
"{BOPO}"AsmCode.a.o カ
"{BOPO}"Init.p.o カ
"{BOPO}"Titles.p.o カ
"{BOPO}"Background.p.o カ
"{BOPO}"StdRoutines.p.o カ
"{BOPO}"History.p.o カ
"{BOPO}"PlanMove.p.o カ
"{BOPO}"CrisisU.p.o カ
"{BOPO}"Main.p.o カ
-o "{BOPO}"BOP2.code
"{BOPO}"AsmCode.a.o ト "{BOPS}"AsmCode.a
Asm -o "{BOPO}" "{BOPS}"AsmCode.a
"{BOPO}"Globals.p.o ト "{BOPS}"Globals.p
Pascal -d DebugFlg={GlobDebug} -o "{BOPO}" "{BOPS}"Globals.p
"{BOPO}"Init.p.o ト "{BOPS}"Init.p "{BOPS}"Globals.p
Pascal -d DebugFlg={GlobDebug} -o "{BOPO}" "{BOPS}"Init.p
"{BOPO}"Titles.p.o ト "{BOPS}"Titles.p "{BOPS}"Globals.p
Pascal -d DebugFlg={GlobDebug} -o "{BOPO}" "{BOPS}"Titles.p
"{BOPO}"Background.p.o ト "{BOPS}"Background.p "{BOPS}"Globals.p
Pascal -d DebugFlg={GlobDebug} -o "{BOPO}" "{BOPS}"Background.p
"{BOPO}"StdRoutines.p.o ト "{BOPS}"StdRoutines.p "{BOPS}"Globals.p
Pascal -d DebugFlg={GlobDebug} -o "{BOPO}" "{BOPS}"StdRoutines.p
"{BOPO}"History.p.o ト "{BOPS}"History.p "{BOPS}"Globals.p
Pascal -d DebugFlg={GlobDebug} -o "{BOPO}" "{BOPS}"History.p
"{BOPO}"PlanMove.p.o ト "{BOPS}"PlanMove.p "{BOPS}"Globals.p
Pascal -d DebugFlg={GlobDebug} -o "{BOPO}" "{BOPS}"PlanMove.p
"{BOPO}"CrisisU.p.o ト "{BOPS}"CrisisU.p "{BOPS}"Globals.p
Pascal -d DebugFlg={GlobDebug} -o "{BOPO}" "{BOPS}"CrisisU.p
"{BOPO}"Main.p.o ト "{BOPS}"Main.p "{BOPS}"Globals.p
Pascal -d DebugFlg={GlobDebug} -o "{BOPO}" "{BOPS}"Main.p
即使作为一个总的makefile,小白我可以告诉大家,有一些严重的编码错误(トカ和,这表明了作为元音-A和¶在记事本++)。
我试过
我一直得到“未指定目标”的错误,让我感动,从顶部的“GlobDebug =假”。
然后我得到了“目标模式不包含%”的错误。
我认为(ト)应该是(:),并且在替换它们之后,它产生了“多个目标模式”错误。
在这一点上我很无能。
问题
应当如何进行这些(ト)和(カ)能解决吗?这个makefile还有其他明显的问题吗?
在此先感谢。
谢谢您的建议。但是,我仍然在第一行“{BOPO}”BOPSRace1:“{BOPO}”BOP2.code“{BOPS}”上收到“多个目标模式”错误NewResrc.r –
@PopaPett:什么是确切的错误信息?你知道变量BOPO包含什么吗? – Beta
错误消息是“Makefile:1:***多个目标模式,停止。” (这是在把GlobalDebug的东西放下之后。)我真的不知道BOPO和BOPS是什么,也不知道它应该如何工作。顺便说一句,源代码是[这里]的第一个文件(http://www.erasmatazz.com/library/source-code/index.html) –