samer@8: # ---------------- configuration ---------------------- samer@8: samer@8: # Point this at your Matlab installation, eg samer@8: # export MATLAB=/Applications/MATLAB_R2009b.app samer@8: export MATLAB=/usr/local/matlab7 samer@8: samer@8: # this needs to match the correct subdirectory of $(MATLAB)/bin samer@8: # export MLARCH=glnx86 # 32 bit Linux samer@8: # export MLARCH=maci # 32 bit Intel Mac samer@8: # export MLARCH=mac # PowerPC Mac samer@8: export MLARCH=maci64 samer@8: samer@8: # I arrived at these by trial and error so it may need adjusting. samer@8: # export MLLIBS=-leng -lmx -lmat -licuuc -licudata -licui18n -lz -lreadline samer@8: export MLLIBS=-leng samer@8: samer@8: # target is plml.dylib for OSX, plml.so under Linux samer@8: # export SO=so samer@8: export SO=dylib samer@8: samer@8: # if you have multiple SWI Prolog installations or an installation samer@8: # in a non-standard place, set PLLD to the appropriate plld invokation, eg samer@8: # PLLD=/usr/local/bin/plld -p /usr/local/bin/swipl samer@8: export PLLD=swipl-ld samer@8: samer@8: # install directories samer@8: export INSTALL_LIB_TO=~/lib/prolog/x86_64 samer@11: export INSTALL_PL_TO=~/lib/prolog samer@8: export INSTALL_ML_TO=~/matlab samer@8: samer@8: # flags for install - BSD install seems to be different from GNU install samer@8: # export INSTALL_FLAGS='-bp' # for GNU/Linux samer@8: export INSTALL_FLAGS='-bCS' # for Mac OS X samer@8: samer@8: # on Mac OS X Lion using MacPorts gcc 4.2, you need this to select samer@8: # the correct C++ compiler. Leave CXX blank otherwise. samer@11: #export CXX=-c++ g++-apple-4.2 samer@11: export CXX= samer@8: samer@8: VER=1.0 samer@8: # ---------------- end of configuration --------------- samer@8: samer@8: main: samer@8: make -C cpp samer@8: samer@8: clean: samer@8: make -C cpp clean samer@8: samer@8: install: main samer@8: make -C cpp install samer@8: make -C prolog install samer@8: make -C matlab install samer@8: samer@8: tarball: samer@8: mkdirhier release samer@8: (cd .. && tar czf plml/release/plml-$(VER).tar.gz --exclude CVS --exclude "*.gz" --exclude release plml)