jowr / librefprop.so

Create a shared library from the Fortran sources provided by Refprop from NIST. This project provides an alternative to the refprop.dll that comes with the software. Please use the official instructions if possible
https://github.com/usnistgov/REFPROP-cmake
32 stars 8 forks source link

make fixfiles.sh architecture-aware #14

Closed jowr closed 10 years ago

jowr commented 10 years ago

Edit the script that changes the Matlab function prototypes.

ghost commented 10 years ago

@jowr 'uname -m' is not ideal it forces me to detect only 64 bits and assume that everything else is 32 bits ; not bad, but not so good either ; could you test the command 'getconf LONG_BIT' and tell me if hopefully it returns 32 ? :-D

jowr commented 10 years ago

That one is spot on. In my makefiles for other projects I use the following:

UNAME := $(shell uname -s)
ARCH  := $(shell getconf LONG_BIT)

This gives Darwin or Linux and 32 or 64 on most machines.

ghost commented 10 years ago

Perfect! I keep that one, so :-)

ghost commented 10 years ago

Pull request on Issue #16 should allow to close this issue.