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.
|
|
|
|
#
|
2010-01-15 15:09:18 +00:00
|
|
|
YAP_EXTRAS=-DCUT_C=1 @YAP_EXTRAS@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2009-10-23 09:09:16 +01:00
|
|
|
YAPSTARTUP=startup.yss
|
|
|
|
|
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@
|
2002-02-22 14:31:45 +00:00
|
|
|
MPI_CC=@MPI_CC@
|
2011-09-04 18:42:33 +01:00
|
|
|
CPPFLAGS=@CPPFLAGS@ -I. -I$(srcdir)/H -I$(srcdir)/include -I$(srcdir)/os -I$(srcdir)/OPTYap -I$(srcdir)/BEAM -I$(srcdir)/MYDDAS
|
2010-06-21 11:54:21 +01:00
|
|
|
EXECUTABLE_CFLAGS= @CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
|
|
|
|
CFLAGS= @YAPLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
|
|
|
|
C_INTERF_FLAGS= @YAPLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS) -I$(srcdir)/include
|
|
|
|
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@
|
2010-01-15 14:39:03 +00:00
|
|
|
DEFS=@DEFS@ -D_YAP_NOT_INSTALLED_=1
|
2001-04-09 20:54:03 +01:00
|
|
|
LIBS=@LIBS@
|
2002-02-28 22:43:36 +00:00
|
|
|
LDFLAGS=@LDFLAGS@
|
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@
|
|
|
|
M4GENHDRS=$(srcdir)/@M4GENHDRS@
|
|
|
|
M4GENABSMI=$(srcdir)/@M4GENABSMI@
|
|
|
|
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@
|
2001-04-23 21:41:58 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
#4.1VPATH=@srcdir@:@srcdir@/OPTYap
|
|
|
|
CWD=$(PWD)
|
|
|
|
#
|
2012-02-13 19:30:00 +00:00
|
|
|
VERSION=6.3.2
|
2006-05-22 17:23:49 +01:00
|
|
|
MYDDAS_VERSION=MYDDAS-0.9.1
|
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) \
|
2009-02-11 15:10:57 +00:00
|
|
|
$(srcdir)/include/c_interface.h \
|
|
|
|
$(srcdir)/include/clause_list.h \
|
2010-05-03 14:26:56 +01:00
|
|
|
$(srcdir)/include/dswiatoms.h \
|
2009-02-12 16:39:20 +00:00
|
|
|
$(srcdir)/include/udi.h \
|
2009-02-20 11:42:48 +00:00
|
|
|
$(srcdir)/include/rtree_udi.h \
|
2009-02-11 15:10:57 +00:00
|
|
|
$(srcdir)/include/yap_structs.h \
|
|
|
|
$(srcdir)/include/YapInterface.h \
|
|
|
|
$(srcdir)/include/SWI-Prolog.h \
|
2011-11-02 22:55:56 +00:00
|
|
|
$(srcdir)/H/TermExt.h \
|
|
|
|
$(srcdir)/H/YapTags.h \
|
|
|
|
$(srcdir)/H/Tags_32bits.h \
|
|
|
|
$(srcdir)/H/Tags_32Ops.h \
|
|
|
|
$(srcdir)/H/Tags_32LowTag.h \
|
|
|
|
$(srcdir)/H/Tags_64bits.h \
|
|
|
|
$(srcdir)/H/Tags_24bits.h \
|
2012-05-14 15:06:18 +01:00
|
|
|
$(srcdir)/H/YapCompoundTerm.h \
|
2011-11-02 22:55:56 +00:00
|
|
|
$(srcdir)/include/YapRegs.h \
|
2012-05-14 15:06:18 +01:00
|
|
|
$(srcdir)/H/YapTerm.h \
|
2011-10-27 11:37:26 +01:00
|
|
|
$(srcdir)/library/dialect/bprolog/fli/bprolog.h \
|
2012-06-29 21:38:49 +01:00
|
|
|
$(srcdir)/os/pl-thread.h \
|
2011-09-04 18:42:33 +01:00
|
|
|
$(srcdir)/os/SWI-Stream.h
|
|
|
|
|
|
|
|
IOLIB_HEADERS=$(srcdir)/os/pl-buffer.h \
|
|
|
|
$(srcdir)/os/pl-ctype.h \
|
2012-01-26 04:15:53 +00:00
|
|
|
$(srcdir)/H/pl-codelist.h \
|
2011-09-04 18:42:33 +01:00
|
|
|
$(srcdir)/os/pl-dtoa.h \
|
|
|
|
$(srcdir)/os/dtoa.c \
|
|
|
|
$(srcdir)/H/pl-incl.h \
|
|
|
|
$(srcdir)/H/pl-global.h \
|
|
|
|
$(srcdir)/os/pl-mswchar.h \
|
|
|
|
$(srcdir)/os/pl-option.h \
|
|
|
|
$(srcdir)/os/pl-os.h \
|
|
|
|
$(srcdir)/os/pl-privitf.h \
|
|
|
|
$(srcdir)/os/pl-table.h \
|
|
|
|
$(srcdir)/os/pl-text.h \
|
|
|
|
$(srcdir)/os/pl-utf8.h \
|
|
|
|
$(srcdir)/H/pl-yap.h @ENABLE_WINCONSOLE@ $(srcdir)/os/windows/dirent.h $(srcdir)/os/windows/utf8.h $(srcdir)/os/windows/utf8.c $(srcdir)/os/windows/uxnt.h $(srcdir)/os/windows/mswchar.h $(srcdir)/os/windows/popen.c
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
HEADERS = \
|
2010-05-03 14:26:56 +01:00
|
|
|
$(srcdir)/H/Atoms.h \
|
|
|
|
$(srcdir)/H/sshift.h \
|
|
|
|
$(srcdir)/H/Yap.h \
|
|
|
|
$(srcdir)/H/Yatom.h \
|
2009-10-23 14:22:17 +01:00
|
|
|
$(srcdir)/H/YapHeap.h \
|
2010-05-03 14:26:56 +01:00
|
|
|
$(srcdir)/H/Regs.h \
|
|
|
|
$(srcdir)/H/Yapproto.h \
|
|
|
|
$(srcdir)/H/absmi.h \
|
|
|
|
$(srcdir)/H/alloc.h \
|
|
|
|
$(srcdir)/H/amidefs.h \
|
|
|
|
$(srcdir)/H/amiops.h \
|
|
|
|
$(srcdir)/H/arrays.h \
|
|
|
|
$(srcdir)/H/arith2.h \
|
|
|
|
$(srcdir)/H/attvar.h \
|
|
|
|
$(srcdir)/H/clause.h \
|
|
|
|
$(srcdir)/H/compile.h \
|
|
|
|
$(srcdir)/H/corout.h \
|
|
|
|
$(srcdir)/H/dlmalloc.h \
|
2010-03-21 22:12:42 +00:00
|
|
|
$(srcdir)/H/dglobals.h \
|
2011-03-23 16:45:47 +00:00
|
|
|
$(srcdir)/H/dlocals.h \
|
2010-03-21 22:12:42 +00:00
|
|
|
$(srcdir)/H/dhstruct.h \
|
2010-05-03 14:26:56 +01:00
|
|
|
$(srcdir)/H/eval.h \
|
|
|
|
$(srcdir)/H/heapgc.h \
|
2010-03-21 22:12:42 +00:00
|
|
|
$(srcdir)/H/hglobals.h \
|
2011-03-23 16:45:47 +00:00
|
|
|
$(srcdir)/H/hlocals.h \
|
2010-03-21 22:12:42 +00:00
|
|
|
$(srcdir)/H/hstruct.h \
|
|
|
|
$(srcdir)/H/iglobals.h \
|
|
|
|
$(srcdir)/H/ihstruct.h \
|
2012-06-29 22:44:08 +01:00
|
|
|
$(srcdir)/H/ilocals.h \
|
2010-05-03 14:26:56 +01:00
|
|
|
$(srcdir)/H/index.h \
|
2012-06-29 22:44:08 +01:00
|
|
|
$(srcdir)/H/inline-only.h \
|
2010-05-03 14:26:56 +01:00
|
|
|
$(srcdir)/H/iopreds.h \
|
|
|
|
$(srcdir)/H/iswiatoms.h \
|
2011-08-24 04:11:54 +01:00
|
|
|
$(srcdir)/H/qly.h \
|
2005-01-04 02:50:23 +00:00
|
|
|
$(srcdir)/H/rclause.h \
|
2010-03-21 22:12:42 +00:00
|
|
|
$(srcdir)/H/rglobals.h \
|
2011-03-23 16:45:47 +00:00
|
|
|
$(srcdir)/H/rlocals.h \
|
2002-06-04 19:21:55 +01:00
|
|
|
$(srcdir)/H/rheap.h \
|
2010-03-21 22:12:42 +00:00
|
|
|
$(srcdir)/H/rhstruct.h \
|
2004-07-23 04:37:17 +01:00
|
|
|
$(srcdir)/H/threads.h \
|
2008-06-04 15:47:18 +01:00
|
|
|
$(srcdir)/H/tracer.h \
|
|
|
|
$(srcdir)/H/trim_trail.h \
|
2004-07-23 04:37:17 +01:00
|
|
|
$(srcdir)/H/yapio.h \
|
2005-09-08 22:59:58 +01:00
|
|
|
$(srcdir)/BEAM/eam.h $(srcdir)/BEAM/eamamasm.h \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/OPTYap/opt.config.h \
|
|
|
|
$(srcdir)/OPTYap/opt.proto.h $(srcdir)/OPTYap/opt.structs.h \
|
|
|
|
$(srcdir)/OPTYap/opt.macros.h $(srcdir)/OPTYap/or.macros.h \
|
2011-03-31 14:50:47 +01:00
|
|
|
$(srcdir)/OPTYap/or.sba_amiops.h $(srcdir)/OPTYap/or.sba_unify.h \
|
2010-04-19 02:34:08 +01:00
|
|
|
$(srcdir)/OPTYap/tab.structs.h $(srcdir)/OPTYap/locks_x86.h \
|
|
|
|
$(srcdir)/OPTYap/locks_sparc.h $(srcdir)/OPTYap/locks_mips.h \
|
|
|
|
$(srcdir)/OPTYap/locks_mips_funcs.h $(srcdir)/OPTYap/locks_alpha.h \
|
|
|
|
$(srcdir)/OPTYap/locks_alpha_funcs.h \
|
|
|
|
$(srcdir)/OPTYap/locks_pthread.h \
|
2005-11-22 11:25:59 +00:00
|
|
|
$(srcdir)/H/cut_c.h \
|
2008-12-23 01:53:52 +00:00
|
|
|
$(srcdir)/H/iatoms.h $(srcdir)/H/ratoms.h $(srcdir)/H/tatoms.h \
|
2010-11-30 22:33:33 +00:00
|
|
|
$(srcdir)/library/dialect/swi/fli/swi.h \
|
2006-05-22 17:23:49 +01:00
|
|
|
$(srcdir)/MYDDAS/myddas.h $(srcdir)/MYDDAS/myddas_structs.h \
|
|
|
|
$(srcdir)/MYDDAS/myddas_statistics.h \
|
2008-03-13 17:13:34 +00:00
|
|
|
$(srcdir)/MYDDAS/myddas_statistics_structs.h \
|
|
|
|
$(srcdir)/MYDDAS/myddas_wkb.h $(srcdir)/MYDDAS/myddas_wkb2prolog.h
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
IOLIB_SOURCES=$(srcdir)/os/pl-buffer.c $(srcdir)/os/pl-ctype.c \
|
|
|
|
$(srcdir)/os/pl-codelist.c \
|
|
|
|
$(srcdir)/os/pl-dtoa.c \
|
|
|
|
$(srcdir)/os/pl-error.c \
|
|
|
|
$(srcdir)/os/pl-file.c \
|
|
|
|
$(srcdir)/os/pl-files.c \
|
|
|
|
$(srcdir)/os/pl-fmt.c \
|
|
|
|
$(srcdir)/os/pl-glob.c \
|
|
|
|
$(srcdir)/os/pl-option.c \
|
|
|
|
$(srcdir)/os/pl-os.c \
|
|
|
|
$(srcdir)/os/pl-prologflag.c \
|
|
|
|
$(srcdir)/os/pl-privitf.c \
|
|
|
|
$(srcdir)/os/pl-read.c \
|
|
|
|
$(srcdir)/os/pl-rl.c \
|
|
|
|
$(srcdir)/os/pl-stream.c $(srcdir)/os/pl-string.c \
|
|
|
|
$(srcdir)/os/pl-table.c \
|
|
|
|
$(srcdir)/os/pl-tai.c \
|
|
|
|
$(srcdir)/os/pl-text.c \
|
|
|
|
$(srcdir)/os/pl-write.c \
|
|
|
|
$(srcdir)/C/pl-yap.c @ENABLE_WINCONSOLE@$(srcdir)/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) \
|
2002-06-04 19:21:55 +01:00
|
|
|
$(srcdir)/C/absmi.c $(srcdir)/C/adtdefs.c \
|
|
|
|
$(srcdir)/C/agc.c $(srcdir)/C/alloc.c \
|
2001-06-27 13:46:56 +01:00
|
|
|
$(srcdir)/C/amasm.c $(srcdir)/C/analyst.c \
|
|
|
|
$(srcdir)/C/arith0.c $(srcdir)/C/arith1.c $(srcdir)/C/arith2.c \
|
|
|
|
$(srcdir)/C/arrays.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/attvar.c $(srcdir)/C/bb.c \
|
2001-06-27 13:46:56 +01:00
|
|
|
$(srcdir)/C/bignum.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/c_interface.c $(srcdir)/C/cdmgr.c $(srcdir)/C/cmppreds.c \
|
2009-02-11 15:10:57 +00:00
|
|
|
$(srcdir)/C/clause_list.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/compiler.c $(srcdir)/C/computils.c \
|
2004-10-28 21:12:23 +01:00
|
|
|
$(srcdir)/C/corout.c $(srcdir)/C/dbase.c $(srcdir)/C/dlmalloc.c \
|
|
|
|
$(srcdir)/C/errors.c \
|
2005-12-17 03:25:39 +00:00
|
|
|
$(srcdir)/C/eval.c $(srcdir)/C/exec.c \
|
2008-11-28 15:54:46 +00:00
|
|
|
$(srcdir)/C/globals.c $(srcdir)/C/gmp_support.c \
|
|
|
|
$(srcdir)/C/gprof.c $(srcdir)/C/grow.c \
|
2002-11-12 04:36:05 +00:00
|
|
|
$(srcdir)/C/heapgc.c $(srcdir)/C/index.c \
|
|
|
|
$(srcdir)/C/init.c $(srcdir)/C/inlines.c \
|
2001-06-27 13:46:56 +01:00
|
|
|
$(srcdir)/C/iopreds.c $(srcdir)/C/depth_bound.c \
|
|
|
|
$(srcdir)/C/load_foreign.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/load_dl.c $(srcdir)/C/load_dld.c $(srcdir)/C/load_none.c \
|
|
|
|
$(srcdir)/C/load_aout.c $(srcdir)/C/load_aix.c $(srcdir)/C/load_dll.c \
|
2002-09-24 15:18:56 +01:00
|
|
|
$(srcdir)/C/load_shl.c $(srcdir)/C/load_dyld.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/mavar.c $(srcdir)/C/modules.c $(srcdir)/C/other.c \
|
2002-06-04 19:21:55 +01:00
|
|
|
$(srcdir)/C/parser.c \
|
2011-08-24 04:11:54 +01:00
|
|
|
$(srcdir)/C/qlyr.c \
|
2011-08-09 12:10:56 +01:00
|
|
|
$(srcdir)/C/qlyw.c \
|
2002-06-04 19:21:55 +01:00
|
|
|
$(srcdir)/C/save.c $(srcdir)/C/scanner.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/sort.c $(srcdir)/C/stdpreds.c $(srcdir)/C/sysbits.c \
|
2004-01-23 02:17:21 +00:00
|
|
|
$(srcdir)/C/threads.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/tracer.c $(srcdir)/C/unify.c $(srcdir)/C/userpreds.c \
|
2009-02-12 16:39:20 +00:00
|
|
|
$(srcdir)/C/udi.c \
|
2009-02-20 11:42:48 +00:00
|
|
|
$(srcdir)/packages/udi/rtree.c \
|
|
|
|
$(srcdir)/packages/udi/rtree_udi.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/utilpreds.c $(srcdir)/C/write.c $(srcdir)/console/yap.c \
|
2012-06-22 09:56:01 +01:00
|
|
|
$(srcdir)/C/yap-args.c \
|
2011-02-12 23:38:24 +00:00
|
|
|
$(srcdir)/C/ypstdio.c \
|
2005-09-08 22:59:58 +01:00
|
|
|
$(srcdir)/BEAM/eam_am.c $(srcdir)/BEAM/eam_showcode.c \
|
|
|
|
$(srcdir)/BEAM/eamindex.c $(srcdir)/BEAM/eamamasm.c \
|
|
|
|
$(srcdir)/BEAM/eam_gc.c $(srcdir)/BEAM/eam_split.c \
|
2011-06-02 17:05:58 +01:00
|
|
|
$(srcdir)/OPTYap/or.memory.c $(srcdir)/OPTYap/opt.init.c \
|
2011-03-31 14:50:47 +01:00
|
|
|
$(srcdir)/OPTYap/opt.preds.c $(srcdir)/OPTYap/or.copy_engine.c \
|
|
|
|
$(srcdir)/OPTYap/or.cow_engine.c $(srcdir)/OPTYap/or.sba_engine.c \
|
|
|
|
$(srcdir)/OPTYap/or.thread_engine.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/OPTYap/or.scheduler.c $(srcdir)/OPTYap/or.cut.c \
|
2010-04-19 02:34:08 +01:00
|
|
|
$(srcdir)/OPTYap/tab.tries.c $(srcdir)/OPTYap/tab.completion.c \
|
2005-11-18 18:52:41 +00:00
|
|
|
$(srcdir)/library/mpi/mpi.c $(srcdir)/library/mpi/mpe.c \
|
2006-06-04 19:33:46 +01:00
|
|
|
$(srcdir)/library/lammpi/yap_mpi.c $(srcdir)/library/lammpi/hash.c $(srcdir)/library/lammpi/prologterms2c.c \
|
2005-11-22 11:25:59 +00:00
|
|
|
$(srcdir)/C/cut_c.c \
|
2010-11-30 22:33:33 +00:00
|
|
|
$(srcdir)/library/dialect/swi/fli/swi.c \
|
|
|
|
$(srcdir)/library/dialect/swi/fli/blobs.c \
|
2005-11-22 11:25:59 +00:00
|
|
|
$(srcdir)/MYDDAS/myddas_mysql.c \
|
|
|
|
$(srcdir)/MYDDAS/myddas_odbc.c \
|
|
|
|
$(srcdir)/MYDDAS/myddas_util.c \
|
2006-06-06 15:11:36 +01:00
|
|
|
$(srcdir)/MYDDAS/myddas_initialization.c \
|
2005-11-22 11:25:59 +00:00
|
|
|
$(srcdir)/MYDDAS/myddas_shared.c \
|
2006-02-05 02:19:15 +00:00
|
|
|
$(srcdir)/MYDDAS/myddas_statistics.c \
|
2008-03-13 17:13:34 +00:00
|
|
|
$(srcdir)/MYDDAS/myddas_top_level.c \
|
|
|
|
$(srcdir)/MYDDAS/myddas_wkb2prolog.c
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2011-02-03 11:23:12 +00:00
|
|
|
PLCONS_SOURCES = \
|
|
|
|
$(srcdir)/console/LGPL/pl-nt.c \
|
|
|
|
$(srcdir)/console/LGPL/pl-ntcon.c \
|
|
|
|
$(srcdir)/console/LGPL/pl-ntconsole.c \
|
|
|
|
$(srcdir)/console/LGPL/pl-ntmain.c
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
PL_SOURCES= \
|
2010-03-12 14:26:35 +00:00
|
|
|
$(srcdir)/pl/arith.yap \
|
|
|
|
$(srcdir)/pl/arrays.yap \
|
|
|
|
$(srcdir)/pl/attributes.yap \
|
|
|
|
$(srcdir)/pl/boot.yap \
|
2002-09-03 15:28:09 +01:00
|
|
|
$(srcdir)/pl/callcount.yap\
|
2007-12-29 12:26:41 +00:00
|
|
|
$(srcdir)/pl/checker.yap $(srcdir)/pl/chtypes.yap \
|
|
|
|
$(srcdir)/pl/consult.yap \
|
2009-08-20 16:39:25 +01:00
|
|
|
$(srcdir)/pl/control.yap \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/pl/corout.yap $(srcdir)/pl/debug.yap \
|
2011-04-30 01:16:40 +01:00
|
|
|
$(srcdir)/pl/dbload.yap \
|
2008-02-22 15:08:37 +00:00
|
|
|
$(srcdir)/pl/depth_bound.yap \
|
2010-04-20 23:19:51 +01:00
|
|
|
$(srcdir)/pl/dialect.yap \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/pl/directives.yap \
|
2008-02-22 15:08:37 +00:00
|
|
|
$(srcdir)/pl/eam.yap \
|
2008-12-04 23:37:25 +00:00
|
|
|
$(srcdir)/pl/eval.yap \
|
2010-02-28 01:11:05 +00:00
|
|
|
$(srcdir)/pl/errors.yap \
|
|
|
|
$(srcdir)/pl/flags.yap \
|
|
|
|
$(srcdir)/pl/grammar.yap \
|
2008-02-22 16:00:57 +00:00
|
|
|
$(srcdir)/pl/ground.yap \
|
|
|
|
$(srcdir)/pl/hacks.yap \
|
2008-02-22 15:08:37 +00:00
|
|
|
$(srcdir)/pl/init.yap \
|
|
|
|
$(srcdir)/pl/listing.yap \
|
2010-06-17 00:41:11 +01:00
|
|
|
$(srcdir)/pl/lists.yap \
|
2008-02-22 16:00:57 +00:00
|
|
|
$(srcdir)/pl/messages.yap \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/pl/load_foreign.yap \
|
|
|
|
$(srcdir)/pl/modules.yap $(srcdir)/pl/preds.yap \
|
2002-03-17 06:11:29 +00:00
|
|
|
$(srcdir)/pl/profile.yap \
|
2010-11-29 18:44:39 +00:00
|
|
|
$(srcdir)/pl/protect.yap \
|
2011-08-03 08:23:00 +01:00
|
|
|
$(srcdir)/pl/qly.yap \
|
2010-11-29 18:44:39 +00:00
|
|
|
$(srcdir)/pl/save.yap \
|
|
|
|
$(srcdir)/pl/setof.yap \
|
2004-01-23 02:17:21 +00:00
|
|
|
$(srcdir)/pl/signals.yap \
|
2011-02-12 23:38:24 +00:00
|
|
|
$(srcdir)/pl/sort.yap \
|
2004-03-02 16:44:58 +00:00
|
|
|
$(srcdir)/pl/statistics.yap \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/pl/strict_iso.yap \
|
2004-01-23 02:17:21 +00:00
|
|
|
$(srcdir)/pl/tabling.yap $(srcdir)/pl/threads.yap \
|
2009-02-12 21:35:31 +00:00
|
|
|
$(srcdir)/pl/udi.yap \
|
2004-01-23 02:17:21 +00:00
|
|
|
$(srcdir)/pl/utils.yap \
|
2011-02-28 23:45:14 +00:00
|
|
|
$(srcdir)/pl/history.pl \
|
2011-06-14 08:59:58 +01:00
|
|
|
$(srcdir)/pl/swi.yap \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/pl/yapor.yap $(srcdir)/pl/yio.yap
|
|
|
|
|
2005-11-01 18:19:44 +00:00
|
|
|
YAPDOCS=$(srcdir)/docs/yap.tex $(srcdir)/docs/chr.tex \
|
2008-03-13 17:13:34 +00:00
|
|
|
$(srcdir)/docs/clpr.tex $(srcdir)/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 \
|
|
|
|
pl-glob.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 \
|
2011-02-10 21:14:38 +00:00
|
|
|
pl-write.o \
|
|
|
|
pl-yap.o @ENABLE_WINCONSOLE@ uxnt.o
|
|
|
|
|
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 \
|
2005-12-17 03:25:39 +00:00
|
|
|
arith0.o arith1.o arith2.o attvar.o \
|
|
|
|
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 \
|
2008-11-28 15:54:46 +00:00
|
|
|
exec.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 \
|
2006-06-06 15:11:36 +01:00
|
|
|
myddas_mysql.o myddas_odbc.o myddas_shared.o myddas_initialization.o \
|
2006-08-02 19:18:31 +01:00
|
|
|
myddas_util.o myddas_statistics.o myddas_top_level.o \
|
2008-03-13 17:13:34 +00:00
|
|
|
myddas_wkb2prolog.o modules.o other.o \
|
2011-08-24 04:11:54 +01:00
|
|
|
parser.o qlyr.o qlyw.o save.o scanner.o sort.o stdpreds.o \
|
2006-08-02 19:18:31 +01:00
|
|
|
sysbits.o threads.o tracer.o \
|
2009-02-20 11:42:48 +00:00
|
|
|
udi.o rtree.o rtree_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 \
|
2011-02-12 23:38:24 +00:00
|
|
|
blobs.o swi.o ypstdio.o $(IOLIB_OBJECTS) @MPI_OBJS@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
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 \
|
2009-02-11 15:10:57 +00: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
|
|
|
|
2011-03-27 13:14:42 +01:00
|
|
|
LIB_OBJECTS = $(ENGINE_OBJECTS) $(C_INTERFACE_OBJECTS) $(OR_OBJECTS) $(BEAM_OBJECTS) $(STATIC_OBJECTS) $(LIBTAI_OBJECTS)
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
OBJECTS = yap.o $(LIB_OBJECTS)
|
|
|
|
|
2011-02-03 11:23:12 +00:00
|
|
|
PLCONS_OBJECTS = \
|
|
|
|
pl-ntcon.o \
|
|
|
|
pl-ntconsole.o \
|
|
|
|
pl-ntmain.o
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2012-06-08 12:55:23 +01:00
|
|
|
all: parms.h startup.yss @ENABLE_WINCONSOLE@ yap-win@EXEC_SUFFIX@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in
|
|
|
|
|
2012-05-14 15:06:18 +01:00
|
|
|
$(srcdir)/H/Yap.h: config.h YapTermConfig.h \
|
|
|
|
$(srcdir)/H/YapTags.h \
|
|
|
|
$(srcdir)/H/YapCompoundTerm.h
|
2009-10-23 09:09:16 +01:00
|
|
|
|
|
|
|
config.h: parms.h
|
|
|
|
|
|
|
|
parms.h: Makefile
|
|
|
|
@echo "#define YAP_ROOTDIR \"$(prefix)\"" > $@%
|
|
|
|
@echo "#define YAP_BINDIR \"$(BINDIR)\"" >> $@%
|
2009-10-23 16:50:43 +01:00
|
|
|
@echo "#define YAP_LIBDIR \"$(YAPLIBDIR)\"" >> $@%
|
2009-10-23 09:09:16 +01:00
|
|
|
@echo "#define YAP_SHAREDIR \"$(SHAREDIR)\"" >> $@%
|
|
|
|
@echo "#define YAP_PL_SRCDIR \"$(SHAREDIR)/Yap/pl\"" >> $@%
|
|
|
|
@echo "#define YAP_STARTUP \"$(YAPSTARTUP)\"" >> $@%
|
|
|
|
@echo $(VERSION) | $(AWK) -F. '{ printf("#define YAP_VERSION %d\n", $$1 * 10000 + $$2 * 100 + $$3); }' >> $@%
|
|
|
|
@echo "#define MYDDAS_VERSION \"$(MYDDAS_VERSION)\"" >> $@%
|
|
|
|
@echo "#define YAP_ARCH \"$(ARCH)\"" >> $@%
|
|
|
|
@echo "#define YAP_LIBS \"$(LIBS)\"" >> $@%
|
|
|
|
@echo "#define YAP_YAPLIB \"$(YAPLIB)\"" >> $@%
|
|
|
|
@echo "#define YAP_CC \"$(CC)\"" >> $@%
|
|
|
|
@echo "#define YAP_CFLAGS \"$(CFLAGS)\"" >> $@%
|
|
|
|
@echo "#define YAP_LDFLAGS \"$(LDFLAGS)\"" >> $@%
|
2010-06-14 10:36:13 +01:00
|
|
|
@echo "#define YAP_SHLIB_SUFFIX \".\" \"$(SO)\"" >> $@%
|
2009-11-04 09:04:13 +00:00
|
|
|
@echo "#define YAP_TIMESTAMP \"`date +%s`\"" >> $@%
|
2010-04-06 00:57:40 +01:00
|
|
|
@echo "#define YAP_SVERSION \"YAP $(VERSION) ($(ARCH)): `date`\"" >> $@%
|
2009-10-23 09:09:16 +01:00
|
|
|
@if cmp -s $@% $@; then rm $@%; else mv $@% $@; fi
|
|
|
|
|
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.
|
2010-02-26 00:02:34 +00:00
|
|
|
c_interface.o: $(srcdir)/C/c_interface.c $(srcdir)/include/c_interface.h config.h
|
2001-04-09 20:54:03 +01:00
|
|
|
$(CC) $(C_INTERF_FLAGS) -c $(srcdir)/C/c_interface.c -o c_interface.o
|
|
|
|
|
2012-06-22 09:56:01 +01:00
|
|
|
yap-argss.o: $(srcdir)/C/yap-args.c $(srcdir)/include/c_interface.h config.h
|
|
|
|
$(CC) $(C_INTERF_FLAGS) -c $(srcdir)/C/yap-args.c -o yap-args.o
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
clause_list.o: $(srcdir)/C/clause_list.c $(srcdir)/include/clause_list.h config.h
|
2009-02-11 15:10:57 +00:00
|
|
|
$(CC) $(C_INTERF_FLAGS) -c $(srcdir)/C/clause_list.c -o clause_list.o
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
init.o: $(srcdir)/C/init.c config.h
|
2009-10-23 09:09:16 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/init.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
load_foreign.o: $(srcdir)/C/load_foreign.c config.h
|
2009-10-23 09:09:16 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/load_foreign.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2011-08-24 04:11:54 +01:00
|
|
|
qlyr.o: $(srcdir)/C/qlyr.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/qlyr.c -o $@
|
|
|
|
|
2011-08-09 12:10:56 +01:00
|
|
|
qlyw.o: $(srcdir)/C/qlyw.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/qlyw.c -o $@
|
2011-07-30 00:07:35 +01:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
save.o: $(srcdir)/C/save.c config.h
|
2009-10-23 09:09:16 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/save.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
sysbits.o: $(srcdir)/C/sysbits.c config.h
|
2009-10-23 09:09:16 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/sysbits.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
udi.o: $(srcdir)/C/udi.c config.h
|
2009-02-12 16:39:20 +00:00
|
|
|
$(CC) -c $(C_INTERF_FLAGS) $(srcdir)/C/udi.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
rtree.o: $(srcdir)/packages/udi/rtree.c config.h
|
2009-02-20 11:42:48 +00:00
|
|
|
$(CC) -c $(C_INTERF_FLAGS) $(srcdir)/packages/udi/rtree.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
rtree_udi.o: $(srcdir)/packages/udi/rtree_udi.c config.h
|
2009-02-20 11:42:48 +00:00
|
|
|
$(CC) -c $(C_INTERF_FLAGS) $(srcdir)/packages/udi/rtree_udi.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
yap.o: $(srcdir)/console/yap.c config.h
|
2009-10-23 09:09:16 +01:00
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include $(srcdir)/console/yap.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
mpi.o: $(srcdir)/library/mpi/mpi.c config.h
|
2009-05-02 16:35:29 +01:00
|
|
|
$(MPI_CC) -c $(CFLAGS) $(srcdir)/library/mpi/mpi.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
mpe.o: $(srcdir)/library/mpi/mpe.c config.h
|
2009-05-02 16:35:29 +01:00
|
|
|
$(MPI_CC) -c $(CFLAGS) $(srcdir)/library/mpi/mpe.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
myddas_mysql.o: $(srcdir)/MYDDAS/myddas_mysql.c config.h
|
2005-11-22 11:25:59 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/MYDDAS/myddas_mysql.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
myddas_odbc.o: $(srcdir)/MYDDAS/myddas_odbc.c config.h
|
2005-11-22 11:25:59 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/MYDDAS/myddas_odbc.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
myddas_shared.o: $(srcdir)/MYDDAS/myddas_shared.c config.h
|
2005-11-22 11:25:59 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/MYDDAS/myddas_shared.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
myddas_util.o: $(srcdir)/MYDDAS/myddas_util.c config.h
|
2005-11-22 11:25:59 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/MYDDAS/myddas_util.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
myddas_initialization.o: $(srcdir)/MYDDAS/myddas_initialization.c config.h
|
2006-06-06 15:11:36 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/MYDDAS/myddas_initialization.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
myddas_top_level.o: $(srcdir)/MYDDAS/myddas_top_level.c config.h
|
2006-02-05 02:19:15 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/MYDDAS/myddas_top_level.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
myddas_wkb2prolog.o: $(srcdir)/MYDDAS/myddas_wkb2prolog.c config.h
|
2008-03-13 17:13:34 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/MYDDAS/myddas_wkb2prolog.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
myddas_statistics.o: $(srcdir)/MYDDAS/myddas_statistics.c config.h
|
2006-01-17 22:54:02 +00:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/MYDDAS/myddas_statistics.c -o $@
|
|
|
|
|
2011-06-02 17:05:58 +01:00
|
|
|
or.memory.o: $(srcdir)/OPTYap/or.memory.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.memory.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
opt.init.o: $(srcdir)/OPTYap/opt.init.c config.h
|
2001-04-09 20:54:03 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/opt.init.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
opt.preds.o: $(srcdir)/OPTYap/opt.preds.c config.h
|
2001-04-09 20:54:03 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/opt.preds.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
or.cut.o: $(srcdir)/OPTYap/or.cut.c config.h
|
2001-04-09 20:54:03 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.cut.c -o $@
|
|
|
|
|
2011-03-31 14:50:47 +01:00
|
|
|
or.copy_engine.o: $(srcdir)/OPTYap/or.copy_engine.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.copy_engine.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2011-03-31 14:50:47 +01:00
|
|
|
or.cow_engine.o: $(srcdir)/OPTYap/or.cow_engine.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.cow_engine.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2011-03-31 14:50:47 +01:00
|
|
|
or.sba_engine.o: $(srcdir)/OPTYap/or.sba_engine.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.sba_engine.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2011-03-31 14:50:47 +01:00
|
|
|
or.thread_engine.o: $(srcdir)/OPTYap/or.thread_engine.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.thread_engine.c -o $@
|
2010-01-14 15:58:19 +00:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
or.scheduler.o: $(srcdir)/OPTYap/or.scheduler.c config.h
|
2001-04-09 20:54:03 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.scheduler.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
tab.tries.o: $(srcdir)/OPTYap/tab.tries.c config.h
|
2001-04-09 20:54:03 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/tab.tries.c -o $@
|
|
|
|
|
2010-04-19 02:34:08 +01:00
|
|
|
tab.completion.o: $(srcdir)/OPTYap/tab.completion.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/tab.completion.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
eam_showcode.o: $(srcdir)/BEAM/eam_showcode.c config.h
|
2005-09-08 22:59:58 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/BEAM/eam_showcode.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
eam_am.o: $(srcdir)/BEAM/eam_am.c config.h
|
2005-09-08 22:59:58 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/BEAM/eam_am.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
eamamasm.o: $(srcdir)/BEAM/eamamasm.c config.h
|
2005-09-08 22:59:58 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/BEAM/eamamasm.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
eamindex.o: $(srcdir)/BEAM/eamindex.c config.h
|
2005-09-08 22:59:58 +01:00
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/BEAM/eamindex.c -o $@
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
sys.o: $(srcdir)/library/system/sys.c config.h
|
2007-03-14 13:01:29 +00:00
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include $(srcdir)/library/system/sys.c -o $@
|
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
swi.o: $(srcdir)/library/dialect/swi/fli/swi.c $(srcdir)/library/dialect/swi/fli/swi.h $(srcdir)/include/SWI-Prolog.h $(srcdir)/os/SWI-Stream.h config.h
|
2010-11-30 22:33:33 +00:00
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir)/library/dialect/swi/fli $(srcdir)/library/dialect/swi/fli/swi.c -o $@
|
2010-11-29 23:17:06 +00:00
|
|
|
|
2010-11-30 22:33:33 +00:00
|
|
|
blobs.o: $(srcdir)/library/dialect/swi/fli/blobs.c $(srcdir)/library/dialect/swi/fli/swi.h $(srcdir)/include/SWI-Prolog.h config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir)/library/dialect/swi/fli $(srcdir)/library/dialect/swi/fli/blobs.c -o $@
|
2007-03-14 13:01:29 +00:00
|
|
|
|
2010-06-21 17:11:48 +01:00
|
|
|
yap_random.o: $(srcdir)/library/random/yap_random.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include $(srcdir)/library/random/yap_random.c -o $@
|
2007-03-14 13:01:29 +00:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
regexp.o: $(srcdir)/library/regex/regexp.c @NO_BUILTIN_REGEXP@ $(srcdir)/library/regex/regex2.h $(srcdir)/library/regex/engine.c config.h
|
2007-03-14 13:01:29 +00:00
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir)/library/regex $(srcdir)/library/regex/regexp.c -o regexp.o
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
regcomp.o: $(srcdir)/library/regex/regcomp.c $(srcdir)/library/regex/regex2.h config.h
|
2007-03-14 13:01:29 +00:00
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir)/library/regex $(srcdir)/library/regex/regcomp.c -o regcomp.o
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
regerror.o: $(srcdir)/library/regex/regerror.c config.h
|
2007-03-14 13:01:29 +00:00
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir)/library/regex $(srcdir)/library/regex/regerror.c -o regerror.o
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
regfree.o: $(srcdir)/library/regex/regfree.c $(srcdir)/library/regex/regex2.h config.h
|
2007-03-14 13:01:29 +00:00
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir)/library/regex $(srcdir)/library/regex/regfree.c -o regfree.o
|
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
regexec.o: $(srcdir)/library/regex/regexec.c config.h
|
2007-03-14 13:01:29 +00:00
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir)/library/regex $(srcdir)/library/regex/regexec.c -o regexec.o
|
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-nt.o: $(srcdir)/os/pl-nt.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-nt.c -o $@
|
2011-02-03 11:23:12 +00:00
|
|
|
|
|
|
|
pl-ntcon.o: $(srcdir)/console/LGPL/pl-ntcon.c config.h
|
2012-06-22 09:56:01 +01:00
|
|
|
$(CC) -c $(CFLAGS) -DPL_CONSOLE=1 -I$(srcdir)/include $(srcdir)/console/LGPL/pl-ntcon.c -o $@
|
2011-02-03 11:23:12 +00:00
|
|
|
|
|
|
|
pl-ntconsole.o: $(srcdir)/console/LGPL/pl-ntconsole.c config.h
|
2011-09-04 18:42:33 +01:00
|
|
|
$(CC) -municode -DUNICODE -D_UNICODE -c $(CFLAGS) -DPL_CONSOLE=1 -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/console/LGPL/pl-ntconsole.c -o $@
|
2011-02-03 11:23:12 +00:00
|
|
|
|
|
|
|
pl-ntmain.o: $(srcdir)/console/LGPL/pl-ntmain.c config.h
|
2011-09-04 18:42:33 +01:00
|
|
|
$(CC) -municode -DUNICODE -D_UNICODE -c $(CFLAGS) -DPL_CONSOLE=1 -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/console/LGPL/pl-ntmain.c -o $@
|
2011-02-03 11:23:12 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-buffer.o: $(srcdir)/os/pl-buffer.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-buffer.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-codelist.o: $(srcdir)/os/pl-codelist.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-codelist.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-ctype.o: $(srcdir)/os/pl-ctype.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-ctype.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-dtoa.o: $(srcdir)/os/pl-dtoa.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-dtoa.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-error.o: $(srcdir)/os/pl-error.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-error.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-file.o: $(srcdir)/os/pl-file.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-file.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-files.o: $(srcdir)/os/pl-files.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-files.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-fmt.o: $(srcdir)/os/pl-fmt.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-fmt.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-glob.o: $(srcdir)/os/pl-glob.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-glob.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-option.o: $(srcdir)/os/pl-option.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-option.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-os.o: $(srcdir)/os/pl-os.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-os.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-privitf.o: $(srcdir)/os/pl-privitf.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-privitf.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-prologflag.o: $(srcdir)/os/pl-prologflag.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-prologflag.c -o $@
|
2011-03-26 15:17:17 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-rl.o: $(srcdir)/os/pl-rl.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-rl.c -o $@
|
2011-02-15 23:45:47 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-read.o: $(srcdir)/os/pl-read.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-read.c -o $@
|
2011-02-12 18:42:44 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-stream.o: $(srcdir)/os/pl-stream.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-stream.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-string.o: $(srcdir)/os/pl-string.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-string.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-table.o: $(srcdir)/os/pl-table.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-table.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-text.o: $(srcdir)/os/pl-text.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-text.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-utf8.o: $(srcdir)/os/pl-utf8.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-utf8.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-write.o: $(srcdir)/os/pl-write.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-write.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-yap.o: $(srcdir)/C/pl-yap.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/C/pl-yap.c -o $@
|
2011-03-09 13:05:03 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
pl-tai.o: $(srcdir)/os/pl-tai.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/pl-tai.c -o $@
|
2011-02-10 21:14:38 +00:00
|
|
|
|
2011-09-04 18:42:33 +01:00
|
|
|
uxnt.o: $(srcdir)/os/windows/uxnt.c config.h
|
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $(srcdir)/os/windows/uxnt.c -o $@
|
2011-03-08 00:03:50 +00:00
|
|
|
|
2011-03-27 13:14:42 +01:00
|
|
|
# libtai rule
|
2011-09-04 18:42:33 +01:00
|
|
|
%.o : $(srcdir)/os/libtai/%.c config.h
|
2011-03-27 13:14:42 +01:00
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
|
|
|
|
|
2009-05-02 16:35:29 +01:00
|
|
|
# default rule
|
2010-02-26 00:02:34 +00:00
|
|
|
%.o : $(srcdir)/C/%.c config.h
|
2009-05-02 16:35:29 +01:00
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
|
2005-09-08 22:59:58 +01:00
|
|
|
|
2001-07-03 12:19:15 +01:00
|
|
|
## CPP'ed files (for macro debugging)
|
|
|
|
|
|
|
|
%.i : $(srcdir)/C/%.c
|
|
|
|
$(CC) -E $< $(CFLAGS) > $@
|
|
|
|
|
2008-03-13 17:13:34 +00:00
|
|
|
absmi.i: $(srcdir)/C/absmi.c
|
2001-07-03 12:19:15 +01:00
|
|
|
$(CC) -E $(CFLAGS) $(ABSMI_FLAGS) $(srcdir)/C/absmi.c > $@
|
|
|
|
|
|
|
|
c_interface.i: $(srcdir)/C/c_interface.c $(srcdir)/include/c_interface.h
|
|
|
|
$(CC) -E $(C_INTERF_FLAGS) $(srcdir)/C/c_interface.c > $@
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
mycb: $(srcdir)/mycb.c
|
|
|
|
$(CC) $(CFLAGS) $(srcdir)/mycb.c -o mycb
|
|
|
|
|
2009-05-02 20:06:24 +01:00
|
|
|
all: startup.yss
|
2011-08-08 14:21:36 +01:00
|
|
|
@ENABLE_GECODE@ @INSTALL_DLLS@ (cd library/gecode; $(MAKE))
|
2010-08-05 22:18:46 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/lammpi; $(MAKE))
|
|
|
|
@INSTALL_MATLAB@ (cd library/matlab; $(MAKE))
|
|
|
|
@INSTALL_DLLS@ (cd library/matrix; $(MAKE))
|
2008-06-26 14:09:15 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/random; $(MAKE))
|
|
|
|
@INSTALL_DLLS@ (cd library/regex; $(MAKE))
|
|
|
|
@INSTALL_DLLS@ (cd library/rltree; $(MAKE))
|
2011-02-03 11:23:12 +00:00
|
|
|
@ENABLE_WINCONSOLE@ (cd LGPL/swi_console; $(MAKE))
|
2008-06-26 14:09:15 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/system; $(MAKE))
|
|
|
|
@INSTALL_DLLS@ (cd library/tries; $(MAKE))
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_CLIB@ @INSTALL_DLLS@ (cd packages/clib; $(MAKE))
|
|
|
|
@ENABLE_HTTP@ @INSTALL_DLLS@ (cd packages/http; $(MAKE))
|
|
|
|
@ENABLE_PLDOC@ @INSTALL_DLLS@ (cd packages/pldoc; $(MAKE))
|
|
|
|
@ENABLE_PLUNIT@ @INSTALL_DLLS@ (cd packages/plunit; $(MAKE))
|
|
|
|
@ENABLE_R@ @INSTALL_DLLS@ (cd packages/R; $(MAKE))
|
|
|
|
@ENABLE_RDF@ @INSTALL_DLLS@ (cd packages/RDF; $(MAKE))
|
|
|
|
@ENABLE_SEMWEB@ @INSTALL_DLLS@ (cd packages/semweb; $(MAKE))
|
|
|
|
@ENABLE_SGML@ @INSTALL_DLLS@ (cd packages/sgml; $(MAKE))
|
2012-01-31 15:11:39 +00:00
|
|
|
@ENABLE_REAL@ (cd packages/real; $(MAKE))
|
2012-05-23 14:45:02 +01:00
|
|
|
@ENABLE_CLPBN_BP@ (cd packages/CLPBN/horus; $(MAKE))
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_MINISAT@ (cd packages/swi-minisat2/C; $(MAKE))
|
2012-09-11 14:21:09 +01:00
|
|
|
@ENABLE_LIBARCHIVE@ @INSTALL_DLLS@ (cd packages/archive; $(MAKE))
|
2012-10-23 00:45:13 +01:00
|
|
|
@ENABLE_ODBC@ @INSTALL_DLLS@ (cd packages/odbc; $(MAKE))
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_ZLIB@ @INSTALL_DLLS@ (cd packages/zlib; $(MAKE))
|
2010-03-18 15:11:21 +00:00
|
|
|
@ENABLE_CPLINT@ (cd packages/cplint/approx/simplecuddLPADs; $(MAKE))
|
2010-03-18 14:16:28 +00:00
|
|
|
@ENABLE_CPLINT@ (cd packages/cplint; $(MAKE))
|
2011-10-22 15:33:04 +01:00
|
|
|
@ENABLE_CPLINT@ (cd packages/cplint/slipcase; $(MAKE))
|
2011-11-18 17:02:09 +00:00
|
|
|
@ENABLE_PRISM@ (cd packages/prism/src/c; $(MAKE))
|
2012-03-22 21:37:20 +00:00
|
|
|
@ENABLE_BDDLIB@ (cd packages/bdd; $(MAKE))
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_CUDD@ (cd packages/ProbLog/simplecudd; $(MAKE))
|
|
|
|
@ENABLE_CUDD@ (cd packages/ProbLog/simplecudd_lfi; $(MAKE))
|
2010-10-24 20:30:42 +01:00
|
|
|
@ENABLE_JPL@ @INSTALL_DLLS@ (cd packages/jpl; $(MAKE))
|
2012-10-22 21:37:17 +01:00
|
|
|
@ENABLE_PYTHON@ @INSTALL_DLLS@ (cd packages/pyswip; $(MAKE))
|
2004-09-07 17:29:16 +01:00
|
|
|
|
2010-02-26 00:02:34 +00:00
|
|
|
startup.yss: yap@EXEC_SUFFIX@ $(PL_SOURCES)
|
2009-05-02 20:06:24 +01:00
|
|
|
-rm -f startup.yss
|
2011-08-31 21:59:30 +01:00
|
|
|
echo "bootstrap('$(srcdir)/pl/init.yap'). module(user). qsave_program('startup.yss')." | @PRE_INSTALL_ENV@ ./yap -b $(srcdir)/pl/boot.yap
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2002-11-12 04:36:05 +00:00
|
|
|
yap@EXEC_SUFFIX@: $(HEADERS) yap.o @YAPLIB@
|
2010-06-21 11:54:21 +01:00
|
|
|
$(MPI_CC) $(EXECUTABLE_CFLAGS) $(LDFLAGS) -o yap yap.o @YAPLIB@ $(LIBS) @MPI_LIBS@
|
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@
|
2011-02-03 11:23:12 +00:00
|
|
|
(cd LGPL/swi_console; $(MAKE))
|
2012-06-08 12:55:23 +01:00
|
|
|
$(MPI_CC) -municode -DUNICODE -D_UNICODE $(EXECUTABLE_CFLAGS) $(LDFLAGS) -Wl,-subsystem,windows -o yap-win $(PLCONS_OBJECTS) plterm.dll @YAPLIB@ $(LIBS) @MPI_LIBS@
|
2011-02-03 11:23:12 +00:00
|
|
|
|
2011-03-09 13:05:03 +00:00
|
|
|
libYap.a: $(LIB_OBJECTS)
|
2001-04-09 20:54:03 +01:00
|
|
|
-rm -f libYap.a
|
2011-03-27 13:14:42 +01:00
|
|
|
$(AR) rc libYap.a $(LIB_OBJECTS)
|
2001-04-09 20:54:03 +01:00
|
|
|
$(RANLIB) libYap.a
|
|
|
|
|
2006-05-19 18:49:25 +01:00
|
|
|
@DYNYAPLIB@: $(LIB_OBJECTS)
|
2011-03-27 13:14:42 +01:00
|
|
|
@YAPLIB_LD@ -o @YAPLIB@ $(LIB_OBJECTS) $(LIBS) $(LDFLAGS) $(SONAMEFLAG)
|
2002-05-14 19:21:33 +01:00
|
|
|
|
2011-10-22 00:38:07 +01:00
|
|
|
install: install_bin install_data
|
2001-11-26 16:05:19 +00:00
|
|
|
|
|
|
|
install_bin: @INSTALL_COMMAND@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2009-05-02 20:06:24 +01:00
|
|
|
install_unix: startup.yss libYap.a
|
2001-11-26 16:05:19 +00:00
|
|
|
mkdir -p $(DESTDIR)$(BINDIR)
|
2002-11-12 04:36:05 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 yap@EXEC_SUFFIX@ $(DESTDIR)$(BINDIR)/yap
|
2001-11-26 16:05:19 +00:00
|
|
|
mkdir -p $(DESTDIR)$(YAPLIBDIR)
|
2009-05-02 20:06:24 +01:00
|
|
|
$(INSTALL_DATA) startup.yss $(DESTDIR)$(YAPLIBDIR)/startup.yss
|
2006-03-22 15:00:29 +00:00
|
|
|
@INSTALL_DLLS@ $(INSTALL_DATA) -m 755 @YAPLIB@ $(DESTDIR)$(LIBDIR)
|
2004-01-23 02:17:21 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/pl
|
2010-02-23 01:06:35 +00:00
|
|
|
mkdir -p $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL) $(srcdir)/Artistic $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL) $(srcdir)/README $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL) $(srcdir)/COPYING $(DESTDIR)$(DOCSDIR)
|
2004-01-23 02:17:21 +00:00
|
|
|
for f in $(PL_SOURCES); do $(INSTALL) $$f $(DESTDIR)$(SHAREDIR)/Yap/pl; done
|
2010-08-05 22:18:46 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/lammpi; $(MAKE) install)
|
|
|
|
@INSTALL_DLLS@ (cd library/matrix; $(MAKE) install)
|
2008-06-26 14:09:15 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/random; $(MAKE) install)
|
|
|
|
@INSTALL_DLLS@ (cd library/regex; $(MAKE) install)
|
|
|
|
@INSTALL_DLLS@ (cd library/rltree; $(MAKE) install)
|
|
|
|
@INSTALL_DLLS@ (cd library/system; $(MAKE) install)
|
|
|
|
@INSTALL_DLLS@ (cd library/tries; $(MAKE) install)
|
2011-08-08 14:21:36 +01:00
|
|
|
@ENABLE_GECODE@ @INSTALL_DLLS@ (cd library/gecode; $(MAKE) install)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_CLIB@ @INSTALL_DLLS@ (cd packages/clib; $(MAKE) install)
|
|
|
|
@ENABLE_HTTP@ @INSTALL_DLLS@ (cd packages/http; $(MAKE) install)
|
2012-07-07 15:43:07 +01:00
|
|
|
@ENABLE_HTTP@ @INSTALL_DLLS@ (cd packages/http; $(MAKE) install-examples)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_PLDOC@ @INSTALL_DLLS@ (cd packages/pldoc; $(MAKE) install)
|
2012-07-07 15:43:07 +01:00
|
|
|
@ENABLE_PLDOC@ @INSTALL_DLLS@ (cd packages/pldoc; $(MAKE) install-examples)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_PLUNIT@ @INSTALL_DLLS@ (cd packages/plunit; $(MAKE) install)
|
2012-07-07 15:43:07 +01:00
|
|
|
@ENABLE_PLUNIT@ @INSTALL_DLLS@ (cd packages/plunit; $(MAKE) install-examples)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_R@ @INSTALL_DLLS@ (cd packages/R; $(MAKE) install)
|
2012-07-07 15:43:07 +01:00
|
|
|
@ENABLE_R@ @INSTALL_DLLS@ (cd packages/R; $(MAKE) install-examples)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_RDF@ @INSTALL_DLLS@ (cd packages/RDF; $(MAKE) install)
|
|
|
|
@ENABLE_SEMWEB@ @INSTALL_DLLS@ (cd packages/semweb; $(MAKE) install)
|
|
|
|
@ENABLE_SGML@ @INSTALL_DLLS@ (cd packages/sgml; $(MAKE) install)
|
|
|
|
@ENABLE_ZLIB@ @INSTALL_DLLS@ (cd packages/zlib; $(MAKE) @ZLIB_INSTALL@)
|
2012-09-11 14:21:09 +01:00
|
|
|
@ENABLE_LIBARCHIVE@ @INSTALL_DLLS@ (cd packages/archive; $(MAKE) install)
|
2012-10-23 09:06:38 +01:00
|
|
|
@ENABLE_ODBC@ @INSTALL_DLLS@ (cd packages/odbc; $(MAKE) install)
|
2012-05-23 14:45:02 +01:00
|
|
|
@ENABLE_CLPBN_BP@ @INSTALL_DLLS@ (cd packages/CLPBN/horus; $(MAKE) install)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_MINISAT@ (cd packages/swi-minisat2/C; $(MAKE) install)
|
2008-06-26 14:09:15 +01:00
|
|
|
@INSTALL_MATLAB@ (cd library/matlab; $(MAKE) install)
|
2012-01-31 15:11:39 +00:00
|
|
|
@ENABLE_REAL@ (cd packages/real; $(MAKE) install)
|
2009-03-23 12:23:00 +00:00
|
|
|
@ENABLE_JPL@ @INSTALL_DLLS@ (cd packages/jpl; $(MAKE) install)
|
2012-10-22 21:37:17 +01:00
|
|
|
@ENABLE_PYTHON@ @INSTALL_DLLS@ (cd packages/pyswip; $(MAKE) install)
|
2010-06-01 00:38:42 +01:00
|
|
|
#@ENABLE_JPL@ @INSTALL_DLLS@ (cd packages/pyswip; $(MAKE) install)
|
2001-11-26 16:05:19 +00:00
|
|
|
mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
2011-11-02 22:55:56 +00:00
|
|
|
mkdir -p $(DESTDIR)$(INCLUDEDIR)/src
|
|
|
|
$(INSTALL) $(HEADERS) $(DESTDIR)$(INCLUDEDIR)/src
|
2001-04-16 17:41:04 +01:00
|
|
|
for h in $(INTERFACE_HEADERS); do $(INSTALL) $$h $(DESTDIR)$(INCLUDEDIR); done
|
2011-11-02 22:55:56 +00:00
|
|
|
$(INSTALL) config.h $(DESTDIR)$(INCLUDEDIR)/src/config.h
|
|
|
|
$(INSTALL) parms.h $(DESTDIR)$(INCLUDEDIR)/src/parms.h
|
|
|
|
$(INSTALL) YapTermConfig.h $(DESTDIR)$(INCLUDEDIR)
|
2010-03-18 14:16:28 +00:00
|
|
|
@ENABLE_CPLINT@ (cd packages/cplint; $(MAKE) install)
|
2010-09-09 16:27:28 +01:00
|
|
|
@ENABLE_CPLINT@ (cd packages/cplint/approx/simplecuddLPADs; $(MAKE) install)
|
2011-11-18 17:02:09 +00:00
|
|
|
@ENABLE_PRISM@ (cd packages/prism/src/c; $(MAKE) install)
|
|
|
|
@ENABLE_PRISM@ (cd packages/prism/src/prolog; $(MAKE) install)
|
2012-03-22 21:37:20 +00:00
|
|
|
@ENABLE_BDDLIB@ (cd packages/bdd; $(MAKE) install)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_CUDD@ (cd packages/ProbLog/simplecudd; $(MAKE) install)
|
|
|
|
@ENABLE_CUDD@ (cd packages/ProbLog/simplecudd_lfi; $(MAKE) install)
|
2007-11-07 13:02:37 +00:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2012-06-08 12:55:23 +01:00
|
|
|
install_win32: startup.yss @ENABLE_WINCONSOLE@ yap-win@EXEC_SUFFIX@
|
2001-11-26 16:05:19 +00:00
|
|
|
mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(LIBDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(YAPLIBDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL_PROGRAM) -m 755 yap.exe $(DESTDIR)$(BINDIR)/yap.exe
|
|
|
|
$(INSTALL_PROGRAM) -m 755 yap.dll $(DESTDIR)$(BINDIR)/yap.dll
|
2012-06-08 12:55:23 +01:00
|
|
|
@ENABLE_WINCONSOLE@ $(INSTALL_PROGRAM) -m 755 yap-win.exe $(DESTDIR)$(BINDIR)/yap-win.exe
|
2011-10-22 00:19:48 +01:00
|
|
|
@ENABLE_WINCONSOLE@ $(INSTALL_PROGRAM) -m 755 plterm.dll $(DESTDIR)$(BINDIR)/plterm.dll
|
2010-05-08 12:58:00 +01:00
|
|
|
$(INSTALL_PROGRAM) -m 755 @YAPLIB@ $(DESTDIR)$(YAPLIBDIR)/@YAPLIB@
|
2009-05-02 20:06:24 +01:00
|
|
|
$(INSTALL_PROGRAM) -m 755 startup.yss $(DESTDIR)$(YAPLIBDIR)/startup.yss
|
2004-09-07 17:29:16 +01:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/pl
|
2008-03-27 00:41:33 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/swi
|
2010-02-23 01:06:35 +00:00
|
|
|
mkdir -p $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL) $(srcdir)/Artistic $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL) $(srcdir)/README $(DESTDIR)$(DOCSDIR)/README.TXT
|
|
|
|
$(INSTALL) $(srcdir)/COPYING $(DESTDIR)$(DOCSDIR)/COPYING.TXT
|
2004-09-07 17:29:16 +01:00
|
|
|
for f in $(PL_SOURCES); do $(INSTALL) $$f $(DESTDIR)$(SHAREDIR)/Yap/pl; done
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL) $(HEADERS) $(DESTDIR)$(INCLUDEDIR)
|
2005-10-18 18:04:43 +01:00
|
|
|
for h in $(INTERFACE_HEADERS); do $(INSTALL) $$h $(DESTDIR)$(INCLUDEDIR); done
|
2009-10-23 09:09:16 +01:00
|
|
|
$(INSTALL) config.h $(DESTDIR)$(INCLUDEDIR)/config.h
|
|
|
|
$(INSTALL) parms.h $(DESTDIR)$(INCLUDEDIR)/parms.h
|
2010-07-29 00:40:25 +01:00
|
|
|
(cd library/random; $(MAKE) install)
|
|
|
|
(cd library/matrix; $(MAKE) install)
|
|
|
|
(cd library/regex; $(MAKE) install)
|
|
|
|
(cd library/rltree; $(MAKE) install)
|
|
|
|
(cd library/system; $(MAKE) install)
|
|
|
|
@ENABLE_WINCONSOLE@ (cd LGPL/swi_console; $(MAKE) install)
|
|
|
|
@INSTALL_MATLAB@ (cd library/matlab; $(MAKE) install)
|
2012-01-31 15:11:39 +00:00
|
|
|
@ENABLE_REAL@ (cd packages/real; $(MAKE) install)
|
2010-07-29 00:40:25 +01:00
|
|
|
(cd library/tries; $(MAKE) install)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_CLIB@ (cd packages/clib; $(MAKE) install)
|
|
|
|
@ENABLE_PLDOC@ (cd packages/pldoc; $(MAKE) install)
|
2012-07-07 15:43:07 +01:00
|
|
|
@ENABLE_PLDOC@ (cd packages/pldoc; $(MAKE) install-examples)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_PLUNIT@ (cd packages/plunit; $(MAKE) install)
|
2012-07-07 15:43:07 +01:00
|
|
|
@ENABLE_PLUNIT@ (cd packages/plunit; $(MAKE) install-examples)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_HTTP@ (cd packages/http; $(MAKE) install)
|
2012-07-07 15:43:07 +01:00
|
|
|
@ENABLE_HTTP@ (cd packages/http; $(MAKE) install-examples)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_R@ (cd packages/R; $(MAKE) install)
|
2012-07-07 15:43:07 +01:00
|
|
|
@ENABLE_R@ (cd packages/R; $(MAKE) install-examples)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_RDF@ (cd packages/RDF; $(MAKE) install)
|
|
|
|
@ENABLE_SEMWEB@ (cd packages/semweb; $(MAKE) install)
|
|
|
|
@ENABLE_SGML@ (cd packages/sgml; $(MAKE) install)
|
|
|
|
@ENABLE_ZLIB@ (cd packages/zlib; $(MAKE) @ZLIB_INSTALL@)
|
2011-02-25 12:10:25 +00:00
|
|
|
(cd packages/CLPBN ; $(MAKE) install)
|
2012-05-23 14:45:02 +01:00
|
|
|
@ENABLE_CLPBN_BP@ (cd packages/CLPBN/horus; $(MAKE) install)
|
2010-10-24 20:30:42 +01:00
|
|
|
@ENABLE_JPL@ (cd packages/jpl ; $(MAKE) install)
|
2012-10-23 09:06:38 +01:00
|
|
|
@ENABLE_PYTHON@ (cd packages/pyswip ; $(MAKE) install)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_MINISAT@ (cd packages/swi-minisat2/C; $(MAKE) install)
|
2010-03-18 14:16:28 +00:00
|
|
|
@ENABLE_CPLINT@ (cd packages/cplint; $(MAKE) install)
|
2011-11-18 17:02:09 +00:00
|
|
|
@ENABLE_PRISM@ (cd packages/prism/src/c; $(MAKE) install)
|
|
|
|
@ENABLE_PRISM@ (cd packages/prism/src/prolog; $(MAKE) install)
|
2012-03-22 21:37:20 +00:00
|
|
|
@ENABLE_BDDLIB@ (cd packages/bdd; $(MAKE) install)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_CUDD@ (cd packages/ProbLog/simplecudd; $(MAKE) install)
|
|
|
|
@ENABLE_CUDD@ (cd packages/ProbLog/simplecudd_lfi; $(MAKE) install)
|
2001-05-21 21:00:05 +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
|
|
|
|
2010-12-31 04:14:45 +00:00
|
|
|
install_data: install_copied_files install_bin
|
|
|
|
@ENABLE_CHR@ (cd packages/chr ; $(MAKE) install)
|
2012-07-07 00:50:50 +01:00
|
|
|
@ENABLE_CHR@ (cd packages/chr ; $(MAKE) install-examples)
|
2010-12-31 04:14:45 +00:00
|
|
|
@ENABLE_CHR@ (cd packages/clpqr ; $(MAKE) install)
|
|
|
|
|
|
|
|
install_copied_files:
|
2008-06-26 14:09:15 +01:00
|
|
|
(cd library ; $(MAKE) install)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_MINISAT@ (cd packages/swi-minisat2; $(MAKE) install)
|
2008-06-26 14:09:15 +01:00
|
|
|
(cd LGPL ; $(MAKE) install)
|
|
|
|
(cd GPL ; $(MAKE) install)
|
2001-11-26 18:57:07 +00:00
|
|
|
$(INSTALL_DATA) $(srcdir)/LGPL/pillow/icon_address.pl $(DESTDIR)$(SHAREDIR)/Yap/
|
|
|
|
$(INSTALL_DATA) $(srcdir)/LGPL/pillow/pillow.pl $(DESTDIR)$(SHAREDIR)/Yap/
|
2008-06-26 14:09:15 +01:00
|
|
|
@INSTALLCLP@(cd LGPL/clp ; $(MAKE) install)
|
2009-03-23 12:23:00 +00:00
|
|
|
(cd packages/CLPBN ; $(MAKE) install)
|
2010-11-03 00:33:26 +00:00
|
|
|
(cd packages/meld; $(MAKE) install)
|
2012-02-14 12:41:12 +00:00
|
|
|
(cd packages/xml; $(MAKE) install)
|
2009-03-09 00:43:45 +00:00
|
|
|
(cd packages/ProbLog ; $(MAKE) install)
|
2001-11-26 16:05:19 +00:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
##########
|
|
|
|
TAGS: $(C_SOURCES) $(PL_SOURCES) $(HEADERS)
|
|
|
|
etags $(C_SOURCES) $(PL_SOURCES) $(HEADERS)
|
|
|
|
|
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\
|
2011-11-02 22:55:56 +00:00
|
|
|
$(CC) -MM $(CFLAGS) -D__YAP_NOT_INSTALLED__=1 -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/os $(C_SOURCES) >> Makefile;\
|
2001-04-09 20:54:03 +01:00
|
|
|
else\
|
|
|
|
makedepend -f - -- $(CFLAGS) -I$(srcdir)/include -- $(C_SOURCES) |\
|
2009-04-23 03:22:04 +01:00
|
|
|
sed 's|.*/\([^:]*\):|\1:|' >> Makefile ;\
|
2001-04-09 20:54:03 +01:00
|
|
|
fi
|
|
|
|
|
2001-04-16 17:41:04 +01:00
|
|
|
clean: clean_docs
|
2005-05-27 23:27:59 +01:00
|
|
|
rm -f *.o *~ *.BAK *.a
|
2011-08-08 14:21:36 +01:00
|
|
|
@ENABLE_GECODE@ @INSTALL_DLLS@ (cd library/gecode; $(MAKE) clean)
|
2010-08-05 22:18:46 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/lammpi; $(MAKE) clean)
|
|
|
|
@INSTALL_MATLAB@ (cd library/matlab; $(MAKE) clean)
|
2008-06-26 14:09:15 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/matrix; $(MAKE) clean)
|
|
|
|
@INSTALL_DLLS@ (cd library/random; $(MAKE) clean)
|
|
|
|
@INSTALL_DLLS@ (cd library/regex; $(MAKE) clean)
|
|
|
|
@INSTALL_DLLS@ (cd library/rltree; $(MAKE) clean)
|
2011-02-03 11:23:12 +00:00
|
|
|
@ENABLE_WINCONSOLE@ (cd LGPL/swi_console; $(MAKE) clean)
|
2010-08-05 22:18:46 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/system; $(MAKE) clean)
|
2008-06-26 14:09:15 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/tries; $(MAKE) clean)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_CLIB@ @INSTALL_DLLS@ (cd packages/clib; $(MAKE) clean)
|
|
|
|
@ENABLE_HTTP@ @INSTALL_DLLS@ (cd packages/http; $(MAKE) clean)
|
|
|
|
@ENABLE_PLDOC@ @INSTALL_DLLS@ (cd packages/pldoc; $(MAKE) clean)
|
|
|
|
@ENABLE_PLUNIT@ @INSTALL_DLLS@ (cd packages/plunit; $(MAKE) clean)
|
|
|
|
@ENABLE_R@ @INSTALL_DLLS@ (cd packages/R; $(MAKE) clean)
|
|
|
|
@ENABLE_RDF@ @INSTALL_DLLS@ (cd packages/RDF; $(MAKE) clean)
|
|
|
|
@ENABLE_SEMWEB@ @INSTALL_DLLS@ (cd packages/semweb; $(MAKE) clean)
|
|
|
|
@ENABLE_SGML@ @INSTALL_DLLS@ (cd packages/sgml; $(MAKE) clean)
|
2012-01-31 15:11:39 +00:00
|
|
|
@ENABLE_REAL@ (cd packages/real; $(MAKE) clean)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_MINISAT@ (cd packages/swi-minisat2; $(MAKE) clean)
|
2012-05-23 14:45:02 +01:00
|
|
|
@ENABLE_CLPBN_BP@ (cd packages/CLPBN/horus; $(MAKE) clean)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_ZLIB@ @INSTALL_DLLS@ (cd packages/zlib; $(MAKE) clean)
|
2011-11-18 17:02:09 +00:00
|
|
|
@ENABLE_PRISM@ (cd packages/prism/src/c; $(MAKE) clean)
|
|
|
|
@ENABLE_PRISM@ (cd packages/prism/src/prolog; $(MAKE) clean)
|
2010-08-05 22:18:46 +01:00
|
|
|
@ENABLE_CPLINT@ (cd packages/cplint/approx/simplecuddLPADs; $(MAKE) clean)
|
2009-02-16 12:53:29 +00:00
|
|
|
@ENABLE_CPLINT@ (cd packages/cplint; $(MAKE) clean)
|
2012-03-22 21:37:20 +00:00
|
|
|
@ENABLE_BDDLIB@ (cd packages/bdd; $(MAKE) clean)
|
2012-10-23 09:06:38 +01:00
|
|
|
@ENABLE_LIBARCHIVE@ (cd packages/archive; $(MAKE) clean)
|
|
|
|
@ENABLE_ODBC@ (cd packages/odbc; $(MAKE) clean)
|
2011-07-13 15:31:22 +01:00
|
|
|
@ENABLE_CUDD@ (cd packages/ProbLog/simplecudd; $(MAKE) clean)
|
|
|
|
@ENABLE_CUDD@ (cd packages/ProbLog/simplecudd_lfi; $(MAKE) clean)
|
2010-08-05 22:18:46 +01:00
|
|
|
@ENABLE_JPL@ @INSTALL_DLLS@ (cd packages/jpl; $(MAKE) clean)
|
2012-10-23 09:06:38 +01:00
|
|
|
@ENABLE_PYTHON@ @INSTALL_DLLS@ (cd packages/pyswip; $(MAKE) clean)
|
2007-11-07 13:02:37 +00:00
|
|
|
|
2004-09-07 17:29:16 +01:00
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-04-16 17:41:04 +01:00
|
|
|
realclean: clean realclean_docs
|
2009-05-02 20:06:24 +01:00
|
|
|
rm -f yap@EXEC_SUFFIX@ startup.yss config.log config.cache config.h
|
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
|
2002-11-13 15:29:44 +00:00
|
|
|
dlltool --def $(srcdir)/misc/yap.def \
|
|
|
|
--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; \
|
2001-07-17 19:51:08 +01:00
|
|
|
cd $(srcdir)/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
|
|
|
|
2008-08-22 03:53:45 +01:00
|
|
|
install_docs:
|
|
|
|
$(MAKE) pdf
|
|
|
|
$(MAKE) html
|
|
|
|
$(INSTALL_DATA) yap.html* $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) yap.pdf $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(DOCSDIR)
|
2010-10-24 20:26:49 +01:00
|
|
|
$(INSTALL_DATA) $(srcdir)/Artistic $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/COPYING $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/changes4.3.html $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/changes-5.0.html $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/changes-5.1.html $(DESTDIR)$(DOCSDIR)
|
|
|
|
$(INSTALL_DATA) $(srcdir)/changes-6.0.html $(DESTDIR)$(DOCSDIR)
|
|
|
|
|
2008-08-22 03:53:45 +01:00
|
|
|
|
2001-04-16 17:41:04 +01:00
|
|
|
info: yap.info
|
|
|
|
|
2005-11-01 18:19:44 +00:00
|
|
|
yap.info: $(YAPDOCS)
|
2009-10-23 09:09:16 +01:00
|
|
|
$(MAKEINFO) $(srcdir)/docs/yap.tex
|
2001-04-16 17:41:04 +01:00
|
|
|
|
|
|
|
html: yap.html
|
|
|
|
|
|
|
|
yap.html: $(srcdir)/docs/yap.tex
|
|
|
|
$(TEXI2HTML) $(srcdir)/docs/yap.tex
|
|
|
|
|
|
|
|
dvi: yap.dvi
|
|
|
|
|
2005-11-01 18:19:44 +00:00
|
|
|
yap.dvi: $(YAPDOCS)
|
2001-04-16 17:41:04 +01:00
|
|
|
$(TEXI2DVI) $(srcdir)/docs/yap.tex
|
|
|
|
|
|
|
|
ps: yap.ps
|
|
|
|
|
2005-11-01 18:19:44 +00:00
|
|
|
yap.ps: $(YAPDOCS)
|
2001-04-16 17:41:04 +01:00
|
|
|
dvips -o yap.ps $(srcdir)/docs/yap
|
|
|
|
|
|
|
|
pdf: yap.pdf
|
|
|
|
|
2005-11-01 18:19:44 +00:00
|
|
|
yap.pdf: $(YAPDOCS)
|
2001-04-16 17:41:04 +01:00
|
|
|
$(TEXI2PDF) $(srcdir)/docs/yap.tex
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
realclean_docs: clean_docs
|
|
|
|
rm -f yap.ps yap.html yap_toc.html yap.pdf yap.info*
|
|
|
|
|
2007-11-07 13:02:37 +00:00
|
|
|
installcheck:
|
2010-03-18 14:16:28 +00:00
|
|
|
@ENABLE_CPLINT@ (cd packages/cplint; $(MAKE) installcheck)
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
|
|
|