第一步:关于gnu automake autoconf 的实用例子 http://bbs.chinaunix.net/viewthread.php?tid=417883

第例解 autoconf 和 automake 生成 Makefile 文件

http://www.ibm.com/developerworks/cn/linux/l-makefile/

第三步: 一个很乱的 项目记录  http://blog.csdn.net/yangpeng98/article/details/3869666

错误教训: 1.连接顺序   2.库的加载

如:   RootDir

      |Client

          |Service

      |Common

            | Common_sudir1

          | Common_sudir2

 在Client Service下 都要用 到Common_sudir1 Common_sudir2的.a 静态库

在RootDir下的 Makefile.am 应该和Client Service的  顺序 要对应,因为编译顺序要对应

RootDir----Makefile.am的 SUBDIRS =Common_sudir1 Common_sudir2   Client    Service 


Client----Makefile.am的 client_LDADD=../Common/Common_sudir1 /1.a  ../Common/Common_sudir2/2.a
Service----Makefile.am的 Service_LDADD=../Common/Common_sudir1 /1.a  ../Common/Common_sudir2/2.a

相关文章:

  • 2021-05-23
  • 2022-01-07
  • 2021-06-21
  • 2021-10-26
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2021-09-06
  • 2021-04-14
  • 2022-12-23
  • 2021-11-09
  • 2021-12-10
  • 2021-07-21
相关资源
相似解决方案