如何在makefile中为目标创建文件夹
你好,我已经编写了由目标文件组成 lib.a 的 makefile。我需要从这个库制作 .zip,为其创建新目录并保存。有人可以帮忙吗?
生成文件:
CONFIG ?= BuildConfigurations/config.mk
include $(CONFIG)
objects = $(addsuffix /*.o, $(local_include))
ib.a: $(objects)
${AR} -cr ${@} ${^}
config.mk:
local_include := Target/ASIHTTPRequest
Hello I have written makefile which compose lib.a from object files. I need to make .zip from this lib, create new directory for it and save. Could anybody help?
makefile:
CONFIG ?= BuildConfigurations/config.mk
include $(CONFIG)
objects = $(addsuffix /*.o, $(local_include))
ib.a: $(objects)
${AR} -cr ${@} ${^}
config.mk:
local_include := Target/ASIHTTPRequest
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这类事情至少在某种程度上是特定于平台的。如果你使用的是 Linux,你可以,只是
我不确定这些命令在另一个平台上是否相同。
This sort of a thing is going to be platform specific to at least a degree. If you are on linux you can just
I am not sure if the commands will be the same on another platform.