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
|
|
|
#
|
2010-03-05 08:15:02 +00:00
|
|
|
LIBDIR=@libdir@/Yap
|
2001-06-06 20:10:51 +01:00
|
|
|
#
|
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= \
|
2010-04-22 12:16:37 +01:00
|
|
|
$(srcdir)/INDEX.pl \
|
2009-02-16 12:25:03 +00:00
|
|
|
$(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 \
|
2010-04-22 12:16:37 +01:00
|
|
|
$(srcdir)/autoloader.yap \
|
2001-06-06 20:10:51 +01:00
|
|
|
$(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 \
|
2010-02-28 12:18:26 +00:00
|
|
|
$(srcdir)/clp/clpfd.pl \
|
2010-08-06 00:58:11 +01:00
|
|
|
$(srcdir)/coinduction.yap \
|
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 \
|
2013-04-25 15:48:06 +01:00
|
|
|
$(srcdir)/exo_interval.yap \
|
2009-04-24 22:43:08 +01:00
|
|
|
$(srcdir)/expand_macros.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 \
|
2010-08-04 23:26:50 +01:00
|
|
|
$(srcdir)/lambda.pl \
|
2008-01-27 23:07:30 +00:00
|
|
|
$(srcdir)/lineutils.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 \
|
2013-09-28 11:09:32 +01:00
|
|
|
$(srcdir)/mapargs.yap \
|
2009-04-24 22:43:08 +01:00
|
|
|
$(srcdir)/maplist.yap \
|
2013-09-28 11:09:32 +01:00
|
|
|
$(srcdir)/maputils.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 \
|
2012-10-23 14:55:17 +01:00
|
|
|
$(srcdir)/range.yap \
|
2010-10-16 14:54:48 +01:00
|
|
|
$(srcdir)/r_session.yap \
|
2004-05-17 22:42:12 +01:00
|
|
|
$(srcdir)/rbtrees.yap \
|
2001-06-06 20:10:51 +01:00
|
|
|
$(srcdir)/regexp.yap \
|
2008-03-31 23:56:22 +01:00
|
|
|
$(srcdir)/rltree.yap \
|
2012-07-26 21:16:26 +01:00
|
|
|
$(srcdir)/sockets.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 \
|
2010-11-23 12:02:12 +00:00
|
|
|
$(srcdir)/ypp.yap \
|
2011-02-01 11:05:35 +00:00
|
|
|
$(srcdir)/c_alarms.yap \
|
2011-02-01 11:13:42 +00:00
|
|
|
$(srcdir)/flags.yap \
|
2010-11-23 12:02:12 +00:00
|
|
|
$(srcdir)/block_diagram.yap
|
2006-03-07 17:34:29 +00:00
|
|
|
|
2009-02-16 12:25:03 +00:00
|
|
|
DIALECT_PROGRAMS= \
|
|
|
|
$(srcdir)/dialect/commons.yap \
|
2011-10-27 11:38:11 +01:00
|
|
|
$(srcdir)/dialect/bprolog.yap \
|
2009-02-16 12:25:03 +00:00
|
|
|
$(srcdir)/dialect/hprolog.yap \
|
|
|
|
$(srcdir)/dialect/swi.yap
|
2008-08-30 16:24:44 +01:00
|
|
|
|
2010-04-22 12:16:37 +01:00
|
|
|
DIALECT_SWI= \
|
|
|
|
$(srcdir)/dialect/swi/INDEX.pl \
|
2012-02-13 09:39:09 +00:00
|
|
|
$(srcdir)/dialect/swi/listing.pl \
|
|
|
|
$(srcdir)/dialect/swi/syspred_options.pl
|
2008-08-30 16:24:44 +01:00
|
|
|
|
2011-10-27 11:38:11 +01:00
|
|
|
DIALECT_BP= \
|
|
|
|
$(srcdir)/dialect/bprolog/actionrules.pl \
|
2011-11-02 22:55:56 +00:00
|
|
|
$(srcdir)/dialect/bprolog/arrays.yap \
|
2011-10-27 11:38:11 +01:00
|
|
|
$(srcdir)/dialect/bprolog/compile_foreach.pl \
|
|
|
|
$(srcdir)/dialect/bprolog/foreach.pl \
|
|
|
|
$(srcdir)/dialect/bprolog/hashtable.yap
|
|
|
|
|
2014-02-15 01:24:07 +00:00
|
|
|
all:
|
|
|
|
|
2014-02-22 22:48:29 +00:00
|
|
|
install: $(PROGRAMS) $(DIALECT_PROGRAMS) $(DIALECT_SWI) $(DIALECT_BP) install-examples
|
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
|
2010-04-22 12:16:37 +01:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/dialect/swi
|
2011-11-02 22:55:56 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/dialect/bprolog
|
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
|
2010-04-22 12:16:37 +01:00
|
|
|
for p in $(DIALECT_SWI); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/dialect/swi; done
|
2011-10-27 11:38:11 +01:00
|
|
|
for p in $(DIALECT_BP); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/dialect/bprolog; done
|
2006-03-07 17:34:29 +00:00
|
|
|
|
2014-02-13 01:58:48 +00:00
|
|
|
|
|
|
|
install-examples:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
|
|
|
|
distclean: clean
|
2014-02-03 16:34:13 +00:00
|
|
|
rm -f *def Makefile
|
2014-02-22 22:48:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
##########
|
|
|
|
FULL_PATH_PL_SOURCES=$(PROGRAMS) $(DIALECT_PROGRAMS) $(DIALECT_SWI) $(DIALECT_BP)
|
|
|
|
|
|
|
|
TAGS: $(PROGRAMS) $(DIALECT_PROGRAMS) $(DIALECT_SWI) $(DIALECT_BP)
|
|
|
|
etags --append ../TAGS $(FULL_PATH_PL_SOURCES)
|
|
|
|
|