Skip to content
Prev 27079 / 63458 Next

SHLIB steps on a Makefile

On Thu, 20 Dec 2007, Iago Mosqueira wrote:

            
That's rather dangerous: we have had lots of trouble with packages for 
which the Makefile works on the maintainer's Linux, but not on other 
people's systems (even Linux ones).

Do you really, really need a Makefile.win?: I would be surprised if you 
did.  Only 9 CRAN packages have a Makefile.win, and two of those are 
dummies and one other we have asked the maintainers to replace by 
Makevars.win as it is not portable.
Adding the resources is not essential: they add identification to the 
DLL which can be very useful but are icing on the cake.  So I would not 
try to emulate that step.

But the Makefile in use is src/gnuwin32/MakeDll and that contains

$(DLLNAME)_res.rc:
         @PERL5LIB=$(RHOME)/share/perl $(PERL) $(RHOME)/src/gnuwin32/makeDllRes.pl $(DLLNAME) > $@

$(DLLNAME)_res.o: $(DLLNAME)_res.rc $(RHOME)/include/Rversion.h