[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Automake conditional ..question
From: |
Rashmi Keshava Iyengar |
Subject: |
Automake conditional ..question |
Date: |
Mon, 14 Feb 2005 17:40:12 -0800 |
Hi,
I'm trying to do the following
In configure.ac
BLDCHK=' '; AC_SUBST(BLDCHK)
In MakefileProlog.ami
COMMONDEFINES = -D_GNU_SOURCE -D_REENTRANT -DLINUX -DTURN_DEBUGGING_OFF
@address@hidden ($(U32BUILD),1)
COMMONDEFINES += -DUINT_WORD32
@address@hidden
Makefile.am includes MakefileProlog.ami as its first line
I generate the make files and hope to be able to build them as below
make U32BUILD=1
But this doesn't work (i.e.: the UINT_WORD32 remains undefined)
because the makefiles that were generated are like this:
------ start ------
---- stuff -------
COMMONDEFINES = -D_GNU_SOURCE -D_REENTRANT -DLINUX -DTURN_DEBUGGING_OFF
---- some more stuff ------
---- rules to build all the binaries ----
ifeq ($(U32BUILD),1)
COMMONDEFINES += -DUINT_WORD32
endif
----------- end ----------------
The conditional is the very last thing before the end of the makefile,
there is no reference to $U32BUILD anywhere else in the Makefile. Why
is the Makefile being generated this way??
What else do I need to do so that COMMONDEFINES gets set with the
proper flags before the binaries are built ???
BTW, I'm using Automake version 1.6.3 and Autoconf version 2.57 and
make version 3.79.1
Any help ?
TIA
Rashmi
- Automake conditional ..question,
Rashmi Keshava Iyengar <=