Mail Archives: djgpp-workers/2002/06/17/16:32:00
Hello.
JT Williams wrote:
>
> -: I looked at the automake installed files and it appears to come from
> -: share/automake/am/yacc.am. But in yacc.am, the names are
> -: y.tab.<whatever>. I haven't found what does changes '.' to '_' yet.
>
> I don't know if there is a canonical solution to this problem,
> but for my own stuff I use a fragment like this in Makefile.cfg:
>
> ifneq ($(COMSPEC),)
> DOT = _
> EXEEXT = .exe
> SEP = ;
> else
> DOT = .
> EXEEXT =
> SEP = :
> endif
>
> after which I make reference only to y$(DOT)tab.h, foo$(EXEEXT), etc.
The problem with that is that the DJGPP ports of bison 1.28 and later will
generate y.tab.c if long filenames are available, otherwise y_tab.c. In both
these cases COMSPEC should be set, so this Makefile fragment is broken.
My suggestion is that automake-generated Makefiles should always force bison
to generate the y_tab.c form. You may also wish to do that to your Makefiles.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -