我正在尝试使用自动工具。我有以下项目层次结构:
    project/src
    project/src/utilities
    project/src/utilities/util.c
    project/src/utilities/util.h
    project/src/sharedObject
    project/src/sharedObject/sharedObject.c
    project/src/sharedObject/sharedObject.h
    project/src/sharedObject/thing.c
    project/src/executable
    project/src/executable/exec.c
    project/src/executable/exec.h
    project/src/executable/thing1.c
    project/src/executable/thing2.c
"executable"并且"sharedObject.so"都依赖于"util.o"和"util.h"。我已经看到了创建便利库的示例,但我不确定如何"Makefile.am"在其他两个子项目的文件中指定它们。这些类型的项目间依赖关系是如何定义的?
两者都"executable"将"sharedObject.so"被安装。"util.o"和文件将"util.h"仅在构建过程中使用。
谢谢