2001-06-06 20:10:51 +01:00
|
|
|
#
|
|
|
|
# default base directory for YAP installation
|
|
|
|
#
|
|
|
|
ROOTDIR = @prefix@
|
|
|
|
#
|
|
|
|
# where the binary should be
|
|
|
|
#
|
|
|
|
BINDIR = $(ROOTDIR)/bin
|
|
|
|
#
|
2001-11-26 16:05:19 +00:00
|
|
|
# where YAP should look for binary libraries
|
2001-06-06 20:10:51 +01:00
|
|
|
#
|
|
|
|
LIBDIR=$(ROOTDIR)/lib/Yap
|
|
|
|
#
|
2001-11-26 16:05:19 +00:00
|
|
|
# where YAP should look for architecture-independent Prolog libraries
|
|
|
|
#
|
|
|
|
SHAREDIR=$(ROOTDIR)/share
|
|
|
|
#
|
2001-06-06 20:10:51 +01:00
|
|
|
#
|
|
|
|
# You shouldn't need to change what follows.
|
|
|
|
#
|
|
|
|
INSTALL=@INSTALL@
|
|
|
|
INSTALL_DATA=@INSTALL_DATA@
|
|
|
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
|
|
|
srcdir=@srcdir@
|
2006-03-07 17:34:29 +00:00
|
|
|
YAP_EXTRAS=@YAP_EXTRAS@
|
2001-06-06 20:10:51 +01:00
|
|
|
|
2009-02-16 12:25:03 +00:00
|
|
|
PROGRAMS= \
|
|
|
|
$(srcdir)/apply.yap \
|
2008-05-15 14:41:48 +01:00
|
|
|
$(srcdir)/apply_macros.yap \
|
2008-02-12 17:03:59 +00:00
|
|
|
$(srcdir)/arg.yap \
|
2001-08-11 00:07:00 +01:00
|
|
|
$(srcdir)/assoc.yap \
|
2001-06-06 20:10:51 +01:00
|
|
|
$(srcdir)/atts.yap \
|
|
|
|
$(srcdir)/avl.yap \
|
2008-11-18 11:29:59 +00:00
|
|
|
$(srcdir)/bhash.yap \
|
2001-06-06 20:10:51 +01:00
|
|
|
$(srcdir)/charsio.yap \
|
2002-10-11 04:39:11 +01:00
|
|
|
$(srcdir)/cleanup.yap \
|
2007-10-10 10:44:28 +01:00
|
|
|
$(srcdir)/clpfd.pl \
|
2006-07-27 20:04:56 +01:00
|
|
|
$(srcdir)/dbqueues.yap \
|
2008-09-01 04:45:55 +01:00
|
|
|
$(srcdir)/dbusage.yap \
|
2006-04-10 20:24:52 +01:00
|
|
|
$(srcdir)/dgraphs.yap \
|
2005-10-28 18:38:50 +01:00
|
|
|
$(srcdir)/gensym.yap \
|
2006-12-27 01:32:38 +00:00
|
|
|
$(srcdir)/hacks.yap \
|
2001-06-06 20:10:51 +01:00
|
|
|
$(srcdir)/heaps.yap \
|
2008-01-27 23:07:30 +00:00
|
|
|
$(srcdir)/lineutils.yap \
|
2005-10-28 18:38:50 +01:00
|
|
|
$(srcdir)/listing.yap \
|
2001-06-06 20:10:51 +01:00
|
|
|
$(srcdir)/lists.yap \
|
2006-08-25 20:50:35 +01:00
|
|
|
$(srcdir)/nb.yap \
|
2001-06-06 20:10:51 +01:00
|
|
|
$(srcdir)/ordsets.yap \
|
2007-05-24 16:11:46 +01:00
|
|
|
$(srcdir)/matlab.yap \
|
2006-12-13 16:10:26 +00:00
|
|
|
$(srcdir)/matrix.yap \
|
2001-06-06 20:10:51 +01:00
|
|
|
$(srcdir)/prandom.yap \
|
|
|
|
$(srcdir)/queues.yap \
|
|
|
|
$(srcdir)/random.yap \
|
2004-05-17 22:42:12 +01:00
|
|
|
$(srcdir)/rbtrees.yap \
|
2006-08-02 19:18:31 +01:00
|
|
|
$(srcdir)/readutil.yap \
|
2001-06-06 20:10:51 +01:00
|
|
|
$(srcdir)/regexp.yap \
|
2008-03-31 23:56:22 +01:00
|
|
|
$(srcdir)/rltree.yap \
|
2003-08-27 14:37:10 +01:00
|
|
|
$(srcdir)/splay.yap \
|
2008-03-13 14:38:02 +00:00
|
|
|
$(srcdir)/stringutils.yap \
|
2001-06-07 17:57:23 +01:00
|
|
|
$(srcdir)/system.yap \
|
2001-06-06 20:10:51 +01:00
|
|
|
$(srcdir)/terms.yap \
|
2002-12-12 20:47:36 +00:00
|
|
|
$(srcdir)/tries.yap \
|
2007-05-02 16:31:23 +01:00
|
|
|
$(srcdir)/itries.yap \
|
2001-06-06 20:10:51 +01:00
|
|
|
$(srcdir)/timeout.yap \
|
|
|
|
$(srcdir)/trees.yap \
|
2005-06-06 23:29:22 +01:00
|
|
|
$(srcdir)/ugraphs.yap \
|
2006-04-10 20:24:52 +01:00
|
|
|
$(srcdir)/undgraphs.yap \
|
2006-12-27 01:32:38 +00:00
|
|
|
$(srcdir)/varnumbers.yap \
|
2006-04-20 16:28:08 +01:00
|
|
|
$(srcdir)/wdgraphs.yap \
|
2007-12-05 12:17:25 +00:00
|
|
|
$(srcdir)/wgraphs.yap \
|
2006-04-20 16:28:08 +01:00
|
|
|
$(srcdir)/wundgraphs.yap \
|
2006-06-04 19:43:38 +01:00
|
|
|
$(srcdir)/lam_mpi.yap \
|
2006-03-07 17:34:29 +00:00
|
|
|
$(srcdir)/ypp.yap
|
|
|
|
|
|
|
|
MYDDAS_PROGRAMS= $(srcdir)/MYDDAS/myddas.ypp \
|
|
|
|
$(srcdir)/MYDDAS/myddas_assert_predicates.ypp \
|
|
|
|
$(srcdir)/MYDDAS/myddas_mysql.ypp \
|
|
|
|
$(srcdir)/MYDDAS/myddas_top_level.ypp \
|
|
|
|
$(srcdir)/MYDDAS/myddas_errors.ypp \
|
|
|
|
$(srcdir)/MYDDAS/myddas_prolog2sql.ypp \
|
2006-04-30 11:11:25 +01:00
|
|
|
$(srcdir)/MYDDAS/myddas_util_predicates.ypp \
|
|
|
|
$(srcdir)/MYDDAS/myddas_prolog2sql_optimizer.ypp
|
2001-06-06 20:10:51 +01:00
|
|
|
|
2009-02-16 12:25:03 +00:00
|
|
|
DIALECT_PROGRAMS= \
|
|
|
|
$(srcdir)/dialect/commons.yap \
|
|
|
|
$(srcdir)/dialect/hprolog.yap \
|
|
|
|
$(srcdir)/dialect/swi.yap
|
2008-08-30 16:24:44 +01:00
|
|
|
|
|
|
|
|
2006-03-07 17:34:29 +00:00
|
|
|
install: $(PROGRAMS) install_myddas
|
2001-11-26 16:05:19 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
|
2008-08-30 16:24:44 +01:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/dialect
|
2001-11-26 16:05:19 +00:00
|
|
|
for p in $(PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap; done
|
2008-08-30 16:24:44 +01:00
|
|
|
for p in $(DIALECT_PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/dialect; done
|
2006-03-07 17:34:29 +00:00
|
|
|
|
|
|
|
install_myddas: $(MYDDAS_PROGRAMS)
|
|
|
|
count=`echo "$(YAP_EXTRAS)" | grep MYDDAS | wc -l`; \
|
|
|
|
if [ $$count -ne 0 ]; then \
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap; \
|
|
|
|
for p in $(MYDDAS_PROGRAMS); \
|
|
|
|
do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap; \
|
|
|
|
done; \
|
|
|
|
for p in $(DESTDIR)$(SHAREDIR)/Yap/myddas*.ypp; \
|
|
|
|
do name=`basename $$p .ypp`; \
|
|
|
|
cpp $(YAP_EXTRAS) -P -E -w $$p -o $(DESTDIR)$(SHAREDIR)/Yap/$$name.yap; \
|
|
|
|
rm -fr $$p; \
|
|
|
|
done; \
|
|
|
|
fi
|