|
|
写了个程序“11.c”:
#include <stdio.h>
int main(int argc,char** argv)
{
printf("Found the answer!\n");
return 0;
}
以下是为了生成Makefile的过程:
$ autoscan
生成的configure.scan改成configure.in,内容改为- # -*- Autoconf -*-
- # Process this file with autoconf to produce a configure script.
- AC_PREREQ(2.61)
- AC_INIT(11, 0.1, miraclecome@gmail.com)
- AC_CONFIG_SRCDIR([11.c])
- AC_CONFIG_HEADER([config.h])
- AM_INIT_AUTOMAKE(11, 0.1)
- # Checks for programs.
- AC_PROG_CC
- # Checks for libraries.
- # Checks for header files.
- # Checks for typedefs, structures, and compiler characteristics.
- # Checks for library functions.
- AC_CONFIG_FILES([Makefile])
- AC_OUTPUT(makefile)
复制代码 $ aclocal
$ autoheader
$ autoconf
$ vi Makefile.am
bin_PROGRAMS=11
11_SOURCES=11.c
$ touch NEWS README ChangeLog AUTHORS
$ automake -a
configure.in:22: required file `makefile.in' not found
出来一句提示,但是没有生成makefile.in
我不知道是什么原因,但是看网上教程都是会生成makefile.in的。
求教,求教。 |
|