【问题标题】:How to create makefile for Linux for the next command - gcc -shared -home/ time.c /libperi.a -o time.so如何为 Linux 下一个命令创建 makefile - gcc -shared -home/ time.c /libperi.a -o time.so
【发布时间】:2021-12-07 06:03:09
【问题描述】:

如何为下一个命令创建 Linux 的 makefile?

gcc -shared -home/ time.c /libperi.a -o time.so

【问题讨论】:

    标签: gcc makefile compilation


    【解决方案1】:

    首先,选择一个名称。此命令似乎构建了time.so,所以这是个好名字。

    makefile 只是一个文本文件。像这样写:

    time.so:
        gcc -shared -home/ time.c /libperi.a -o time.so
    

    gcc 之前的空格是制表符,而不是空格。

    一旦你完成了这项工作,你就可以阅读the manual 并了解有关 Make 的更多信息,这将使你能够编写更强大的规则。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-01
      • 1970-01-01
      • 2020-05-09
      • 2019-07-15
      相关资源
      最近更新 更多