[R] gfortran Makefile for cygwin
Uwe Ligges
ligges at statistik.uni-dortmund.de
Wed Sep 28 09:01:55 CEST 2005
Joel Bremson wrote:
> Hi all,
>
> I'm porting a package that I've worked on for OS X to Cygwin/Windows.
Cygwin is not supported.
Please use MinGW's compilers, the tools and import from MkRules, as the
manuals indicate. See other packages' Makefile.win files as examples.
Messages regarding development seem to be more appropriate for the
R-devel list.
[Please move it there for follow-ups.]
Uwe Ligges
> This package requires a Makefile. My question is, how can I find out
> (or what is), the link command?
>
> Here is the OS X Makefile:
>
>
> RLIB_LOC=${R_HOME}
>
> F90_FILES=\
> class_data_frame.f90 \
> class_old_dbest.f90 \
> class_cm_data.f90 \
> class_cm.f90 \
> class_bgw.f90 \
> class_cm_mle.f90 \
> cme.f90
>
>
> FORTRAN_FILES=\
> dgletc.f \
> dglfgb.f\
> dglfg.f\
> dmdc.f\
> mecdf.f
>
>
> %.o: %.f90
> gfortran -c -g $<
>
> %.o: %.f
> gfortran -c -g $<
>
> bpkg.so: $(F90_FILES:%.f90=%.o) $(FORTRAN_FILES:%.f=%.o)
> gcc -Wall -bundle -flat_namespace -undefined suppress -L/sw/lib
> -L/usr/local/lib -o $@ $^ \
> -L$(RLIB_LOC)/lib -lR
>
> ###EOF####
>
> The -L lib dirs are not correct. On a *nix platform I would do something
> like this
>
> sh -x R CMD SHLIB ...
>
> to get at the R internal link information but I can't get that to work on
> Cygwin.
>
> Regards,
>
> Joel
>
>
> --
> Joel Bremson
> Graduate Student
> Institute for Transportation Studies - UC Davis
> http://etrans.blogspot.com
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
More information about the R-help
mailing list