[Rd] Bug(?) in Makefile.win

Duncan Murdoch dmurdoch@pair.com
Tue, 06 Nov 2001 19:40:25 -0500


On Tue, 6 Nov 2001 22:08:46 +0000 (GMT), Prof Brian D Ripley
<ripley@stats.ox.ac.uk> wrote:
>> 1.  Should Makefile.win and Makefile perform identically on Windows?
>
>No.  Makefile.win is only designed to be used in the src dir.  If so
>it is used (see MakePkg) but a src/Makefile never is.

I don't think I understand your answer; I'm not sure you understood my
question.  

Rephrased:  If I have a single makefile in my src directory, and I'm
compiling in Windows, I would have expected it to make no difference
whether I call it Makefile or Makefile.win.   But it does.  "Makefile"
works, "Makefile.win" doesn't.

If I have both files, on Windows I would have expected the package
making process to completely ignore src/Makefile.  It appears that
this happens, but the make still doesn't work, because it acts like
Makefile.win alone.
>
>So they are quite distinct, in my understanding.
>
>You probably want to include MkRules in your own Makefile.win.

I added this line at the start:

include $(RHOME)/src/gnuwin32/MkRules

and the way it fails is different (it appears to have all the macros
defined, but the linker isn't finding some symbols it should).  I
tried adding 

include $(RHOME)/src/gnuwin32/MakeVars

but then make complained, because that MakeVars file just includes
this line 

!<arch>

which it doesn't understand (and either do I).

Duncan
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._