[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Version question and "No rule to make target" question
From: |
Benoit SIGOURE |
Subject: |
Re: Version question and "No rule to make target" question |
Date: |
Mon, 22 Oct 2007 10:39:57 +0200 |
On Oct 22, 2007, at 9:56 AM, Hongliang Wang wrote:
Hello all,
I am new to automake and have been struggling for a while. I have
two questions and would appreciate if anyone could help.
1, My automake version is higher than 1.10, could that be possible?
It's not, it's an old version, a very old one! You do better upgrade
to 1.10 now. Maybe your system has multiple versions installed and
1.10 is available through the command `automake-1.10'.
address@hidden> make
make all-recursive
make[1]: Entering directory `/export/guam/jigsaw/dev/jhwgu/src/jz'
Making all in gen
make[2]: Entering directory `/export/guam/jigsaw/dev/jhwgu/src/jz/gen'
make[2]: *** No rule to make target `zizutil.c', needed by
`zizutil.o'. Stop.
Are you sure that the file `zizutil.c' exists? If this file is
generated, use BUILT_SOURCES (see the automake manual).
My origin Makefile in jz/gen
-------------------------------
CC= gcc
CFLAGS= -I$(GEN) -Wall -Werror
ifdef OPTIMIZE
CFLAGS += -O
endif
ifdef DEBUG
CFLAGS += -g3
endif
# It would be nicer if gmake has a define to identify the platform.
# For now we have to do with the IA64 command line define.
ifdef IA64
CFLAGS += -mlp64
endif
You should tackle this in your configure. Find a way to identify
that you're building for IA64 and add `-mlp64' to AM_CFLAGS and
AC_SUBST it. It would be even better if you took care of writing a
macro that supports cross-compilation and tests whether the current
compiler handles `-mlp64'.
By the way, you should use AM_CFLAGS everywhere, for CFLAGS is
reserved to the user.
Cheers,
--
Benoit Sigoure aka Tsuna
EPITA Research and Development Laboratory
PGP.sig
Description: This is a digitally signed message part