# ---------------- configuration ----------------------

# edit this to point to the prefix of your GNU Scientific Library
# installation or comment both lines out if you don't have it.
export GSL=/sw
export HAVE_GSL=1

# uncomment this if you don't have GSL
# export HAVE_GSL=0

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

# 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=plld

# 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.3
# ---------------- end of configuration ---------------

main: 
	make -C cpp

clean:
	make -C cpp clean

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

install-bin: main
	make -C cpp install

install-pl:
	make -C prolog install

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