133 lines
3.3 KiB
Makefile
133 lines
3.3 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=@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)/clp/clpfd.pl \
|
|
$(srcdir)/coinduction.yap \
|
|
$(srcdir)/dbqueues.yap \
|
|
$(srcdir)/dbusage.yap \
|
|
$(srcdir)/dgraphs.yap \
|
|
$(srcdir)/exo_interval.yap \
|
|
$(srcdir)/expand_macros.yap \
|
|
$(srcdir)/gensym.yap \
|
|
$(srcdir)/hacks.yap \
|
|
$(srcdir)/heaps.yap \
|
|
$(srcdir)/lambda.pl \
|
|
$(srcdir)/lineutils.yap \
|
|
$(srcdir)/listing.yap \
|
|
$(srcdir)/lists.yap \
|
|
$(srcdir)/nb.yap \
|
|
$(srcdir)/ordsets.yap \
|
|
$(srcdir)/mapargs.yap \
|
|
$(srcdir)/maplist.yap \
|
|
$(srcdir)/maputils.yap \
|
|
$(srcdir)/matlab.yap \
|
|
$(srcdir)/matrix.yap \
|
|
$(srcdir)/prandom.yap \
|
|
$(srcdir)/queues.yap \
|
|
$(srcdir)/random.yap \
|
|
$(srcdir)/range.yap \
|
|
$(srcdir)/r_session.yap \
|
|
$(srcdir)/rbtrees.yap \
|
|
$(srcdir)/regexp.yap \
|
|
$(srcdir)/rltree.yap \
|
|
$(srcdir)/sockets.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 \
|
|
$(srcdir)/c_alarms.yap \
|
|
$(srcdir)/flags.yap \
|
|
$(srcdir)/block_diagram.yap
|
|
|
|
DIALECT_PROGRAMS= \
|
|
$(srcdir)/dialect/commons.yap \
|
|
$(srcdir)/dialect/bprolog.yap \
|
|
$(srcdir)/dialect/hprolog.yap \
|
|
$(srcdir)/dialect/swi.yap
|
|
|
|
DIALECT_SWI= \
|
|
$(srcdir)/dialect/swi/INDEX.pl \
|
|
$(srcdir)/dialect/swi/listing.pl \
|
|
$(srcdir)/dialect/swi/syspred_options.pl
|
|
|
|
DIALECT_BP= \
|
|
$(srcdir)/dialect/bprolog/actionrules.pl \
|
|
$(srcdir)/dialect/bprolog/arrays.yap \
|
|
$(srcdir)/dialect/bprolog/compile_foreach.pl \
|
|
$(srcdir)/dialect/bprolog/foreach.pl \
|
|
$(srcdir)/dialect/bprolog/hashtable.yap
|
|
|
|
all:
|
|
|
|
install: $(PROGRAMS) $(DIALECT_PROGRAMS) $(DIALECT_SWI) $(DIALECT_BP) install-examples
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/dialect
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/dialect/swi
|
|
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
|
|
for p in $(DIALECT_BP); do $(INSTALL_DATA) $$p $(DESTDIR)$(SHAREDIR)/Yap/dialect/bprolog; done
|
|
|
|
|
|
install-examples:
|
|
|
|
clean:
|
|
|
|
distclean: clean
|
|
rm -f *def Makefile
|
|
|
|
|
|
##########
|
|
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)
|
|
|