将目标文件重定向到ubuntu linux机器中的其他目录 [英] Redirect the object files to a different directory in ubuntu linux machine

查看:136
本文介绍了将目标文件重定向到ubuntu linux机器中的其他目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将目标文件重定向到a
中的其他目录 Makefile(UNIX).通常,目标文件放置在相同的位置
目录作为源目录.

I would like to redirect the object files to a different directory in a
Makefile (UNIX). Usually, the object files are placed in the same
directory as the source directory.

Please help me if anyone knows this and how to do it efficiently?

推荐答案

您可能只有最后一个构建步骤可以将它们移开;

You could just have a last build step that moves them out of the way;

moveobjectfiles:
    mv *.o some/path/where/these/should/go



希望这会有所帮助,
弗雷德里克(Fredrik)



Hope this helps,
Fredrik


这篇关于将目标文件重定向到ubuntu linux机器中的其他目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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