运行MakeFile时出现问题

时间:2011-09-22 12:49:31

标签: macos gcc makefile terminal

我正在尝试学习/使用inject_and_interpose项目。

我遇到make file的问题。当我尝试在终端上执行make文件时,我收到以下错误消息。

i686-apple-darwin10-gcc-4.2.1: ?=: No such file or directory
i686-apple-darwin10-gcc-4.2.1: gcc: No such file or directory
i686-apple-darwin10-gcc-4.2.1: no input files
ARCH: Can't find any plists for ARCH
i686-apple-darwin10-gcc-4.2.1: no input files
./Makefile: line 3: findstring: command not found
./Makefile: line 3: ifeq: command not found
ARCH: Can't find any plists for ARCH
./Makefile: line 5: endif: command not found
./Makefile: line 7: all:: command not found
./Makefile: line 9: testlib.dylib:: command not found
i686-apple-darwin10-gcc-4.2.1: no input files
ARCH: Can't find any plists for ARCH
./Makefile: line 10: -dynamiclib: command not found
./Makefile: line 11: tester:: command not found
i686-apple-darwin10-gcc-4.2.1: no input files
./Makefile: line 12: -O3: command not found
./Makefile: line 13: testputs:: command not found
i686-apple-darwin10-gcc-4.2.1: no input files
./Makefile: line 14: -o: command not found
./Makefile: line 15: clean:: command not found
rm: tester: is a directory

有人可以解释一下我为正确运行此make文件所做的更改吗?或者我做错了什么?

1 个答案:

答案 0 :(得分:4)

Makefile不打算由sh或朋友运行。您可以通过运行

来调用它
$ make

在makefile所在的目录中。