Skip to content

Commit

Permalink
Ability to build Rmath from external/Makefile. Still not in default b…
Browse files Browse the repository at this point in the history
…uild.

However, you can now do:

make -C external install-rmath

julia> load("extras/Rmath.jl")
julia> plogis(-1:0.2:1, 0)
[0.268941, 0.310026, 0.354344, 0.401312, 0.450166, 0.5, 0.549834, 0.598688, 0.645656, 0.689974, 0.731059]
  • Loading branch information
ViralBShah committed Apr 7, 2012
1 parent 26a4478 commit 6df4418
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions external/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,26 @@ clean-fdlibm:
rm -f $(FDLIBM_OBJ_SOURCE) $(FDLIBM_OBJ_TARGET)
distclean-fdlibm: clean-fdlibm

## rmath ##

RMATH_OBJ_TARGET = $(EXTROOTLIB)/libRmath.$(SHLIB_EXT)
RMATH_OBJ_SOURCE = Rmath/src/libRmath.$(SHLIB_EXT)

compile-rmath: $(RMATH_OBJ_SOURCE)
install-rmath: $(RMATH_OBJ_TARGET)

$(RMATH_OBJ_SOURCE): Rmath/src/Makefile
cd Rmath/src && \
$(MAKE) $(jPARALLEL_BUILD_JOBS) CC=$(CC)
$(RMATH_OBJ_TARGET): $(RMATH_OBJ_SOURCE)
mkdir -p $(EXTROOTLIB)
cp $< $@

clean-rmath:
cd Rmath/src && $(MAKE) $(jPARALLEL_BUILD_JOBS) clean
rm -f $(RMATH_OBJ_SOURCE) $(RMATH_OBJ_TARGET)
distclean-rmath: clean-rmath

## amos ##

AMOS_OBJ_TARGET = $(EXTROOTLIB)/libamos.$(SHLIB_EXT)
Expand Down

0 comments on commit 6df4418

Please sign in to comment.