UNIX中的Makefile错误 [英] Makefile error in UNIX

查看:92
本文介绍了UNIX中的Makefile错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经为我的简单C应用程序创建了一个makefile.
我能够通过makefile成功创建对象和库文件.
我也为可执行文件写了一个代码片段,但是不知何故它不起作用.
这是makefile中可执行文件的代码:

Hi,

I had created a makefile for my simple C application.
I am able to create object and library file through makefile sucessfully.
I had written a code snippet for executable file also, but somehow its not working.
Here is the code for executable in makefile:

$(BIN)/EXT: $(OBJ)/EXT.o (respective dep. file paths)
  $(CCC) -o $@ $(OBJ)/EXT.o .a (respective dep. file paths) $(CLDFLAGS) $(CLIBPATHS) $(CLIBS)



如何从makefile获取可执行文件?

请帮帮我!!!!!!!!!!!!!!!
提前致谢. :-O



How to get the executable from makefile?

Help me out please!!!!!!!!!!
Thanks in advance. :-O

推荐答案

(BIN)/EXT:


(OBJ)/EXT.o(分别为Dep.文件路径) )
(OBJ)/EXT.o (respective dep. file paths)


(CCC)-o


这篇关于UNIX中的Makefile错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆