view Makefile.osx @ 2:546bfd3988b0

Added unpolished pldoc documentation.
author samer
date Fri, 13 Jan 2012 15:53:04 +0000
parents 0dd31a8c66bd
children
line wrap: on
line source
# ---------------- configuration ----------------------

# Point this at your Matlab installation
export MATLAB=/usr/local/matlab7

# this needs to match the correct subdirectory of $(MATLAB)/bin
export MLARCH=mac

# I arrived at these by trial and error so it may need adjusting. 
export MLLIBS=-leng -lmx -lmat -licuuc -licudata -licui18n -lz -lreadline

# target is plml.dylib for OSX, plml.so under Linux
export SO=dylib

# Any extra includes go here - I use Fink, hence /sw/include
export INCLUDES=-I/sw/include

# if you have multiple SWI Prolog installations or an installation
# in a non-standard place, set PLLD to the appropriate plld invokation, eg
# PLLD=/usr/local/bin/plld -p /usr/local/bin/swipl
export PLLD=swipl-ld

# install directories
export INSTALL_LIB_TO=~/lib/prolog
export INSTALL_PL_TO=~/lib/prolog

# flags for install - BSD install seems to be different from GNU install
export INSTALL_FLAGS='-bCS'

VER=0.91
# ---------------- end of configuration ---------------

main: 
	make -C cpp

clean:
	make -C cpp clean

install: main
	make -C cpp install
	make -C prolog install

tarball:
	mkdirhier release
	(cd .. && tar czf plml/release/plml-$(VER).tar.gz --exclude CVS --exclude "*.gz" --exclude release plml)