Skip to content

Commit

Permalink
Optionally download and build FFTW as well.
Browse files Browse the repository at this point in the history
Do "make install-fftw".
  • Loading branch information
StefanKarpinski committed Jun 18, 2011
1 parent 979d345 commit bc774de
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ READLINE_VER = 6.2
PCRE_VER = 8.12
LAPACK_VER = 3.3.1
ARPACK_VER = 96
FFTW_VER = 3.2.2
MONGOOSE_VER = 3.0
1 change: 1 addition & 0 deletions external/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
/openblas*
/pcre-*
/readline-*
/fftw-*
27 changes: 27 additions & 0 deletions external/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,33 @@ clean-arpack:
distclean-arpack:
rm -rf arpack$(ARPACK_VER).tar.gz arpack-patch.tar.gz ARPACK

## FFTW ##

FFTW_OBJ_TARGET = $(EXTROOTLIB)/libfftw3.3.$(SHLIB_EXT)

compile-fftw: install-fftw
install-fftw: $(FFTW_OBJ_TARGET)

fftw-$(FFTW_VER).tar.gz:
$(DOWNLOAD) http://www.fftw.org/$@
fftw-$(FFTW_VER)/configure: fftw-$(FFTW_VER).tar.gz
tar zxf $<
touch $@
fftw-$(FFTW_VER)/config.status: fftw-$(FFTW_VER)/configure
cd fftw-$(FFTW_VER) && \
./configure --prefix=$(EXTROOT) --enable-shared && \
make clean
touch $@
$(FFTW_OBJ_TARGET): fftw-$(FFTW_VER)/config.status
make -C fftw-$(FFTW_VER) install
touch $@

clean-fftw:
make -C fftw-$(FFTW_VER) clean
rm -f $(FFTW_OBJ_TARGET)
distclean-fftw:
rm -rf fftw-$(FFTW_VER).tar.gz fftw-$(FFTW_VER)

## mongoose ##

compile-mongoose: mongoose/Makefile
Expand Down

0 comments on commit bc774de

Please sign in to comment.