2013-10-07 12:20:00 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
# default base directory for YAP installation
|
2001-11-26 16:05:19 +00:00
|
|
|
# (EROOT for architecture-dependent files)
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
2001-11-26 18:57:07 +00:00
|
|
|
prefix = @prefix@
|
2010-03-05 10:22:48 +00:00
|
|
|
exec_prefix = @exec_prefix@
|
2001-11-26 18:57:07 +00:00
|
|
|
ROOTDIR = $(prefix)
|
2001-11-26 16:05:19 +00:00
|
|
|
EROOTDIR = @exec_prefix@
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# where the binary should be
|
|
|
|
#
|
2001-11-26 16:05:19 +00:00
|
|
|
BINDIR = $(EROOTDIR)/bin
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
2001-11-26 16:05:19 +00:00
|
|
|
# where YAP should look for binary libraries
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
2010-03-05 08:15:02 +00:00
|
|
|
LIBDIR=@libdir@
|
|
|
|
YAPLIBDIR=@libdir@/Yap
|
2001-11-26 16:05:19 +00:00
|
|
|
#
|
|
|
|
# where YAP should look for architecture-independent Prolog libraries
|
|
|
|
#
|
|
|
|
SHAREDIR=$(ROOTDIR)/share
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# where the includes should be stored
|
|
|
|
#
|
|
|
|
INCLUDEDIR=$(ROOTDIR)/include/Yap
|
|
|
|
#
|
|
|
|
# where to store info files
|
|
|
|
#
|
2001-12-06 16:46:06 +00:00
|
|
|
INFODIR=$(SHAREDIR)/info
|
2008-08-22 03:53:45 +01:00
|
|
|
#
|
2010-12-31 05:21:31 +00:00
|
|
|
# where to store documentation files
|
2008-08-22 03:53:45 +01:00
|
|
|
#
|
2010-10-24 20:26:49 +01:00
|
|
|
DOCSDIR=$(SHAREDIR)/doc/Yap
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2007-04-10 23:13:21 +01:00
|
|
|
#
|
2001-04-09 20:54:03 +01:00
|
|
|
# Add this flag to YAP_EXTRAS if you need the extension:
|
|
|
|
# -DRATIONAL_TREES: allow unification and builtins over rational trees
|
|
|
|
# -DCOROUTINING: implement extra control primitives
|
|
|
|
# -DANALYST: low level profiler
|
|
|
|
# -DDEPTH_LIMIT: support depth-limits in Prolog execution
|
2008-03-13 17:13:34 +00:00
|
|
|
# -DLOW_LEVEL_TRACER: low level tracing
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# very experimental stuff, you'll need to contact the developers
|
|
|
|
# if you want to use this:
|
2011-03-30 14:35:10 +01:00
|
|
|
# -DYAPOR_COPY: or-parallelism with environment copying, in Muse style.
|
2011-03-30 15:32:59 +01:00
|
|
|
# -DYAPOR_SBA: or-parallelism with sparse binding arrays.
|
2011-03-30 16:39:09 +01:00
|
|
|
# -DYAPOR_COW: or-parallelism with copy-on-write.
|
2005-04-07 18:56:58 +01:00
|
|
|
# -DTABLING: support for tabling
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# check also optimisation options in INSTALL file.
|
|
|
|
#
|
2012-12-11 23:02:05 +00:00
|
|
|
YAP_EXTRAS=@YAP_EXTRAS@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2014-06-04 22:08:37 +01:00
|
|
|
YAPSTARTUP=@SAVED_STATE_PREFIX@startup.yss
|
2009-10-23 09:09:16 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# Please do not add YAP_EXTRA flags here: if you do check the flags
|
|
|
|
# for c_interface.c
|
|
|
|
#
|
|
|
|
CC=@CC@
|
2014-04-29 18:18:42 +01:00
|
|
|
CXX=@CXX@
|
2002-02-22 14:31:45 +00:00
|
|
|
MPI_CC=@MPI_CC@
|
2014-04-28 11:47:09 +01:00
|
|
|
CPPFLAGS=@CPPFLAGS@ -I. -I$(srcdir)/H -I$(srcdir)/include -I$(srcdir)/os -I$(srcdir)/OPTYap -I$(srcdir)/BEAM -I$(srcdir)/CXX
|
2010-06-21 11:54:21 +01:00
|
|
|
EXECUTABLE_CFLAGS= @CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
|
|
|
|
CFLAGS= @YAPLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
|
2014-04-29 18:17:23 +01:00
|
|
|
CXXFLAGS= @SHLIB_CXXFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
|
2014-02-16 12:57:50 +00:00
|
|
|
C_INTERF_FLAGS= @YAPLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS) -Iinclude
|
2010-06-21 11:54:21 +01:00
|
|
|
C_PARSER_FLAGS= @YAPLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# You shouldn't need to change what follows.
|
|
|
|
#
|
2009-10-23 09:09:16 +01:00
|
|
|
ARCH=@ARCH@
|
|
|
|
AWK=@AWK@
|
2001-04-09 20:54:03 +01:00
|
|
|
CPP=@CPP@
|
2014-03-11 15:36:02 +00:00
|
|
|
RC=@RC@
|
|
|
|
RCFLAGS=@RCFLAGS@
|
2014-03-06 02:09:48 +00:00
|
|
|
DEFS=@DEFS@ -D_YAP_NOT_INSTALLED_=1 -DDESTDIR=\"$(DESTDIR)\"
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS=@LIBS@
|
2013-10-29 12:43:31 +00:00
|
|
|
DLL_LIBS=@LIBS@ @EXTRA_LIBS_FOR_DLLS@
|
2002-02-28 22:43:36 +00:00
|
|
|
LDFLAGS=@LDFLAGS@
|
2014-02-19 17:45:46 +00:00
|
|
|
EXTRAYAPLIBS=@EXTRAYAPLIBS@
|
2001-04-09 20:54:03 +01:00
|
|
|
LN_S=@LN_S@
|
|
|
|
M4=@M4@
|
|
|
|
GCC=@GCC@
|
|
|
|
INSTALL=@INSTALL@
|
|
|
|
INSTALL_DATA=@INSTALL_DATA@
|
|
|
|
INSTALL_INFO=@INSTALL_INFO@
|
|
|
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
2014-02-16 12:57:50 +00:00
|
|
|
M4GENHDRS=@M4GENHDRS@
|
|
|
|
M4GENABSMI=@M4GENABSMI@
|
2001-04-09 20:54:03 +01:00
|
|
|
INDENT=@INDENT@
|
2002-02-22 14:31:45 +00:00
|
|
|
SHELL=@SHELL@
|
2001-04-09 20:54:03 +01:00
|
|
|
RANLIB=@RANLIB@
|
2001-07-05 17:14:15 +01:00
|
|
|
AR=@AR@
|
2001-04-09 20:54:03 +01:00
|
|
|
srcdir=@srcdir@
|
2008-10-08 13:15:53 +01:00
|
|
|
abs_top_builddir=@abs_top_builddir@
|
2010-06-14 10:36:13 +01:00
|
|
|
SO=@SO@
|
2001-04-23 21:41:58 +01:00
|
|
|
MAKEINFO=makeinfo
|
|
|
|
TEXI2DVI=texi2dvi
|
|
|
|
TEXI2HTML=texi2html
|
|
|
|
TEXI2PDF=texi2pdf
|
2009-10-23 09:09:16 +01:00
|
|
|
YAPLIB=@YAPLIB@
|
2010-12-29 15:29:42 +00:00
|
|
|
SONAMEFLAG=@SONAMEFLAG@
|
2014-07-13 05:30:14 +01:00
|
|
|
#---------------
|
|
|
|
JITFLAGS=@JITFLAGS@
|
|
|
|
JITLD=@JITLD@
|
|
|
|
JITLIBS=@JITLIBS@
|
|
|
|
PAPILIB=@PAPILIB@
|
2001-04-23 21:41:58 +01:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
VPATH=@srcdir@
|
2001-04-09 20:54:03 +01:00
|
|
|
CWD=$(PWD)
|
|
|
|
#
|
2014-02-16 12:57:50 +00:00
|
|
|
VERSION=@YAP_VERSION@
|
2014-06-04 22:08:37 +01:00
|
|
|
Y=@YAP_MAJOR_VERSION@
|
2014-02-16 12:57:50 +00:00
|
|
|
DOC_VERSION=@DOC_VERSION@
|
|
|
|
MYDDAS_VERSION=@MYDDAS_VERSION@
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
|
2009-02-11 15:10:57 +00:00
|
|
|
INTERFACE_HEADERS = \
|
2011-02-10 21:14:38 +00:00
|
|
|
$(IOLIB_HEADERS) \
|
2014-02-16 12:57:50 +00:00
|
|
|
include/c_interface.h \
|
|
|
|
include/clause_list.h \
|
|
|
|
include/dswiatoms.h \
|
|
|
|
include/udi.h \
|
2014-10-07 09:59:23 +01:00
|
|
|
include/YapDefs.h \
|
|
|
|
include/YapError.h \
|
2014-02-16 12:57:50 +00:00
|
|
|
include/YapInterface.h \
|
|
|
|
include/SWI-Prolog.h \
|
|
|
|
include/YapError.h \
|
|
|
|
H/TermExt.h \
|
|
|
|
H/YapTags.h \
|
|
|
|
H/Tags_32bits.h \
|
|
|
|
H/Tags_32Ops.h \
|
|
|
|
H/Tags_32LowTag.h \
|
|
|
|
H/Tags_64bits.h \
|
|
|
|
H/Tags_24bits.h \
|
|
|
|
H/YapCompoundTerm.h \
|
|
|
|
include/YapRegs.h \
|
|
|
|
H/YapTerm.h \
|
|
|
|
library/dialect/bprolog/fli/bprolog.h \
|
|
|
|
os/pl-thread.h \
|
|
|
|
os/SWI-Stream.h
|
|
|
|
|
|
|
|
IOLIB_HEADERS=os/pl-buffer.h \
|
|
|
|
os/pl-ctype.h \
|
|
|
|
H/pl-codelist.h \
|
|
|
|
os/pl-dtoa.h \
|
|
|
|
os/dtoa.c \
|
|
|
|
H/pl-incl.h \
|
|
|
|
H/pl-global.h \
|
|
|
|
os/pl-option.h \
|
|
|
|
os/pl-os.h \
|
|
|
|
os/pl-privitf.h \
|
|
|
|
os/pl-table.h \
|
|
|
|
os/pl-text.h \
|
|
|
|
os/pl-utf8.h \
|
2014-05-28 00:11:00 +01:00
|
|
|
H/pl-yap.h @WINDOWS@ os/windows/dirent.h os/windows/utf8.h os/windows/utf8.c os/windows/uxnt.h os/windows/popen.c
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
HEADERS = \
|
2014-02-16 12:57:50 +00:00
|
|
|
H/Atoms.h \
|
|
|
|
H/sshift.h \
|
|
|
|
H/Yap.h \
|
|
|
|
H/Yatom.h \
|
|
|
|
H/YapHeap.h \
|
|
|
|
H/Regs.h \
|
|
|
|
H/Yapproto.h \
|
|
|
|
H/absmi.h \
|
|
|
|
H/alloc.h \
|
|
|
|
H/amidefs.h \
|
|
|
|
H/amiops.h \
|
|
|
|
H/arrays.h \
|
|
|
|
H/arith2.h \
|
|
|
|
H/attvar.h \
|
|
|
|
H/clause.h \
|
|
|
|
H/compile.h \
|
|
|
|
H/corout.h \
|
|
|
|
H/dlmalloc.h \
|
|
|
|
H/dglobals.h \
|
|
|
|
H/dlocals.h \
|
|
|
|
H/dhstruct.h \
|
|
|
|
H/eval.h \
|
|
|
|
H/heapgc.h \
|
|
|
|
H/hglobals.h \
|
|
|
|
H/hlocals.h \
|
|
|
|
H/hstruct.h \
|
|
|
|
H/iglobals.h \
|
|
|
|
H/ihstruct.h \
|
|
|
|
H/ilocals.h \
|
|
|
|
H/index.h \
|
|
|
|
H/inline-only.h \
|
|
|
|
H/iopreds.h \
|
|
|
|
H/iswiatoms.h \
|
|
|
|
H/qly.h \
|
|
|
|
H/rclause.h \
|
|
|
|
H/rglobals.h \
|
|
|
|
H/rlocals.h \
|
|
|
|
H/rheap.h \
|
|
|
|
H/rhstruct.h \
|
|
|
|
H/threads.h \
|
|
|
|
H/tracer.h \
|
|
|
|
H/trim_trail.h \
|
|
|
|
H/yapio.h \
|
2014-03-06 02:09:48 +00:00
|
|
|
H/YapSignals.h \
|
2014-02-16 12:57:50 +00:00
|
|
|
H/YapText.h \
|
|
|
|
H/cut_c.h \
|
|
|
|
H/iatoms.h H/ratoms.h H/tatoms.h \
|
2014-04-28 11:47:09 +01:00
|
|
|
CXX/yapi.hh \
|
2014-02-16 12:57:50 +00:00
|
|
|
BEAM/eam.h BEAM/eamamasm.h \
|
|
|
|
OPTYap/opt.config.h \
|
|
|
|
OPTYap/opt.proto.h OPTYap/opt.structs.h \
|
|
|
|
OPTYap/opt.macros.h OPTYap/or.macros.h \
|
|
|
|
OPTYap/or.sba_amiops.h OPTYap/or.sba_unify.h \
|
|
|
|
OPTYap/tab.structs.h OPTYap/locks_x86.h \
|
|
|
|
OPTYap/locks_sparc.h OPTYap/locks_mips.h \
|
|
|
|
OPTYap/locks_mips_funcs.h OPTYap/locks_alpha.h \
|
|
|
|
OPTYap/locks_alpha_funcs.h \
|
|
|
|
OPTYap/locks_pthread.h \
|
2014-07-13 05:30:14 +01:00
|
|
|
library/dialect/swi/fli/swi.h \
|
2014-07-16 00:57:09 +01:00
|
|
|
JIT/HPP/JIT.hh JIT/HPP/JIT_Compiler.hh \
|
2014-07-13 05:30:14 +01:00
|
|
|
JIT/HPP/jit_predicates.hh
|
2014-02-16 12:57:50 +00:00
|
|
|
|
|
|
|
IOLIB_SOURCES=os/pl-buffer.c os/pl-ctype.c \
|
|
|
|
os/pl-codelist.c \
|
|
|
|
os/pl-dtoa.c \
|
|
|
|
os/pl-error.c \
|
|
|
|
os/pl-file.c \
|
|
|
|
os/pl-files.c \
|
|
|
|
os/pl-fmt.c \
|
|
|
|
os/pl-locale.h \
|
|
|
|
os/pl-glob.c \
|
|
|
|
os/pl-option.c \
|
|
|
|
os/pl-os.c \
|
|
|
|
os/pl-prologflag.c \
|
|
|
|
os/pl-privitf.c \
|
|
|
|
os/pl-read.c \
|
|
|
|
os/pl-rl.c \
|
|
|
|
os/pl-stream.c os/pl-string.c \
|
|
|
|
os/pl-table.c \
|
|
|
|
os/pl-tai.c \
|
|
|
|
os/pl-text.c \
|
|
|
|
os/pl-version.c \
|
|
|
|
os/pl-write.c \
|
|
|
|
C/pl-yap.c @WINDOWS@os/windows/uxnt.c
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
C_SOURCES= \
|
2011-02-10 21:14:38 +00:00
|
|
|
$(IOLIB_SOURCES) \
|
2014-02-16 12:57:50 +00:00
|
|
|
C/absmi.c C/adtdefs.c \
|
|
|
|
C/agc.c C/alloc.c \
|
|
|
|
C/amasm.c C/analyst.c \
|
|
|
|
C/arith0.c C/arith1.c C/arith2.c \
|
|
|
|
C/atomic.c \
|
|
|
|
C/arrays.c \
|
|
|
|
C/attvar.c C/bb.c \
|
|
|
|
C/bignum.c \
|
|
|
|
C/c_interface.c C/cdmgr.c C/cmppreds.c \
|
|
|
|
C/clause_list.c \
|
|
|
|
C/compiler.c C/computils.c \
|
|
|
|
C/corout.c C/dbase.c C/dlmalloc.c \
|
|
|
|
C/errors.c \
|
|
|
|
C/eval.c C/exec.c \
|
|
|
|
C/exo.c \
|
|
|
|
C/exo_udi.c \
|
|
|
|
C/globals.c C/gmp_support.c \
|
|
|
|
C/gprof.c C/grow.c \
|
|
|
|
C/heapgc.c C/index.c \
|
|
|
|
C/init.c C/inlines.c \
|
|
|
|
C/iopreds.c C/depth_bound.c \
|
|
|
|
C/load_foreign.c \
|
|
|
|
C/load_dl.c C/load_dld.c C/load_none.c \
|
|
|
|
C/load_aout.c C/load_aix.c C/load_dll.c \
|
|
|
|
C/load_shl.c C/load_dyld.c \
|
|
|
|
C/mavar.c C/modules.c C/other.c \
|
|
|
|
C/parser.c \
|
|
|
|
C/qlyr.c \
|
|
|
|
C/qlyw.c \
|
|
|
|
C/range.c \
|
|
|
|
C/save.c C/scanner.c C/signals.c \
|
|
|
|
C/sort.c C/stdpreds.c C/sysbits.c \
|
|
|
|
C/text.c \
|
|
|
|
C/threads.c \
|
|
|
|
C/tracer.c C/unify.c C/userpreds.c \
|
|
|
|
C/udi.c \
|
|
|
|
C/utilpreds.c C/write.c console/yap.c \
|
|
|
|
C/yap-args.c \
|
|
|
|
C/ypstdio.c \
|
|
|
|
BEAM/eam_am.c BEAM/eam_showcode.c \
|
|
|
|
BEAM/eamindex.c BEAM/eamamasm.c \
|
|
|
|
BEAM/eam_gc.c BEAM/eam_split.c \
|
|
|
|
OPTYap/or.memory.c OPTYap/opt.init.c \
|
|
|
|
OPTYap/opt.preds.c OPTYap/or.copy_engine.c \
|
|
|
|
OPTYap/or.cow_engine.c OPTYap/or.sba_engine.c \
|
|
|
|
OPTYap/or.thread_engine.c \
|
|
|
|
OPTYap/or.scheduler.c OPTYap/or.cut.c \
|
|
|
|
OPTYap/tab.tries.c OPTYap/tab.completion.c \
|
|
|
|
C/cut_c.c \
|
|
|
|
library/dialect/swi/fli/swi.c \
|
2014-03-18 15:41:54 +00:00
|
|
|
library/dialect/swi/fli/blobs.c \
|
|
|
|
# library/mpi/mpi.c library/mpi/mpe.c \
|
|
|
|
# library/lammpi/yap_mpi.c library/lamm1pi/hash.c library/lammpi/prologterms2c.c
|
2014-07-13 05:30:14 +01:00
|
|
|
CXX_SOURCES = \
|
|
|
|
CXX/yapi.cpp \
|
|
|
|
JIT/JIT_Compiler.cpp
|
|
|
|
|
2011-02-03 11:23:12 +00:00
|
|
|
PLCONS_SOURCES = \
|
2014-02-16 12:57:50 +00:00
|
|
|
console/LGPL/pl-nt.c \
|
|
|
|
console/LGPL/pl-ntcon.c \
|
|
|
|
console/LGPL/pl-ntconsole.c \
|
2014-03-06 02:09:48 +00:00
|
|
|
console/LGPL/pl-ntmain.c \
|
|
|
|
console/LGPL/yap.rc \
|
|
|
|
console/LGPL/manifest.xml
|
2011-02-03 11:23:12 +00:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
PL_SOURCES= \
|
2014-10-07 01:38:31 +01:00
|
|
|
pl/absf.yap \
|
2014-02-16 12:57:50 +00:00
|
|
|
pl/arith.yap \
|
2014-04-21 11:14:18 +01:00
|
|
|
pl/arithpreds.yap \
|
2014-02-16 12:57:50 +00:00
|
|
|
pl/arrays.yap \
|
|
|
|
pl/attributes.yap \
|
2014-04-06 17:06:19 +01:00
|
|
|
pl/atoms.yap \
|
2014-02-16 12:57:50 +00:00
|
|
|
pl/boot.yap \
|
|
|
|
pl/callcount.yap\
|
|
|
|
pl/checker.yap pl/chtypes.yap \
|
|
|
|
pl/consult.yap \
|
|
|
|
pl/control.yap \
|
|
|
|
pl/corout.yap pl/debug.yap \
|
|
|
|
pl/dbload.yap \
|
|
|
|
pl/depth_bound.yap \
|
|
|
|
pl/dialect.yap \
|
|
|
|
pl/directives.yap \
|
|
|
|
pl/eam.yap \
|
|
|
|
pl/eval.yap \
|
|
|
|
pl/errors.yap \
|
|
|
|
pl/flags.yap \
|
|
|
|
pl/grammar.yap \
|
|
|
|
pl/ground.yap \
|
|
|
|
pl/hacks.yap \
|
|
|
|
pl/init.yap \
|
|
|
|
pl/listing.yap \
|
|
|
|
pl/lists.yap \
|
|
|
|
pl/messages.yap \
|
|
|
|
pl/load_foreign.yap \
|
2014-04-06 17:06:19 +01:00
|
|
|
pl/modules.yap \
|
|
|
|
pl/os.yap \
|
|
|
|
pl/preddecls.yap \
|
|
|
|
pl/preds.yap \
|
2014-02-16 12:57:50 +00:00
|
|
|
pl/profile.yap \
|
|
|
|
pl/protect.yap \
|
|
|
|
pl/qly.yap \
|
|
|
|
pl/save.yap \
|
|
|
|
pl/setof.yap \
|
|
|
|
pl/signals.yap \
|
|
|
|
pl/sort.yap \
|
|
|
|
pl/statistics.yap \
|
|
|
|
pl/strict_iso.yap \
|
|
|
|
pl/tabling.yap pl/threads.yap \
|
|
|
|
pl/udi.yap \
|
2014-10-10 10:00:27 +01:00
|
|
|
pl/undefined.yap \
|
2014-02-16 12:57:50 +00:00
|
|
|
pl/utils.yap \
|
|
|
|
pl/history.pl \
|
|
|
|
pl/swi.yap \
|
|
|
|
pl/yapor.yap pl/yio.yap
|
|
|
|
|
2014-03-06 02:09:48 +00:00
|
|
|
# need these files to construct the initial saved state.
|
|
|
|
SWI_LIB_SOURCES= \
|
|
|
|
swi/library/menu.pl \
|
|
|
|
swi/library/predopts.pl
|
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
YAPDOCS=docs/yap.tex docs/chr.tex \
|
|
|
|
docs/clpr.tex docs/swi.tex
|
2005-11-01 18:19:44 +00:00
|
|
|
|
2011-02-10 21:14:38 +00:00
|
|
|
IOLIB_OBJECTS=pl-buffer.o pl-codelist.o pl-ctype.o pl-dtoa.o pl-error.o \
|
|
|
|
pl-file.o pl-files.o pl-fmt.o \
|
2013-11-15 01:10:25 +00:00
|
|
|
pl-glob.o pl-locale.o pl-option.o \
|
2011-03-21 17:07:58 +00:00
|
|
|
pl-nt.o \
|
2011-02-10 21:14:38 +00:00
|
|
|
pl-os.o pl-privitf.o \
|
2011-03-26 15:17:17 +00:00
|
|
|
pl-prologflag.o \
|
2011-02-15 23:45:47 +00:00
|
|
|
pl-read.o \
|
|
|
|
pl-rl.o \
|
2011-02-10 21:14:38 +00:00
|
|
|
pl-stream.o pl-string.o pl-table.o \
|
2011-03-09 13:05:03 +00:00
|
|
|
pl-tai.o pl-text.o pl-utf8.o \
|
2013-01-21 10:07:46 +00:00
|
|
|
pl-version.o pl-write.o \
|
2014-02-10 23:31:33 +00:00
|
|
|
pl-yap.o @WINDOWS@ uxnt.o
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
ENGINE_OBJECTS = \
|
2002-06-04 19:21:55 +01:00
|
|
|
agc.o absmi.o adtdefs.o alloc.o amasm.o analyst.o arrays.o \
|
2013-12-06 23:26:28 +00:00
|
|
|
arith0.o arith1.o arith2.o atomic.o attvar.o \
|
2005-12-17 03:25:39 +00:00
|
|
|
bignum.o bb.o \
|
2001-04-09 20:54:03 +01:00
|
|
|
cdmgr.o cmppreds.o compiler.o computils.o \
|
2005-12-17 03:25:39 +00:00
|
|
|
corout.o cut_c.o dbase.o dlmalloc.o errors.o eval.o \
|
2013-04-17 02:04:53 +01:00
|
|
|
exec.o exo.o exo_udi.o globals.o gmp_support.o gprof.o grow.o \
|
2005-12-17 03:25:39 +00:00
|
|
|
heapgc.o index.o init.o inlines.o \
|
2005-11-22 11:25:59 +00:00
|
|
|
iopreds.o depth_bound.o mavar.o \
|
2014-01-24 19:59:42 +00:00
|
|
|
modules.o other.o \
|
2012-10-23 14:55:17 +01:00
|
|
|
parser.o qlyr.o qlyw.o range.o \
|
2013-12-06 23:26:28 +00:00
|
|
|
save.o scanner.o signals.o text.o sort.o stdpreds.o \
|
2006-08-02 19:18:31 +01:00
|
|
|
sysbits.o threads.o tracer.o \
|
2012-12-17 20:23:03 +00:00
|
|
|
udi.o\
|
2007-09-12 11:13:38 +01:00
|
|
|
unify.o userpreds.o utilpreds.o \
|
2012-06-22 09:56:01 +01:00
|
|
|
yap-args.o write.o \
|
2013-10-29 16:17:16 +00:00
|
|
|
blobs.o swi.o ypstdio.o $(IOLIB_OBJECTS)
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2014-07-13 05:30:14 +01:00
|
|
|
JIT_OBJECTS = \
|
|
|
|
@JITCOMPILER@ \
|
|
|
|
@JITCONFIGPREDS@ \
|
|
|
|
@JITANALYSISPREDS@ \
|
|
|
|
@JITTRANSFORMPREDS@ \
|
|
|
|
@JITCODEGENPREDS@ \
|
|
|
|
@JITDEBUGPREDS@ \
|
|
|
|
@JITSTATISTICPREDS@
|
|
|
|
|
2011-03-09 13:05:03 +00:00
|
|
|
LIBTAI_OBJECTS = \
|
|
|
|
tai_add.o tai_now.o tai_pack.o \
|
|
|
|
tai_sub.o tai_unpack.o taia_add.o taia_approx.o \
|
|
|
|
taia_fmtfrac.o taia_frac.o taia_half.o taia_less.o \
|
|
|
|
taia_now.o taia_pack.o taia_sub.o taia_tai.o taia_unpack.o \
|
|
|
|
caldate_fmt.o caldate_scan.o caldate_fmjd.o caldate_mjd.o \
|
|
|
|
caldate_norm.o caldate_ster.o leapsecs_read.o \
|
|
|
|
leapsecs_init.o leapsecs_add.o leapsecs_sub.o caltime_fmt.o \
|
|
|
|
caltime_scan.o caltime_tai.o caltime_utc.o
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
C_INTERFACE_OBJECTS = \
|
2002-09-24 15:18:56 +01:00
|
|
|
load_foreign.o load_dl.o load_dld.o load_dyld.o \
|
2001-04-09 20:54:03 +01:00
|
|
|
load_none.o load_aout.o load_aix.o load_dll.o load_shl.o \
|
2014-04-29 18:17:23 +01:00
|
|
|
c_interface.o clause_list.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
OR_OBJECTS = \
|
2011-06-02 17:05:58 +01:00
|
|
|
or.memory.o opt.init.o opt.preds.o \
|
2011-03-31 14:50:47 +01:00
|
|
|
or.copy_engine.o or.cow_engine.o or.sba_engine.o or.thread_engine.o \
|
2010-01-14 15:58:19 +00:00
|
|
|
or.scheduler.o or.cut.o \
|
2010-04-19 02:34:08 +01:00
|
|
|
tab.tries.o tab.completion.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2005-09-08 22:59:58 +01:00
|
|
|
BEAM_OBJECTS = \
|
2008-03-13 17:13:34 +00:00
|
|
|
eamamasm.o eam_showcode.o eamindex.o eam_am.o
|
2005-09-08 22:59:58 +01:00
|
|
|
|
2007-03-14 13:01:29 +00:00
|
|
|
STATIC_OBJECTS = \
|
2010-06-21 17:11:48 +01:00
|
|
|
@STATIC_MODE@sys.o yap_random.o regexp.o @NO_BUILTIN_REGEXP@ regcomp.o regerror.o regfree.o regexec.o
|
2007-03-14 13:01:29 +00:00
|
|
|
|
2014-07-13 05:30:14 +01:00
|
|
|
LIB_OBJECTS = $(ENGINE_OBJECTS) $(C_INTERFACE_OBJECTS) $(OR_OBJECTS) $(BEAM_OBJECTS) $(STATIC_OBJECTS) $(LIBTAI_OBJECTS) $(JIT_OBJECTS)
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2014-04-29 18:17:23 +01:00
|
|
|
OBJECTS = yap.o yapi.o $(LIB_OBJECTS)
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2011-02-03 11:23:12 +00:00
|
|
|
PLCONS_OBJECTS = \
|
|
|
|
pl-ntcon.o \
|
|
|
|
pl-ntconsole.o \
|
2014-03-06 02:09:48 +00:00
|
|
|
pl-ntmain.o \
|
|
|
|
yapres.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
all: startup.yss @WINDOWS@ yap-win@EXEC_SUFFIX@
|
2009-10-23 09:09:16 +01:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
Makefile: Makefile.in
|
|
|
|
|
|
|
|
H/Yap.h: config.h YapTermConfig.h \
|
|
|
|
H/YapTags.h \
|
|
|
|
H/YapCompoundTerm.h
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2014-02-10 23:31:33 +00:00
|
|
|
$(OBJECTS): config.h
|
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
yap.o: console/yap.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include $< -o $@
|
2014-02-10 23:31:33 +00:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
#special rule for this one: we cannot use -fomit-frame-pointer because this will
|
|
|
|
# interface with the outside world.
|
2014-02-16 12:57:50 +00:00
|
|
|
c_interface.o: C/c_interface.c include/c_interface.h config.h
|
|
|
|
$(CC) $(C_INTERF_FLAGS) -c $< -o c_interface.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2014-03-06 02:09:48 +00:00
|
|
|
yap-args.o: C/yap-args.c include/c_interface.h config.h
|
2014-02-16 12:57:50 +00:00
|
|
|
$(CC) $(C_INTERF_FLAGS) -c $< -o yap-args.o
|
2012-06-22 09:56:01 +01:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
clause_list.o: C/clause_list.c include/clause_list.h config.h
|
|
|
|
$(CC) $(C_INTERF_FLAGS) -c $< -o clause_list.o
|
2009-02-11 15:10:57 +00:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
udi.o: C/udi.c config.h
|
|
|
|
$(CC) -c $(C_INTERF_FLAGS) $< -o $@
|
2009-02-12 16:39:20 +00:00
|
|
|
|
2014-06-04 22:08:37 +01:00
|
|
|
save.o: C/save.c
|
|
|
|
$(CC) -c $(C_INTERF_FLAGS) -DYAPSTARTUP=\"$(YAPSTARTUP)\" $< -o $@
|
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
%.o: C/%.c config.h
|
2014-02-10 23:31:33 +00:00
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
%.o: OPTYap/%.c config.h
|
2014-02-10 23:31:33 +00:00
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
2005-09-08 22:59:58 +01:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
%.o: BEAM/%.c config.h
|
2014-02-10 23:31:33 +00:00
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
2005-09-08 22:59:58 +01:00
|
|
|
|
2014-04-29 18:17:23 +01:00
|
|
|
yapi.o: CXX/yapi.cpp CXX/yapi.hh config.h
|
2014-04-28 11:47:09 +01:00
|
|
|
$(CXX) -c $(CXXFLAGS) $< -o $@
|
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
sys.o: library/system/sys.c config.h
|
2014-03-06 02:09:48 +00:00
|
|
|
$(CC) -c $(CFPLAGS) -I$(srcdir)/include -I. $< -o $@
|
2005-09-08 22:59:58 +01:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
yap_random.o: library/random/yap_random.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include $< -o $@
|
2005-09-08 22:59:58 +01:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
%.o: library/regex/%.c @NO_BUILTIN_REGEXP@ library/regex/regex2.h library/regex/engine.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -Ilibrary/regex $< -o $@
|
2007-03-14 13:01:29 +00:00
|
|
|
|
2014-03-11 15:36:02 +00:00
|
|
|
%.o: library/dialect/swi/fli/%.c library/dialect/swi/fli/swi.h include/SWI-Prolog.h os/SWI-Stream.h config.h
|
2014-02-16 12:57:50 +00:00
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -Ilibrary/dialect/swi/fli $< -o $@
|
2010-11-29 23:17:06 +00:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
%.o: os/%.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -Ios @EXTRA_INCLUDES_FOR_WIN32@ $< -o $@
|
2011-02-03 11:23:12 +00:00
|
|
|
|
2014-07-13 05:30:14 +01:00
|
|
|
JIT_Compiler.o: IT/JIT_Compiler.cpp
|
|
|
|
$(CXX) -c $(CFLAGS) $(JITFLAGS) $< -o $@
|
|
|
|
|
|
|
|
%.o: $JIT/%.c
|
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
pl-ntcon.o: console/LGPL/pl-ntcon.c config.h
|
2014-11-04 01:27:58 +00:00
|
|
|
$(CC) -c $(CFLAGS) -DUNICODE -D_UNICODE -DPL_CONSOLE=1 -I$(srcdir)/include $< -o $@
|
2011-02-03 11:23:12 +00:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
pl-ntconsole.o: console/LGPL/pl-ntconsole.c config.h
|
2014-11-04 01:27:58 +00:00
|
|
|
$(CC) -c $(CFLAGS) -DUNICODE -D_UNICODE -DPL_CONSOLE=1 -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $< -o $@
|
2011-02-03 11:23:12 +00:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
pl-ntmain.o: console/LGPL/pl-ntmain.c config.h
|
2014-11-04 01:27:58 +00:00
|
|
|
$(CC) -c $(CFLAGS) -DUNICODE -D_UNICODE -DPL_CONSOLE=1 -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $< -o $@
|
2014-03-06 02:09:48 +00:00
|
|
|
|
|
|
|
yapres.o: console/LGPL/yap.rc console/LGPL/manifest.xml config.h
|
2014-03-11 15:36:02 +00:00
|
|
|
$(RC) $(RCFLAGS) -DUNICODE -D_UNICODE -DPL_CONSOLE=1 -I. -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os -I$(srcdir)/console/LGPL @EXTRA_INCLUDES_FOR_WIN32@ -i $< -o $@
|
2011-02-03 11:23:12 +00:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
uxnt.o: os/windows/uxnt.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -Ios @EXTRA_INCLUDES_FOR_WIN32@ $< -o $@
|
2011-03-08 00:03:50 +00:00
|
|
|
|
2011-03-27 13:14:42 +01:00
|
|
|
# libtai rule
|
2014-02-16 12:57:50 +00:00
|
|
|
%.o : os/libtai/%.c config.h
|
2011-03-27 13:14:42 +01:00
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
|
|
|
|
|
2001-07-03 12:19:15 +01:00
|
|
|
## CPP'ed files (for macro debugging)
|
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
%.i : C/%.c
|
2001-07-03 12:19:15 +01:00
|
|
|
$(CC) -E $< $(CFLAGS) > $@
|
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
absmi.i: C/absmi.c
|
|
|
|
$(CC) -E $(CFLAGS) $(ABSMI_FLAGS) C/absmi.c > $@
|
2001-07-03 12:19:15 +01:00
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
c_interface.i: C/c_interface.c include/c_interface.h
|
|
|
|
$(CC) -E $(C_INTERF_FLAGS) C/c_interface.c > $@
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
|
2014-02-10 23:31:33 +00:00
|
|
|
INSTALLED_PACKAGES= \
|
2014-02-13 01:58:48 +00:00
|
|
|
library/matrix \
|
2014-02-10 23:31:33 +00:00
|
|
|
library/random \
|
|
|
|
library/regex \
|
|
|
|
library/rltree \
|
|
|
|
library/system \
|
|
|
|
library/tries \
|
2014-02-13 01:58:48 +00:00
|
|
|
packages/meld \
|
2014-02-10 23:31:33 +00:00
|
|
|
packages/ProbLog \
|
2014-02-13 01:58:48 +00:00
|
|
|
packages/xml \
|
2014-02-10 23:31:33 +00:00
|
|
|
packages/yap-lbfgs \
|
|
|
|
@PKG_BDDLIB@ \
|
|
|
|
@PKG_CLPBN@ \
|
|
|
|
@PKG_CUDA@ \
|
|
|
|
@PKG_CPLINT@ \
|
|
|
|
@PKG_GECODE@ \
|
|
|
|
@PKG_MATLAB@ \
|
|
|
|
@PKG_MINISAT@ \
|
|
|
|
@PKG_MPI@ \
|
|
|
|
@PKG_MYDDAS@ \
|
|
|
|
@PKG_PRISM@ \
|
2014-07-16 00:57:09 +01:00
|
|
|
@PKG_PROSQLITE@ \
|
2014-02-10 23:31:33 +00:00
|
|
|
@PKG_PYTHON@ \
|
|
|
|
@PKG_RAPTOR@ \
|
|
|
|
@PKG_CLIB@ \
|
2014-07-14 05:43:18 +01:00
|
|
|
@PKG_CHR@ \
|
2014-02-10 23:31:33 +00:00
|
|
|
@PKG_JPL@ \
|
|
|
|
@PKG_LIBARCHIVE@ \
|
|
|
|
@PKG_ODBC@ \
|
|
|
|
@PKG_PLUNIT@ \
|
|
|
|
@PKG_REAL@ \
|
|
|
|
@PKG_RDF@ \
|
|
|
|
@PKG_SEMWEB@ \
|
|
|
|
@PKG_SGML@ \
|
2014-04-28 11:47:09 +01:00
|
|
|
@PKG_SWIG@ \
|
2014-02-10 23:31:33 +00:00
|
|
|
@PKG_WINCONSOLE@ \
|
2014-07-14 05:43:18 +01:00
|
|
|
@PKG_ZLIB@
|
2014-02-10 23:31:33 +00:00
|
|
|
|
|
|
|
PACKAGES= \
|
|
|
|
library \
|
|
|
|
swi/library \
|
|
|
|
swi/library/clp \
|
|
|
|
$(INSTALLED_PACKAGES)
|
|
|
|
|
2009-05-02 20:06:24 +01:00
|
|
|
all: startup.yss
|
2014-02-15 01:24:07 +00:00
|
|
|
for p in $(PACKAGES); do \
|
|
|
|
echo " ============== " $$p; \
|
|
|
|
if [ -r $$p/Makefile ]; then $(MAKE) -C $$p || exit 1; fi; \
|
|
|
|
done
|
2004-09-07 17:29:16 +01:00
|
|
|
|
2014-05-28 00:11:00 +01:00
|
|
|
@STARTUP_DEFAULT@startup.yss: yap@EXEC_SUFFIX@ $(PL_SOURCES) $(SWI_LIB_SOURCES)
|
2009-05-02 20:06:24 +01:00
|
|
|
-rm -f startup.yss
|
2014-01-22 18:12:58 +00:00
|
|
|
echo "bootstrap('$(srcdir)/pl/init.yap'). module(user). qsave_program('startup.yss')." | @PRE_INSTALL_ENV@ ./yap@EXEC_SUFFIX@ -b $(srcdir)/pl/boot.yap
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2014-07-13 05:30:14 +01:00
|
|
|
yap@EXEC_SUFFIX@: $(HEADERS) yap.o @YAPLIB@ libYap.a
|
2014-10-14 19:30:56 +01:00
|
|
|
$(MPI_CC) $(EXECUTABLE_CFLAGS) $(LDFLAGS) -o yap@EXEC_SUFFIX@ yap.o @YAPLIB@ $(LIBS) $(PAPILIB) $(JITLIBS) $(JITLD)
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2012-06-08 12:55:23 +01:00
|
|
|
yap-win: yap-win@EXEC_SUFFIX@
|
2011-06-06 19:03:20 +01:00
|
|
|
|
2012-06-08 12:55:23 +01:00
|
|
|
yapwin: yap-win@EXEC_SUFFIX@
|
2011-10-22 00:19:48 +01:00
|
|
|
|
2012-06-08 12:55:23 +01:00
|
|
|
yap-win@EXEC_SUFFIX@: $(PLCONS_OBJECTS) $(HEADERS) @YAPLIB@
|
2014-07-14 05:43:18 +01:00
|
|
|
$(MAKE) -C swi/console
|
2014-03-06 02:09:48 +00:00
|
|
|
$(MPI_CC) -municode -DUNICODE -D_UNICODE $(EXECUTABLE_CFLAGS) $(LDFLAGS) -Wl,-subsystem,windows -o yap-win@EXEC_SUFFIX@ $(PLCONS_OBJECTS) plterm.dll @YAPLIB@ $(LIBS) -lgdi32 @MPILDF@
|
2011-02-03 11:23:12 +00:00
|
|
|
|
2014-06-11 19:36:50 +01:00
|
|
|
libYap.a: $(LIB_OBJECTS) yapi.o
|
2001-04-09 20:54:03 +01:00
|
|
|
-rm -f libYap.a
|
2014-06-11 19:36:50 +01:00
|
|
|
$(AR) rc libYap.a $(LIB_OBJECTS) yapi.o
|
2001-04-09 20:54:03 +01:00
|
|
|
$(RANLIB) libYap.a
|
|
|
|
|
2014-06-11 19:36:50 +01:00
|
|
|
@DYNYAPLIB@: $(LIB_OBJECTS)
|
2014-06-19 15:08:54 +01:00
|
|
|
@SHLIB_LD@ -o $@ $(LIB_OBJECTS) $(LIBS) $(LDFLAGS) $(SONAMEFLAG)
|
2014-02-19 17:45:46 +00:00
|
|
|
for p in $(EXTRAYAPLIBS); do \
|
|
|
|
$(LN_S) -f @DYNYAPLIB@ $$p; \
|
|
|
|
done
|
2002-05-14 19:21:33 +01:00
|
|
|
|
2014-06-11 19:36:50 +01:00
|
|
|
@STARTUP_ANDROID@startup.yss: yap@EXEC_SUFFIX@ @DYNYAPLIB@ $(PL_SOURCES) $(SWI_LIB_SOURCES)
|
2014-06-20 20:01:56 +01:00
|
|
|
adb shell rm -rf /data/yap
|
2014-05-28 00:11:00 +01:00
|
|
|
adb shell mkdir -p /data/yap
|
|
|
|
adb shell mkdir -p /data/yap/pl
|
|
|
|
adb shell mkdir -p /data/yap/swi/library
|
|
|
|
adb push yap /data/yap/
|
2014-06-04 22:08:37 +01:00
|
|
|
adb push @DYNYAPLIB@ /data/yap/
|
2014-06-20 20:01:56 +01:00
|
|
|
for p in $(EXTRAYAPLIBS); do \
|
|
|
|
adb shell $(LN_S) /data/yap/@DYNYAPLIB@ /data/yap/$$p; \
|
|
|
|
done
|
|
|
|
adb push $(GMPDIR)/lib/libgmp.so /data/yap
|
2014-05-28 00:11:00 +01:00
|
|
|
adb push $(srcdir)/swi/library /data/yap/swi/library
|
|
|
|
adb push $(srcdir)/pl /data/yap/pl/
|
2014-09-17 22:55:19 +01:00
|
|
|
adb push $(srcdir)/library /data/yap/library/
|
2014-05-28 00:11:00 +01:00
|
|
|
adb shell "echo \"bootstrap('/data/yap/pl/init.yap'). module(user). qsave_program('/data/yap/startup.yss').\" | LD_LIBRARY_PATH=/data/yap /data/yap/yap@EXEC_SUFFIX@ -b /data/yap/pl/boot.yap"
|
2014-06-04 22:08:37 +01:00
|
|
|
adb pull /data/yap/startup.yss
|
2014-06-20 20:01:56 +01:00
|
|
|
adb shell rm -rf /data/yap
|
2014-05-28 00:11:00 +01:00
|
|
|
|
2014-06-04 22:08:37 +01:00
|
|
|
install: @INSTALL_COMMAND@ install_startup install_common
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2014-06-04 22:08:37 +01:00
|
|
|
install_unix: @YAPLIB@ yap@EXEC_SUFFIX@
|
2001-11-26 16:05:19 +00:00
|
|
|
mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(YAPLIBDIR)
|
2014-05-29 10:33:56 +01:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)
|
2004-01-23 02:17:21 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
|
2014-03-06 02:09:48 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/icons
|
2014-05-29 10:33:56 +01:00
|
|
|
$(INSTALL_PROGRAM) -m 755 yap@EXEC_SUFFIX@ $(DESTDIR)$(BINDIR)/yap
|
|
|
|
$(INSTALL_DATA) -m 755 @YAPLIB@ $(DESTDIR)$(LIBDIR)
|
|
|
|
|
|
|
|
install_startup: startup.yss
|
|
|
|
$(INSTALL_DATA) startup.yss $(DESTDIR)$(YAPLIBDIR)/startup.yss
|
|
|
|
|
|
|
|
install_win32: startup.yss @WINDOWS@ yap-win@EXEC_SUFFIX@
|
|
|
|
mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(YAPLIBDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/icons
|
|
|
|
$(INSTALL_PROGRAM) -m 755 yap.dll $(DESTDIR)$(BINDIR)/yap.dll
|
|
|
|
@WINDOWS@ $(INSTALL_PROGRAM) -m 755 yap-win.exe $(DESTDIR)$(BINDIR)/yap-win.exe
|
|
|
|
@WINDOWS@ $(INSTALL_PROGRAM) -m 755 yap.exe $(DESTDIR)$(BINDIR)/yap.exe
|
|
|
|
@WINDOWS@ for i in *.dll; do $(INSTALL_PROGRAM) -m 755 $$i $(DESTDIR)$(BINDIR)/; done
|
|
|
|
$(INSTALL_DATA) $(srcdir)/misc/icons/yap.ico $(DESTDIR)$(SHAREDIR)/Yap/icons/yap.ico
|
|
|
|
|
2014-06-04 22:08:37 +01:00
|
|
|
install_common: install_startup
|
|
|
|
mkdir -p $(DESTDIR)$(YAPLIBDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
|
2014-05-29 10:33:56 +01:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/PrologCommons
|
2014-11-05 07:43:48 +00:00
|
|
|
$(INSTALL) $(srcdir)/PrologCommons/PROLOGCOMMONS.md $(DESTDIR)$(SHAREDIR)/PrologCommons
|
2004-01-23 02:17:21 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/pl
|
2010-02-23 01:06:35 +00:00
|
|
|
mkdir -p $(DESTDIR)$(DOCSDIR)
|
2014-02-10 23:31:33 +00:00
|
|
|
mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(INCLUDEDIR)/src
|
2014-02-19 17:45:46 +00:00
|
|
|
for p in $(EXTRAYAPLIBS); do \
|
2014-02-20 16:20:14 +00:00
|
|
|
$(LN_S) -f $(DESTDIR)$(LIBDIR)/@YAPLIB@ $(DESTDIR)$(LIBDIR)/$$p; \
|
2014-02-19 17:45:46 +00:00
|
|
|
done
|
2014-02-16 15:20:07 +00:00
|
|
|
$(INSTALL) $(srcdir)/Artistic $(DESTDIR)$(DOCSDIR)
|
2014-03-11 11:24:10 +00:00
|
|
|
$(INSTALL) $(srcdir)/README.TXT $(DESTDIR)$(DOCSDIR)
|
2014-02-16 15:20:07 +00:00
|
|
|
$(INSTALL) $(srcdir)/COPYING $(DESTDIR)$(DOCSDIR)
|
|
|
|
for f in $(PL_SOURCES); do $(INSTALL) $(srcdir)/$$f $(DESTDIR)$(SHAREDIR)/Yap/pl; done
|
|
|
|
for h in $(INTERFACE_HEADERS); do $(INSTALL) $(srcdir)/$$h $(DESTDIR)$(INCLUDEDIR); done
|
|
|
|
for h in $(HEADERS); do $(INSTALL) $(srcdir)/$$h $(DESTDIR)$(INCLUDEDIR)/src; done
|
2011-11-02 22:55:56 +00:00
|
|
|
$(INSTALL) config.h $(DESTDIR)$(INCLUDEDIR)/src/config.h
|
|
|
|
$(INSTALL) YapTermConfig.h $(DESTDIR)$(INCLUDEDIR)
|
2014-02-15 01:24:07 +00:00
|
|
|
for p in $(PACKAGES); do \
|
|
|
|
echo " ============== INSTALLING" $$p; \
|
|
|
|
if [ -r $$p/Makefile ]; then $(MAKE) -C $$p install || exit 1; fi; \
|
|
|
|
done
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2002-05-14 19:21:33 +01:00
|
|
|
install_library: @YAPLIB@
|
2001-11-26 16:05:19 +00:00
|
|
|
mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
2001-07-03 12:19:15 +01:00
|
|
|
for h in $(HEADERS); do $(INSTALL) $$h $(DESTDIR)$(INCLUDEDIR); done
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
##########
|
2014-05-28 00:11:00 +01:00
|
|
|
FULL_PATH_C_SOURCES=$(addprefix $(srcdir)/, $(C_SOURCES) )
|
|
|
|
FULL_PATH_PL_SOURCES=$(addprefix $(srcdir)/, $(PL_SOURCES) )
|
|
|
|
FULL_PATH_HEADERS=$(addprefix $(srcdir)/, $(HEADERS) )
|
2014-02-19 22:31:41 +00:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
TAGS: $(C_SOURCES) $(PL_SOURCES) $(HEADERS)
|
2014-09-22 18:13:35 +01:00
|
|
|
rm -f TAGS
|
|
|
|
find . -name '*.c' -exec etags -a {} \;
|
|
|
|
find . -name '*.h' -exec etags -a {} \;
|
|
|
|
find . -name '*.i' -exec etags -a {} \;
|
|
|
|
find . -name '*.yap' -exec etags -a {} \;
|
|
|
|
find . -name '*.pl' -exec etags -a {} \;
|
|
|
|
find . -name '*.cpp' -exec etags -a {} \;
|
|
|
|
find . -name '*.hh' -exec etags -a {} \;
|
|
|
|
find . -name '*.java' -exec etags -a {} \;
|
|
|
|
find . -name '*.py' -exec etags -a {} \;
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2008-03-13 17:13:34 +00:00
|
|
|
depend: $(HEADERS) $(C_SOURCES)
|
2001-04-09 20:54:03 +01:00
|
|
|
-@if test "$(GCC)" = yes; then\
|
2014-03-18 15:41:54 +00:00
|
|
|
$(CC) -MM $(CFLAGS) -D__YAP_NOT_INSTALLED__=1 -I$(srcdir)/H -I$(srcdir)/include -I$(srcdir)/os -I$(srcdir)/library/dialect/swi/fli -I. $(FULL_PATH_C_SOURCES) >> Makefile;\
|
2001-04-09 20:54:03 +01:00
|
|
|
else\
|
2014-02-16 12:57:50 +00:00
|
|
|
makedepend -f - -- $(CFLAGS) -Iinclude -- $(C_SOURCES) |\
|
2009-04-23 03:22:04 +01:00
|
|
|
sed 's|.*/\([^:]*\):|\1:|' >> Makefile ;\
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2014-02-12 23:38:46 +00:00
|
|
|
clean: clean_docs clean_local
|
2014-07-14 05:43:18 +01:00
|
|
|
for f in $(PACKAGES); do ( $(MAKE) -C $$f clean ); done
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2014-02-12 23:38:46 +00:00
|
|
|
clean_local:
|
2014-05-28 00:11:00 +01:00
|
|
|
rm -f *.o *~ *.BAK *.a
|
2014-02-12 23:38:46 +00:00
|
|
|
|
2014-02-13 01:58:48 +00:00
|
|
|
distclean: distclean_docs clean_local
|
2014-02-15 01:24:07 +00:00
|
|
|
for p in $(PACKAGES); do \
|
2014-03-06 02:09:48 +00:00
|
|
|
echo " ============== DISTCLEAN " $$p; \
|
2014-02-15 01:24:07 +00:00
|
|
|
if [ -r $$p/Makefile ]; then $(MAKE) -C $$p distclean || exit 1; fi; \
|
|
|
|
done
|
2014-03-06 02:09:48 +00:00
|
|
|
rm -f yap* startup.yss libYap.* Makefile packages/Makefile.defs packages/Dialect.defs
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
dist:
|
|
|
|
|
|
|
|
.c.s:
|
|
|
|
$(CC) $(CFLAGS) -S $<
|
|
|
|
|
2002-11-13 15:29:44 +00:00
|
|
|
# use my own .def file.
|
2001-04-09 20:54:03 +01:00
|
|
|
libWYap.a: yap.dll
|
2014-02-16 12:57:50 +00:00
|
|
|
dlltool --def misc/yap.def \
|
2002-11-13 15:29:44 +00:00
|
|
|
--dllname yap.dll \
|
|
|
|
--output-lib libWYap.a
|
|
|
|
|
2011-10-22 00:19:48 +01:00
|
|
|
# yap.dll: libYap.a
|
|
|
|
# $(CC) $(CFLAGS) -shared -o yap.dll \
|
|
|
|
# -Wl,--export-all-symbols \
|
|
|
|
# -Wl,--enable-auto-import \
|
|
|
|
# -Wl,--whole-archive libYap.a \
|
|
|
|
# -Wl,--no-whole-archive $(LIBS) $(LDFLAGS)
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
install_info:
|
2008-06-26 14:09:15 +01:00
|
|
|
$(MAKE) info; \
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL) yap.info* $(DESTDIR)$(INFODIR); \
|
|
|
|
if test -e $(DESTDIR)$(INFODIR)/emacs.bz2; then \
|
|
|
|
bzip2 --quiet --force $(DESTDIR)$(INFODIR)/yap.info*; \
|
2001-04-09 20:54:03 +01:00
|
|
|
else \
|
2001-04-16 17:41:04 +01:00
|
|
|
if test -e $(DESTDIR)$(INFODIR)/emacs.gz; then \
|
|
|
|
gzip --quiet --force $(DESTDIR)$(INFODIR)/yap.info*; \
|
2001-04-09 20:54:03 +01:00
|
|
|
fi \
|
|
|
|
fi; \
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL_INFO) --quiet --section "Programming Languages" yap.info $(DESTDIR)$(INFODIR)/dir; \
|
2014-02-16 12:57:50 +00:00
|
|
|
cd LGPL/pillow/doc ; \
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL) pillow_doc.info $(DESTDIR)$(INFODIR); \
|
|
|
|
if test -e $(DESTDIR)$(INFODIR)/emacs.bz2; then \
|
|
|
|
bzip2 --quiet --force $(DESTDIR)$(INFODIR)/pillow_doc.info; \
|
2001-04-09 20:54:03 +01:00
|
|
|
else \
|
2001-04-16 17:41:04 +01:00
|
|
|
if test -e $(DESTDIR)$(INFODIR)/emacs.gz; then \
|
|
|
|
gzip --quiet --force $(DESTDIR)$(INFODIR)/pillow_doc.info; \
|
2001-04-09 20:54:03 +01:00
|
|
|
fi \
|
|
|
|
fi; \
|
2009-04-28 21:02:37 +01:00
|
|
|
$(INSTALL_INFO) --quiet --section "Programming Languages" --entry="`cat pillow_doc.infoindex`" --info-dir=$(DESTDIR)$(INFODIR) pillow_doc.info
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2014-06-11 19:36:50 +01:00
|
|
|
install_docs: doxygen
|
2008-08-22 03:53:45 +01:00
|
|
|
$(MAKE) pdf
|
|
|
|
$(MAKE) html
|
2014-06-11 19:36:50 +01:00
|
|
|
$(INSTALL_DATA) html $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) pdf $(DESTDIR)$(DOCSDIR)
|
2014-03-11 11:24:10 +00:00
|
|
|
$(INSTALL_DATA) README.TXT $(DESTDIR)$(DOCSDIR)
|
2014-02-16 12:57:50 +00:00
|
|
|
$(INSTALL_DATA) Artistic $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) COPYING $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) changes4.3.html $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) changes-5.0.html $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) changes-5.1.html $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) changes-6.0.html $(DESTDIR)$(DOCSDIR)
|
2010-10-24 20:26:49 +01:00
|
|
|
|
2014-06-11 19:36:50 +01:00
|
|
|
doxygen:
|
|
|
|
doxygen $(srcdir)/docs/doxygen.rc
|
2008-08-22 03:53:45 +01:00
|
|
|
|
2001-04-16 17:41:04 +01:00
|
|
|
info: yap.info
|
|
|
|
|
2014-03-06 02:09:48 +00:00
|
|
|
yap.info: docs/yap.tex
|
|
|
|
$(MAKEINFO) $<
|
2001-04-16 17:41:04 +01:00
|
|
|
|
|
|
|
html: yap.html
|
|
|
|
|
2014-02-16 12:57:50 +00:00
|
|
|
yap.html: docs/yap.tex
|
2014-03-06 02:09:48 +00:00
|
|
|
$(TEXI2HTML) $<
|
2001-04-16 17:41:04 +01:00
|
|
|
|
|
|
|
dvi: yap.dvi
|
|
|
|
|
2014-03-06 02:09:48 +00:00
|
|
|
yap.dvi: docs/yap.tex
|
|
|
|
$(TEXI2DVI) $<
|
2001-04-16 17:41:04 +01:00
|
|
|
|
|
|
|
ps: yap.ps
|
|
|
|
|
2014-03-06 02:09:48 +00:00
|
|
|
yap.ps: docs/yap.tex
|
|
|
|
dvips -o yap.ps $<
|
2001-04-16 17:41:04 +01:00
|
|
|
|
|
|
|
pdf: yap.pdf
|
|
|
|
|
2014-03-06 02:09:48 +00:00
|
|
|
yap.pdf: docs/yap.tex
|
|
|
|
$(TEXI2PDF) $<
|
2001-04-16 17:41:04 +01:00
|
|
|
|
|
|
|
clean_docs:
|
|
|
|
rm -f *.aux *.ca *.cas *.cn *.cns *.cp *.cps *.cy *.cys *.dvi *.fn *.fns *.ky *.log *.sa *.sas *.sn *.sns *.sy *.sys *~ *.tp *.vr *.toc *.pg
|
|
|
|
|
2014-02-13 01:58:48 +00:00
|
|
|
distclean_docs: clean_docs
|
2001-04-16 17:41:04 +01:00
|
|
|
rm -f yap.ps yap.html yap_toc.html yap.pdf yap.info*
|
|
|
|
|
2007-11-07 13:02:37 +00:00
|
|
|
installcheck:
|
2014-07-14 05:43:18 +01:00
|
|
|
$(MAKE) -C packages/cplint installcheck
|
2010-03-18 14:16:28 +00:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|