【发布时间】:2011-11-25 15:42:12
【问题描述】:
我需要使用 GNU 构建系统一次编译多个文件。到目前为止,我只看到了有关如何一次编译一个文件的示例。这是我最喜欢的参考:
http://www.scs.stanford.edu/~reddy/links/gnu/tutorial.pdf
上面写着:
‘Makefile.am’
bin_PROGRAMS = hello
hello_SOURCES = hello.c
‘configure.ac’
AC_INIT([Hello Program],[1.0],
[Author Of The Program <aotp@zxcv.com>],
[hello])
AC_CONFIG_AUX_DIR(config)
AM_INIT_AUTOMAKE([dist-bzip2])
AC_PROG_CC
AC_PROG_INSTALL
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
但是如果我想同时制作hello.c和hello2.c怎么办?
【问题讨论】:
-
这不是一个 make 问题,而是一个 GNU 构建工具问题。