标题: 请教一个automake的问题

编译打包和其他
回复
loudking
帖子: 7
注册时间: 2005-12-15 16:18

标题: 请教一个automake的问题

#1

帖子 loudking » 2007-10-19 20:09

autoconf version: 2.57
automake version: 1.6.3

执行./configure之后,一切正常

但是执行make之后,报错

make[1]: Entering directory `/jz'
Making all in gen
make[2]: Entering directory `/jz/gen'
make[2]: *** No rule to make target `zizutil.c', needed by
`zizutil.o'. Stop.
make[2]: Leaving directory `/jz/gen'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/jz'

zizutil.c明明是我在jz/gen下面的源文件

为什么会被当成目标文件呢?

Makefile.am in jz
------------------------------
AUTOMAKE_OPTIONS = gnu
SUBDIRS = gen ora util

Makefile.am in jz/gen
--------------------------------
noinst_LIBRARIES = libzizzy.a
libzizzy_a_SOURCES = zizutil.c zizzy.c

configuare.ac in jz
-------------------------------
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.


AC_PREREQ(2.57)
#AC_INIT(FULL-PACKAGE-NAME, VERSION, BUG-REPORT-ADDRESS)
AC_INIT(zizzy, 0.1, f...@bug.com)
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR([config.h.in])
AM_CONFIG_HEADER([config.h])


# Checks for programs.
AC_PROG_CC


# Checks for libraries.
# FIXME: Replace `main' with a function in `-lm':
AC_CHECK_LIB([m], [main])


# Checks for header files.
AC_FUNC_ALLOCA
AC_HEADER_DIRENT
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h sys/time.h unistd.h])


# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_OFF_T
AC_TYPE_PID_T
AC_TYPE_SIZE_T
AC_HEADER_TIME
AC_STRUCT_TM
AC_C_VOLATILE


# Checks for library functions.
AC_FUNC_CLOSEDIR_VOID
AC_FUNC_MALLOC
AC_FUNC_STAT
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([memset sqrt strchr strerror])
#AC_CONFIG_SUBDIRS([gen ora util])
AC_PROG_RANLIB


AC_CONFIG_FILES([Makefile
gen/Makefile
ora/Makefile
util/Makefile])
AC_OUTPUT
回复