samer@8
|
1 # ---------------- configuration ----------------------
|
samer@8
|
2
|
samer@8
|
3 # Point this at your Matlab installation, eg
|
samer@8
|
4 # export MATLAB=/Applications/MATLAB_R2009b.app
|
samer@8
|
5 export MATLAB=/usr/local/matlab7
|
samer@8
|
6
|
samer@8
|
7 # this needs to match the correct subdirectory of $(MATLAB)/bin
|
samer@8
|
8 # export MLARCH=glnx86 # 32 bit Linux
|
samer@8
|
9 # export MLARCH=maci # 32 bit Intel Mac
|
samer@8
|
10 # export MLARCH=mac # PowerPC Mac
|
samer@8
|
11 export MLARCH=maci64
|
samer@8
|
12
|
samer@8
|
13 # I arrived at these by trial and error so it may need adjusting.
|
samer@8
|
14 # export MLLIBS=-leng -lmx -lmat -licuuc -licudata -licui18n -lz -lreadline
|
samer@8
|
15 export MLLIBS=-leng
|
samer@8
|
16
|
samer@8
|
17 # target is plml.dylib for OSX, plml.so under Linux
|
samer@8
|
18 # export SO=so
|
samer@8
|
19 export SO=dylib
|
samer@8
|
20
|
samer@8
|
21 # if you have multiple SWI Prolog installations or an installation
|
samer@8
|
22 # in a non-standard place, set PLLD to the appropriate plld invokation, eg
|
samer@8
|
23 # PLLD=/usr/local/bin/plld -p /usr/local/bin/swipl
|
samer@8
|
24 export PLLD=swipl-ld
|
samer@8
|
25
|
samer@8
|
26 # install directories
|
samer@8
|
27 export INSTALL_LIB_TO=~/lib/prolog/x86_64
|
samer@11
|
28 export INSTALL_PL_TO=~/lib/prolog
|
samer@8
|
29 export INSTALL_ML_TO=~/matlab
|
samer@8
|
30
|
samer@8
|
31 # flags for install - BSD install seems to be different from GNU install
|
samer@8
|
32 # export INSTALL_FLAGS='-bp' # for GNU/Linux
|
samer@8
|
33 export INSTALL_FLAGS='-bCS' # for Mac OS X
|
samer@8
|
34
|
samer@8
|
35 # on Mac OS X Lion using MacPorts gcc 4.2, you need this to select
|
samer@8
|
36 # the correct C++ compiler. Leave CXX blank otherwise.
|
samer@11
|
37 #export CXX=-c++ g++-apple-4.2
|
samer@11
|
38 export CXX=
|
samer@8
|
39
|
samer@8
|
40 VER=1.0
|
samer@8
|
41 # ---------------- end of configuration ---------------
|
samer@8
|
42
|
samer@8
|
43 main:
|
samer@8
|
44 make -C cpp
|
samer@8
|
45
|
samer@8
|
46 clean:
|
samer@8
|
47 make -C cpp clean
|
samer@8
|
48
|
samer@8
|
49 install: main
|
samer@8
|
50 make -C cpp install
|
samer@8
|
51 make -C prolog install
|
samer@8
|
52 make -C matlab install
|
samer@8
|
53
|
samer@8
|
54 tarball:
|
samer@8
|
55 mkdirhier release
|
samer@8
|
56 (cd .. && tar czf plml/release/plml-$(VER).tar.gz --exclude CVS --exclude "*.gz" --exclude release plml)
|