【问题标题】:Calling Makefile of winexe from Makefile of Rsync从 Rsync 的 Makefile 调用 winexe 的 Makefile
【发布时间】:2013-01-10 09:16:24
【问题描述】:

我想合并两个不同的源代码并为此制作一个可执行文件。 我将 sourcecode1 作为 RSYNC,将 sourcecode2 作为 WINEXE。 我想将 WINEXE 代码集成到 RSYNC 中。为此,我将 WINEXE 代码放在 RSYNC 代码中。

我将位于 RSYNC 的 Makefile 中的 WINEXE/source4/ 中的 WINEXE makefile 称为

WINEXE = winexe/source4

TARGET = $(WINEXE)

$(TARGET):

         @$(MAKE) -C $@;

并从RSYNC代码调用WINEXE的主函数。

但是我遇到了很多与找不到头文件相同的错误。但是当我在 WINEXE 中使用“make”命令时,它工作正常。

头文件有数百个,每个文件中的头文件和库的路径都不可能改变。

请告诉我如何整合这两个代码?

【问题讨论】:

  • 你提到你得到“同样的错误”?究竟是哪些错误?你在哪里得到错误?

标签: makefile header-files rsync winexe


【解决方案1】:

问题已解决: 尝试使用以下命令

.PHONY:winexe

winexe:

     cd winexe/source4 && ./configure && make 

     @echo "i am here inside source"

在外层Makefile中,调用内层文件夹的Makefile。

【讨论】:

    猜你喜欢
    • 2023-04-07
    • 2011-01-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-10-16
    • 2019-11-12
    相关资源
    最近更新 更多