私はautotoolsで手を試しています。次のプロジェクト階層があります。
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"
が、他の 2 つのサブプロジェクトのファイルでそれらを指定する方法がわかりません。これらの種類のプロジェクト間の依存関係はどのように定義されていますか?
"executable"
との両方"sharedObject.so"
がインストールされます。およびファイルは"util.o"
、"util.h"
ビルド プロセスでのみ使用されます。
ありがとうございました