Mail Archives: djgpp-workers/2002/12/16/12:18:27
Hello.
Martin Stromberg wrote:
>
> > Index: tests/makefile.inc
> > ===================================================================
> > RCS file: /cvs/djgpp/djgpp/tests/makefile.inc,v
> > retrieving revision 1.3
> > diff -p -u -3 -r1.3 makefile.inc
> > --- tests/makefile.inc 1 Feb 2001 19:38:30 -0000 1.3
> > +++ tests/makefile.inc 14 Dec 2002 16:36:28 -0000
> > @@ -1,3 +1,4 @@
> > +# Copyright (C) 2002 DJ Delorie, see COPYING.DJ for details
> > # Copyright (C) 2001 DJ Delorie, see COPYING.DJ for details
> >
> > include $(TOP)/../makefile.def
> > @@ -41,7 +42,10 @@ export LIBGCCA
> > endif
> >
> > ifeq ($(DJGPP_DJL),)
> > +DJGPP_DJL := $(shell $(CROSS_GCC) $(GCC_OPT) -print-file-name=djgpp-x.djl)
> > +ifeq ($(DJGPP_DJL),djgpp-x.djl)
>
> Should it really be "ifeq" here?
It looks confusing, but if you try -print-file-name on some filename that
doesn't exist, then it echoes it back at you:
bash-2.04$ gcc -print-file-name=i_am_pretty_sure_this_doesnt_exist
i_am_pretty_sure_this_doesnt_exist
> > DJGPP_DJL := $(shell $(CROSS_GCC) $(GCC_OPT) -print-file-name=djgpp.djl)
> > +endif
> > DJGPP_DJL := $(subst \,/,$(DJGPP_DJL))
> > export DJGPP_DJL
> > endif
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -