-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
43 lines (31 loc) · 1.1 KB
/
Makefile
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
# ---------------- configuration ----------------------
# set this to the prefix directory of your liblo installation
export LIBLO=/usr/local
# target extension 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 for foreign library and prolog module respectively
export INSTALL_LIB_TO=~/lib/prolog
export INSTALL_PL_TO=~/lib/prolog
# flags for install - BSD install seems to be different from GNU install
# use '-bp' under Linux
export INSTALL_FLAGS='-bCS'
VER=0.2
# ---------------- 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 plosc/release/plosc-$(VER).tar.gz --exclude .DS_Store --exclude .swiple_history --exclude CVS --exclude "*.gz" --exclude release plosc)