使用自动工具的Hello World Library
使用自动工具创建 bin 程序非常容易,我只需要定义两个文件。
`Makefile.am'
bin_PROGRAMS = hello
hello_SOURCES = hello.c
`configure.in'
AC_INIT(hello.c)
AM_INIT_AUTOMAKE(hello,1.0)
AC_PROG_CC
AC_PROG_INSTALL
AC_OUTPUT(Makefile)
任何人都可以给出使用自动工具创建静态库的最小示例吗?
Creating bin program is really easy using autotools I need to just define two files.
`Makefile.am'
bin_PROGRAMS = hello
hello_SOURCES = hello.c
`configure.in'
AC_INIT(hello.c)
AM_INIT_AUTOMAKE(hello,1.0)
AC_PROG_CC
AC_PROG_INSTALL
AC_OUTPUT(Makefile)
can any body give a smallest example for creating static library using autotools ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Makefile.am:
configure.ac:
使用 Automake 构建库的文档是 此处。
Makefile.am:
configure.ac:
The documentation for building libraries with Automake is here.