44e4a953e4
git-svn-id: https://yap.svn.sf.net/svnroot/yap/trunk@2064 b08c6af1-5177-4d33-ba66-4b1c6b8b522a
102 lines
2.6 KiB
Makefile
102 lines
2.6 KiB
Makefile
#
|
|
# default base directory for YAP installation
|
|
#
|
|
ROOTDIR = @prefix@
|
|
#
|
|
# where the binary should be
|
|
#
|
|
BINDIR = $(ROOTDIR)/bin
|
|
#
|
|
# where YAP should look for binary libraries
|
|
#
|
|
LIBDIR=$(ROOTDIR)/lib/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)/apply_macros.yap \
|
|
$(srcdir)/assoc.yap \
|
|
$(srcdir)/atts.yap \
|
|
$(srcdir)/avl.yap \
|
|
$(srcdir)/charsio.yap \
|
|
$(srcdir)/cleanup.yap \
|
|
$(srcdir)/clpfd.pl \
|
|
$(srcdir)/dbqueues.yap \
|
|
$(srcdir)/dgraphs.yap \
|
|
$(srcdir)/gensym.yap \
|
|
$(srcdir)/hacks.yap \
|
|
$(srcdir)/heaps.yap \
|
|
$(srcdir)/lineutils.yap \
|
|
$(srcdir)/listing.yap \
|
|
$(srcdir)/lists.yap \
|
|
$(srcdir)/logtalk.yap \
|
|
$(srcdir)/nb.yap \
|
|
$(srcdir)/ordsets.yap \
|
|
$(srcdir)/matlab.yap \
|
|
$(srcdir)/matrix.yap \
|
|
$(srcdir)/prandom.yap \
|
|
$(srcdir)/queues.yap \
|
|
$(srcdir)/random.yap \
|
|
$(srcdir)/rbtrees.yap \
|
|
$(srcdir)/readutil.yap \
|
|
$(srcdir)/regexp.yap \
|
|
$(srcdir)/splay.yap \
|
|
$(srcdir)/swi.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
|
|
|
|
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
|
|
|
|
LOGTALK_PROGRAMS= \
|
|
$(srcdir)/logtalk/logtalk.pl \
|
|
$(srcdir)/logtalk/yap.config
|
|
|
|
install: $(PROGRAMS) install_myddas
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
|
|
for p in $(PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap; done
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/logtalk
|
|
for p in $(LOGTALK_PROGRAMS); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/logtalk; 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`; \
|
|
cpp $(YAP_EXTRAS) -P -E -w $$p -o $(DESTDIR)$(SHAREDIR)/Yap/$$name.yap; \
|
|
rm -fr $$p; \
|
|
done; \
|
|
fi
|