|
楼主 |
发表于 2004-9-27 20:40:56
|
显示全部楼层
这是我的Makefile.am
AUTOMAKE_OPTIONS = foreign
INCLUDES = `pkg-config --cflags gtk+-2.0`
LIBS = `pkg-config --libs gtk+-2.0`
bin_PROGRAMS = hello
hello_SOURCES = hello.c
这是我的configure.in
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.57)
AC_INIT(HELLO, 1, 0)
AM_INIT_AUTOMAKE(HELLO,1.0)
AC_CONFIG_SRCDIR([gtk.c])
AM_CONFIG_HEADER([config.h])
# 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_OUTPUT(Makefile)
到最后automake --add-missing -copy
提示出错/usr/bin/automake: `--output-dir' is deprecated
configure.in:8: required file `./config.h.in' not found
Makefile.am:5: invalid unused variable name: `hello_SOURCES'
automake: cannot open > py/Makefile.in: 没有那个文件或目录 |
|