This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/library/Makefile.in

133 lines
3.6 KiB
Makefile
Raw Normal View History

#
# default base directory for YAP installation
#
ROOTDIR = @prefix@
#
# where the binary should be
#
BINDIR = $(ROOTDIR)/bin
#
# where YAP should look for binary libraries
#
2010-03-05 08:15:02 +00:00
LIBDIR=@libdir@/Yap
#
# where YAP should look for architecture-independent Prolog libraries
#
SHAREDIR=$(ROOTDIR)/share
#
#
# You shouldn't need to change what follows.
#
INSTALL=@INSTALL@
INSTALL_DATA=@INSTALL_DATA@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
srcdir=@srcdir@
YAP_EXTRAS=@YAP_EXTRAS@
PROGRAMS= \
$(srcdir)/INDEX.pl \
$(srcdir)/apply.yap \
$(srcdir)/apply_macros.yap \
$(srcdir)/arg.yap \
$(srcdir)/assoc.yap \
$(srcdir)/atts.yap \
$(srcdir)/autoloader.yap \
$(srcdir)/avl.yap \
$(srcdir)/bhash.yap \
$(srcdir)/charsio.yap \
$(srcdir)/cleanup.yap \
2010-02-28 12:18:26 +00:00
$(srcdir)/clp/clpfd.pl \
2010-08-06 00:58:11 +01:00
$(srcdir)/coinduction.yap \
$(srcdir)/dbqueues.yap \
2008-09-01 04:45:55 +01:00
$(srcdir)/dbusage.yap \
$(srcdir)/dgraphs.yap \
$(srcdir)/expand_macros.yap \
$(srcdir)/gensym.yap \
$(srcdir)/hacks.yap \
$(srcdir)/heaps.yap \
2010-08-04 23:26:50 +01:00
$(srcdir)/lambda.pl \
$(srcdir)/lineutils.yap \
$(srcdir)/lists.yap \
$(srcdir)/nb.yap \
$(srcdir)/ordsets.yap \
$(srcdir)/maplist.yap \
$(srcdir)/matlab.yap \
$(srcdir)/matrix.yap \
$(srcdir)/prandom.yap \
$(srcdir)/queues.yap \
$(srcdir)/random.yap \
$(srcdir)/r_session.yap \
$(srcdir)/rbtrees.yap \
$(srcdir)/regexp.yap \
$(srcdir)/rltree.yap \
$(srcdir)/splay.yap \
$(srcdir)/stringutils.yap \
$(srcdir)/system.yap \
$(srcdir)/terms.yap \
$(srcdir)/tries.yap \
$(srcdir)/itries.yap \
$(srcdir)/timeout.yap \
$(srcdir)/trees.yap \
$(srcdir)/ugraphs.yap \
$(srcdir)/undgraphs.yap \
$(srcdir)/varnumbers.yap \
$(srcdir)/wdgraphs.yap \
$(srcdir)/wgraphs.yap \
$(srcdir)/wundgraphs.yap \
$(srcdir)/lam_mpi.yap \
$(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 \
$(srcdir)/block_diagram.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 \
$(srcdir)/MYDDAS/myddas_util_predicates.ypp \
$(srcdir)/MYDDAS/myddas_prolog2sql_optimizer.ypp
DIALECT_PROGRAMS= \
$(srcdir)/dialect/commons.yap \
2011-10-27 11:38:11 +01:00
$(srcdir)/dialect/bprolog.yap \
$(srcdir)/dialect/hprolog.yap \
$(srcdir)/dialect/swi.yap
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
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
install: $(PROGRAMS) install_myddas
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/dialect
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/dialect/swi
2011-11-02 22:55:56 +00:00
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/dialect/bprolog
for p in $(PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap; done
for p in $(DIALECT_PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/dialect; done
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
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`; \
2010-09-27 22:31:57 +01:00
cpp $(YAP_EXTRAS) -P -E -w $$p > $(DESTDIR)$(SHAREDIR)/Yap/$$name.yap; \
rm -fr $$p; \
done; \
fi