0

Attention AutoMake experts... ;)
What is the "proper" way of using certain source files in multiple binaries?
I have a client and a server, and there are some "shared" source files (parse.c/parse.h and message.c/message.h). And of course I have to binaries listed (bin_PROGRAMS = client server). So where in the Makefile.am should parse.c/h and message.c/h be? Listed twice, once in the client's sources and once in the server's sources?

4

1 回答 1

0

我这样做的方式是将有问题的 .h 文件EXTRA_DIST和 .c 文件放入server_SOURCESclient_SOURCES. 不确定这是否是最好的方法,但它确实有效。

于 2013-01-11T03:59:33.877 回答