-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.octave
57 lines (43 loc) · 1.44 KB
/
Makefile.octave
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
include config/base.config
include config/forcegcc.config
#### Octave
OCTAVEVER = 9.3.0
OCTAVE = octave-${OCTAVEVER}
OCTAVE_INST_PATH = ${NLYTIQ_INST_PATH}
OCTAVEOPTS = --enable-openmp \
--enable-threads=posix \
--disable-atomic-refcount \
--with-blas="-lopenblas" \
--disable-float-truncate
LDFLAGS = "-L${OCTAVE_INST_PATH}/lib"
CFLAGS += "-I${OCTAVE_INST_PATH}/include"
ifeq ($(OS), Darwin)
# more MacOS breakage ... libreadline and fltk
OCTAVEOPTS += --disable-readline --without-fltk
# Bad apple ... bad
else
# and even more MacOS breakage ... X windows ... /sigh
OCTAVEOPTS += --with-x
# ....
endif
# ${_EPF_} contains the front matter for configure after the include below
include config/configure.prefix.flag.config
_LDP_ = LD_LIBRARY_PATH=${NLYTIQ_LIB_PATH}
#--------------------------------------------------------------------------#
all: install-octave
clean: clean-octave
configure-octave:
tar -Jxvf sources/${OCTAVE}.tar.xz
cd ${OCTAVE} ;\
${_EPF_} ./configure --prefix=${NLYTIQ_INST_PATH} ${OCTAVEOPTS} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
touch configure-octave
make-octave: configure-octave
cd ${OCTAVE} ;\
${_LDP_} ${_EPF_} make -j${NCPU}
touch make-octave
install-octave: make-octave
cd ${OCTAVE} ; ${_LDP_} ${_EPF_} make -j${NCPU} install
sources/octave-pkgs.mat
touch install-octave
clean-octave:
rm -rf ${OCTAVE} make-octave configure-octave install-octave make-octave ${OCTAVE}