2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# default base directory for YAP installation
|
2001-11-26 16:05:19 +00:00
|
|
|
# (EROOT for architecture-dependent files)
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
2001-11-26 18:57:07 +00:00
|
|
|
prefix = @prefix@
|
|
|
|
ROOTDIR = $(prefix)
|
2001-11-26 16:05:19 +00:00
|
|
|
EROOTDIR = @exec_prefix@
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# where the binary should be
|
|
|
|
#
|
2001-11-26 16:05:19 +00:00
|
|
|
BINDIR = $(EROOTDIR)/bin
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
2001-11-26 16:05:19 +00:00
|
|
|
# where YAP should look for binary libraries
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
2001-11-26 16:05:19 +00:00
|
|
|
LIBDIR=$(EROOTDIR)/lib
|
|
|
|
YAPLIBDIR=$(EROOTDIR)/lib/Yap
|
|
|
|
#
|
|
|
|
# where YAP should look for architecture-independent Prolog libraries
|
|
|
|
#
|
|
|
|
SHAREDIR=$(ROOTDIR)/share
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
# where the includes should be stored
|
|
|
|
#
|
|
|
|
INCLUDEDIR=$(ROOTDIR)/include/Yap
|
|
|
|
#
|
|
|
|
# where to store info files
|
|
|
|
#
|
2001-12-06 16:46:06 +00:00
|
|
|
INFODIR=$(SHAREDIR)/info
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
#
|
|
|
|
# Add this flag to YAP_EXTRAS if you need the extension:
|
|
|
|
# -DRATIONAL_TREES: allow unification and builtins over rational trees
|
|
|
|
# -DCOROUTINING: implement extra control primitives
|
|
|
|
# -DANALYST: low level profiler
|
|
|
|
# -DDEPTH_LIMIT: support depth-limits in Prolog execution
|
|
|
|
# -DLOW_LEVEL_TRACER: low level tracing
|
|
|
|
#
|
|
|
|
# very experimental stuff, you'll need to contact the developers
|
|
|
|
# if you want to use this:
|
|
|
|
# -DENV_COPY: or-parallelism with environment copying, in Muse style.
|
|
|
|
# -DSBA: or-parallelism with sparse binding arrays.
|
|
|
|
# -DACOW: or-parallelism with copy-on-write.
|
2005-04-07 18:56:58 +01:00
|
|
|
# -DTABLING: support for tabling
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# check also optimisation options in INSTALL file.
|
|
|
|
#
|
|
|
|
YAP_EXTRAS=@YAP_EXTRAS@
|
|
|
|
|
|
|
|
#
|
|
|
|
# Please do not add YAP_EXTRA flags here: if you do check the flags
|
|
|
|
# for c_interface.c
|
|
|
|
#
|
|
|
|
CC=@CC@
|
2002-02-22 14:31:45 +00:00
|
|
|
MPI_CC=@MPI_CC@
|
2001-06-22 18:53:36 +01:00
|
|
|
CPPFLAGS=@CPPFLAGS@ -I. -I$(srcdir)/H -I$(srcdir)/OPTYap
|
|
|
|
CFLAGS= @CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
|
|
|
|
C_INTERF_FLAGS= @C_INTERF_FLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS) -I$(srcdir)/include
|
2001-09-03 19:53:07 +01:00
|
|
|
C_PARSER_FLAGS= @C_PARSER_FLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
#
|
|
|
|
# You shouldn't need to change what follows.
|
|
|
|
#
|
|
|
|
CPP=@CPP@
|
|
|
|
DEFS=@DEFS@
|
|
|
|
LIBS=@LIBS@
|
2002-02-28 22:43:36 +00:00
|
|
|
LDFLAGS=@LDFLAGS@
|
2001-04-09 20:54:03 +01:00
|
|
|
LN_S=@LN_S@
|
|
|
|
M4=@M4@
|
|
|
|
GCC=@GCC@
|
|
|
|
INSTALL=@INSTALL@
|
|
|
|
INSTALL_DATA=@INSTALL_DATA@
|
|
|
|
INSTALL_INFO=@INSTALL_INFO@
|
|
|
|
INSTALL_PROGRAM=@INSTALL_PROGRAM@
|
|
|
|
M4GENHDRS=$(srcdir)/@M4GENHDRS@
|
|
|
|
M4GENABSMI=$(srcdir)/@M4GENABSMI@
|
|
|
|
INDENT=@INDENT@
|
2002-02-22 14:31:45 +00:00
|
|
|
SHELL=@SHELL@
|
2001-04-09 20:54:03 +01:00
|
|
|
RANLIB=@RANLIB@
|
2001-07-05 17:14:15 +01:00
|
|
|
AR=@AR@
|
2001-04-09 20:54:03 +01:00
|
|
|
srcdir=@srcdir@
|
|
|
|
SHLIB_SUFFIX=@SHLIB_SUFFIX@
|
2001-04-23 21:41:58 +01:00
|
|
|
MAKEINFO=makeinfo
|
|
|
|
TEXI2DVI=texi2dvi
|
|
|
|
TEXI2HTML=texi2html
|
|
|
|
TEXI2PDF=texi2pdf
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
#4.1VPATH=@srcdir@:@srcdir@/OPTYap
|
|
|
|
CWD=$(PWD)
|
|
|
|
#
|
2005-08-22 12:53:28 +01:00
|
|
|
VERSION=Yap-5.0.0
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
|
2002-09-09 18:46:30 +01:00
|
|
|
INTERFACE_HEADERS = $(srcdir)/include/c_interface.h $(srcdir)/include/yap_structs.h $(srcdir)/include/YapInterface.h
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
HEADERS = \
|
2005-05-27 23:27:59 +01:00
|
|
|
$(srcdir)/H/TermExt.h $(srcdir)/H/Atoms.h \
|
|
|
|
$(srcdir)/H/Tags_32bits.h $(srcdir)/H/Tags_32Ops.h \
|
|
|
|
$(srcdir)/H/Tags_32LowTag.h $(srcdir)/H/Tags_64bits.h \
|
|
|
|
$(srcdir)/H/Tags_24bits.h $(srcdir)/H/sshift.h \
|
|
|
|
$(srcdir)/H/Yap.h $(srcdir)/H/Yatom.h \
|
2002-05-28 17:26:00 +01:00
|
|
|
$(srcdir)/H/Heap.h \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/H/Regs.h $(srcdir)/H/Yapproto.h \
|
2002-05-28 17:26:00 +01:00
|
|
|
$(srcdir)/H/absmi.h $(srcdir)/H/alloc.h \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/H/amidefs.h $(srcdir)/H/amiops.h $(srcdir)/H/arrays.h \
|
2002-05-28 17:26:00 +01:00
|
|
|
$(srcdir)/H/arith2.h $(srcdir)/H/attvar.h \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/H/clause.h $(srcdir)/H/compile.h \
|
2004-10-28 21:12:23 +01:00
|
|
|
$(srcdir)/H/corout.h $(srcdir)/H/dlmalloc.h \
|
|
|
|
$(srcdir)/H/eval.h $(srcdir)/H/heapgc.h \
|
2002-05-28 17:26:00 +01:00
|
|
|
$(srcdir)/H/index.h $(srcdir)/H/iopreds.h \
|
2005-01-04 02:50:23 +00:00
|
|
|
$(srcdir)/H/rclause.h \
|
2002-06-04 19:21:55 +01:00
|
|
|
$(srcdir)/H/rheap.h \
|
2004-07-23 04:37:17 +01:00
|
|
|
$(srcdir)/H/tracer.h \
|
|
|
|
$(srcdir)/H/threads.h \
|
|
|
|
$(srcdir)/H/yapio.h \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/OPTYap/opt.config.h \
|
|
|
|
$(srcdir)/OPTYap/opt.proto.h $(srcdir)/OPTYap/opt.structs.h \
|
|
|
|
$(srcdir)/OPTYap/opt.macros.h $(srcdir)/OPTYap/or.macros.h \
|
|
|
|
$(srcdir)/OPTYap/sbaamiops.h $(srcdir)/OPTYap/sbaunify.h \
|
|
|
|
$(srcdir)/OPTYap/tab.structs.h $(srcdir)/OPTYap/x86_locks.h \
|
|
|
|
$(srcdir)/OPTYap/sparc_locks.h $(srcdir)/OPTYap/mips_locks.h \
|
|
|
|
$(srcdir)/OPTYap/mips_locks_funcs.h $(srcdir)/OPTYap/alpha_locks.h \
|
2004-02-12 17:09:17 +00:00
|
|
|
$(srcdir)/OPTYap/alpha_locks_funcs.h \
|
|
|
|
$(srcdir)/OPTYap/pthread_locks.h
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
C_SOURCES= \
|
2002-06-04 19:21:55 +01:00
|
|
|
$(srcdir)/C/absmi.c $(srcdir)/C/adtdefs.c \
|
|
|
|
$(srcdir)/C/agc.c $(srcdir)/C/alloc.c \
|
2001-06-27 13:46:56 +01:00
|
|
|
$(srcdir)/C/amasm.c $(srcdir)/C/analyst.c \
|
|
|
|
$(srcdir)/C/arith0.c $(srcdir)/C/arith1.c $(srcdir)/C/arith2.c \
|
|
|
|
$(srcdir)/C/arrays.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/attvar.c $(srcdir)/C/bb.c \
|
2001-06-27 13:46:56 +01:00
|
|
|
$(srcdir)/C/bignum.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/c_interface.c $(srcdir)/C/cdmgr.c $(srcdir)/C/cmppreds.c \
|
|
|
|
$(srcdir)/C/compiler.c $(srcdir)/C/computils.c \
|
2004-10-28 21:12:23 +01:00
|
|
|
$(srcdir)/C/corout.c $(srcdir)/C/dbase.c $(srcdir)/C/dlmalloc.c \
|
|
|
|
$(srcdir)/C/errors.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/eval.c $(srcdir)/C/exec.c $(srcdir)/C/grow.c \
|
2002-11-12 04:36:05 +00:00
|
|
|
$(srcdir)/C/heapgc.c $(srcdir)/C/index.c \
|
|
|
|
$(srcdir)/C/init.c $(srcdir)/C/inlines.c \
|
2001-06-27 13:46:56 +01:00
|
|
|
$(srcdir)/C/iopreds.c $(srcdir)/C/depth_bound.c \
|
|
|
|
$(srcdir)/C/load_foreign.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/load_dl.c $(srcdir)/C/load_dld.c $(srcdir)/C/load_none.c \
|
|
|
|
$(srcdir)/C/load_aout.c $(srcdir)/C/load_aix.c $(srcdir)/C/load_dll.c \
|
2002-09-24 15:18:56 +01:00
|
|
|
$(srcdir)/C/load_shl.c $(srcdir)/C/load_dyld.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/mavar.c $(srcdir)/C/modules.c $(srcdir)/C/other.c \
|
2002-06-04 19:21:55 +01:00
|
|
|
$(srcdir)/C/parser.c \
|
|
|
|
$(srcdir)/C/save.c $(srcdir)/C/scanner.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/sort.c $(srcdir)/C/stdpreds.c $(srcdir)/C/sysbits.c \
|
2004-01-23 02:17:21 +00:00
|
|
|
$(srcdir)/C/threads.c \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/C/tracer.c $(srcdir)/C/unify.c $(srcdir)/C/userpreds.c \
|
|
|
|
$(srcdir)/C/utilpreds.c $(srcdir)/C/write.c $(srcdir)/console/yap.c \
|
|
|
|
$(srcdir)/C/ypsocks.c $(srcdir)/C/ypstdio.c \
|
|
|
|
$(srcdir)/OPTYap/opt.memory.c $(srcdir)/OPTYap/opt.misc.c \
|
|
|
|
$(srcdir)/OPTYap/opt.init.c \
|
|
|
|
$(srcdir)/OPTYap/opt.preds.c $(srcdir)/OPTYap/or.engine.c \
|
|
|
|
$(srcdir)/OPTYap/or.cowengine.c $(srcdir)/OPTYap/or.sbaengine.c \
|
|
|
|
$(srcdir)/OPTYap/or.scheduler.c $(srcdir)/OPTYap/or.cut.c \
|
2002-02-11 20:46:41 +00:00
|
|
|
$(srcdir)/OPTYap/tab.tries.c $(srcdir)/OPTYap/tab.suspend.c \
|
2002-02-22 14:31:45 +00:00
|
|
|
$(srcdir)/library/mpi/mpi.c $(srcdir)/library/mpi/mpe.c
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
PL_SOURCES= \
|
|
|
|
$(srcdir)/pl/arith.yap $(srcdir)/pl/arrays.yap $(srcdir)/pl/boot.yap \
|
2002-09-03 15:28:09 +01:00
|
|
|
$(srcdir)/pl/callcount.yap\
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/pl/checker.yap $(srcdir)/pl/consult.yap \
|
|
|
|
$(srcdir)/pl/corout.yap $(srcdir)/pl/debug.yap \
|
|
|
|
$(srcdir)/pl/directives.yap \
|
|
|
|
$(srcdir)/pl/errors.yap $(srcdir)/pl/grammar.yap \
|
|
|
|
$(srcdir)/pl/ground.yap $(srcdir)/pl/init.yap \
|
|
|
|
$(srcdir)/pl/depth_bound.yap $(srcdir)/pl/listing.yap \
|
|
|
|
$(srcdir)/pl/load_foreign.yap \
|
|
|
|
$(srcdir)/pl/modules.yap $(srcdir)/pl/preds.yap \
|
2002-03-17 06:11:29 +00:00
|
|
|
$(srcdir)/pl/profile.yap \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/pl/protect.yap $(srcdir)/pl/setof.yap \
|
2004-01-23 02:17:21 +00:00
|
|
|
$(srcdir)/pl/signals.yap \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/pl/sockets.yap $(srcdir)/pl/sort.yap \
|
2004-03-02 16:44:58 +00:00
|
|
|
$(srcdir)/pl/statistics.yap \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/pl/strict_iso.yap \
|
2004-01-23 02:17:21 +00:00
|
|
|
$(srcdir)/pl/tabling.yap $(srcdir)/pl/threads.yap \
|
|
|
|
$(srcdir)/pl/utils.yap \
|
2001-04-09 20:54:03 +01:00
|
|
|
$(srcdir)/pl/yapor.yap $(srcdir)/pl/yio.yap
|
|
|
|
|
|
|
|
ENGINE_OBJECTS = \
|
2002-06-04 19:21:55 +01:00
|
|
|
agc.o absmi.o adtdefs.o alloc.o amasm.o analyst.o arrays.o \
|
2001-04-09 20:54:03 +01:00
|
|
|
arith0.o arith1.o arith2.o attvar.o bb.o \
|
|
|
|
cdmgr.o cmppreds.o compiler.o computils.o \
|
2004-10-28 21:12:23 +01:00
|
|
|
corout.o dbase.o dlmalloc.o errors.o eval.o bignum.o \
|
2002-11-12 04:36:05 +00:00
|
|
|
exec.o grow.o heapgc.o index.o init.o inlines.o \
|
2002-02-22 14:31:45 +00:00
|
|
|
iopreds.o depth_bound.o mavar.o modules.o other.o \
|
2004-01-23 02:17:21 +00:00
|
|
|
parser.o save.o scanner.o sort.o stdpreds.o sysbits.o threads.o \
|
|
|
|
tracer.o \
|
2002-02-26 18:58:35 +00:00
|
|
|
unify.o userpreds.o utilpreds.o write.o ypsocks.o ypstdio.o @MPI_OBJS@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
C_INTERFACE_OBJECTS = \
|
2002-09-24 15:18:56 +01:00
|
|
|
load_foreign.o load_dl.o load_dld.o load_dyld.o \
|
2001-04-09 20:54:03 +01:00
|
|
|
load_none.o load_aout.o load_aix.o load_dll.o load_shl.o \
|
|
|
|
c_interface.o
|
|
|
|
|
|
|
|
OR_OBJECTS = \
|
|
|
|
opt.memory.o opt.misc.o opt.init.o opt.preds.o \
|
|
|
|
or.engine.o or.cowengine.o or.sbaengine.o or.scheduler.o or.cut.o \
|
|
|
|
tab.tries.o tab.suspend.o
|
|
|
|
|
|
|
|
LIB_OBJECTS = $(ENGINE_OBJECTS) $(C_INTERFACE_OBJECTS) $(OR_OBJECTS)
|
|
|
|
|
|
|
|
OBJECTS = yap.o $(LIB_OBJECTS)
|
|
|
|
|
|
|
|
|
|
|
|
|
2005-05-27 23:27:59 +01:00
|
|
|
all: Makefile startup
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
Makefile: $(srcdir)/Makefile.in
|
|
|
|
|
|
|
|
|
|
|
|
absmi.o: $(srcdir)/C/absmi.c
|
|
|
|
$(CC) -c $(CFLAGS) $(ABSMI_FLAGS) $(srcdir)/C/absmi.c -o $@
|
|
|
|
|
|
|
|
adtdefs.o: $(srcdir)/C/adtdefs.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/adtdefs.c -o $@
|
|
|
|
|
2002-06-04 19:21:55 +01:00
|
|
|
agc.o: $(srcdir)/C/agc.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/agc.c -o $@
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
alloc.o: $(srcdir)/C/alloc.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/alloc.c -o $@
|
|
|
|
|
|
|
|
amasm.o: $(srcdir)/C/amasm.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/amasm.c -o $@
|
|
|
|
|
|
|
|
analyst.o: $(srcdir)/C/analyst.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/analyst.c -o $@
|
|
|
|
|
|
|
|
arith0.o: $(srcdir)/C/arith0.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/arith0.c -o $@
|
|
|
|
|
|
|
|
arith1.o: $(srcdir)/C/arith1.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/arith1.c -o $@
|
|
|
|
|
|
|
|
arith2.o: $(srcdir)/C/arith2.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/arith2.c -o $@
|
|
|
|
|
|
|
|
arrays.o: $(srcdir)/C/arrays.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/arrays.c -o $@
|
|
|
|
|
|
|
|
attvar.o: $(srcdir)/C/attvar.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/attvar.c -o $@
|
|
|
|
|
|
|
|
bb.o: $(srcdir)/C/bb.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/bb.c -o $@
|
|
|
|
|
|
|
|
bignum.o: $(srcdir)/C/bignum.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/bignum.c -o $@
|
|
|
|
|
|
|
|
#special rule for this one: we cannot use -fomit-frame-pointer because this will
|
|
|
|
# interface with the outside world.
|
|
|
|
c_interface.o: $(srcdir)/C/c_interface.c $(srcdir)/include/c_interface.h
|
|
|
|
$(CC) $(C_INTERF_FLAGS) -c $(srcdir)/C/c_interface.c -o c_interface.o
|
|
|
|
|
|
|
|
cdmgr.o: $(srcdir)/C/cdmgr.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/cdmgr.c -o $@
|
|
|
|
|
|
|
|
cmppreds.o: $(srcdir)/C/cmppreds.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/cmppreds.c -o $@
|
|
|
|
|
|
|
|
compiler.o: $(srcdir)/C/compiler.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/compiler.c -o $@
|
|
|
|
|
|
|
|
computils.o: $(srcdir)/C/computils.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/computils.c -o $@
|
|
|
|
|
|
|
|
corout.o: $(srcdir)/C/corout.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/corout.c -o $@
|
|
|
|
|
|
|
|
dbase.o: $(srcdir)/C/dbase.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/dbase.c -o $@
|
|
|
|
|
2004-10-28 21:12:23 +01:00
|
|
|
dlmalloc.o: $(srcdir)/C/dlmalloc.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/dlmalloc.c -o $@
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
errors.o: $(srcdir)/C/errors.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/errors.c -o $@
|
|
|
|
|
|
|
|
eval.o: $(srcdir)/C/eval.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/eval.c -o $@
|
|
|
|
|
|
|
|
exec.o: $(srcdir)/C/exec.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/exec.c -o $@
|
|
|
|
|
|
|
|
grow.o: $(srcdir)/C/grow.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/grow.c -o $@
|
|
|
|
|
|
|
|
heapgc.o: $(srcdir)/C/heapgc.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/heapgc.c -o $@
|
|
|
|
|
|
|
|
index.o: $(srcdir)/C/index.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/index.c -o $@
|
|
|
|
|
|
|
|
init.o: $(srcdir)/C/init.c
|
|
|
|
$(CC) -c $(CFLAGS) -DYAP_VERSION=\"$(VERSION)\" $(srcdir)/C/init.c -o $@
|
|
|
|
|
2002-11-12 04:36:05 +00:00
|
|
|
inlines.o: $(srcdir)/C/inlines.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/inlines.c -o $@
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
iopreds.o: $(srcdir)/C/iopreds.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/iopreds.c -o $@
|
|
|
|
|
|
|
|
depth_bound.o: $(srcdir)/C/depth_bound.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/depth_bound.c -o $@
|
|
|
|
|
|
|
|
load_foreign.o: $(srcdir)/C/load_foreign.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/load_foreign.c -DSHLIB_SUFFIX=\"$(SHLIB_SUFFIX)\" -o $@
|
|
|
|
|
|
|
|
load_dl.o: $(srcdir)/C/load_dl.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/load_dl.c -o $@
|
|
|
|
|
|
|
|
load_aout.o: $(srcdir)/C/load_aout.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/load_aout.c -o $@
|
|
|
|
|
|
|
|
load_aix.o: $(srcdir)/C/load_aix.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/load_aix.c -o $@
|
|
|
|
|
|
|
|
load_dld.o: $(srcdir)/C/load_dld.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/load_dld.c -o $@
|
|
|
|
|
|
|
|
load_dll.o: $(srcdir)/C/load_dll.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/load_dll.c -o $@
|
|
|
|
|
2002-09-24 15:18:56 +01:00
|
|
|
load_dyld.o: $(srcdir)/C/load_dyld.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/load_dyld.c -o $@
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
load_shl.o: $(srcdir)/C/load_shl.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/load_shl.c -o $@
|
|
|
|
|
|
|
|
load_none.o: $(srcdir)/C/load_none.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/load_none.c -o $@
|
|
|
|
|
|
|
|
mavar.o: $(srcdir)/C/mavar.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/mavar.c -o $@
|
|
|
|
|
|
|
|
modules.o: $(srcdir)/C/modules.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/modules.c -o $@
|
|
|
|
|
|
|
|
other.o: $(srcdir)/C/other.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/other.c -o $@
|
|
|
|
|
|
|
|
parser.o: $(srcdir)/C/parser.c
|
2001-08-11 00:07:00 +01:00
|
|
|
$(CC) -c $(C_PARSER_FLAGS) $(srcdir)/C/parser.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
save.o: $(srcdir)/C/save.c
|
|
|
|
$(CC) -c $(CFLAGS) -DYAP_VERSION=\"$(VERSION)\" -DBIN_DIR=\"$(BINDIR)\" -DLIB_DIR=\"$(YAPLIBDIR)\" $(srcdir)/C/save.c -o $@
|
|
|
|
|
|
|
|
scanner.o: $(srcdir)/C/scanner.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/scanner.c -o $@
|
|
|
|
|
|
|
|
sort.o: $(srcdir)/C/sort.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/sort.c -o $@
|
|
|
|
|
|
|
|
stdpreds.o: $(srcdir)/C/stdpreds.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/stdpreds.c -o $@
|
|
|
|
|
|
|
|
sysbits.o: $(srcdir)/C/sysbits.c
|
2005-03-13 06:26:13 +00:00
|
|
|
$(CC) -c $(CFLAGS) -DYAP_HOME_DIR=\"$(ROOTDIR)\" -DLIB_DIR=\"$(YAPLIBDIR)\" -DSHARE_DIR=\"$(SHAREDIR)\" $(srcdir)/C/sysbits.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2004-01-23 02:17:21 +00:00
|
|
|
threads.o: $(srcdir)/C/threads.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/threads.c -o $@
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
tracer.o: $(srcdir)/C/tracer.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/tracer.c -o $@
|
|
|
|
|
|
|
|
unify.o: $(srcdir)/C/unify.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/unify.c -o $@
|
|
|
|
|
|
|
|
userpreds.o: $(srcdir)/C/userpreds.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/userpreds.c -o $@
|
|
|
|
|
|
|
|
utilpreds.o: $(srcdir)/C/utilpreds.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/utilpreds.c -o $@
|
|
|
|
|
|
|
|
write.o: $(srcdir)/C/write.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/write.c -o $@
|
|
|
|
|
|
|
|
yap.o: $(srcdir)/console/yap.c
|
2004-01-23 02:17:21 +00:00
|
|
|
$(CC) -c $(CFLAGS) -I$(srcdir)/include -DYAP_VERSION=\"$(VERSION)\" -DPL_SRC_DIR=\"$(SHAREDIR)/Yap/pl/\" $(srcdir)/console/yap.c -o $@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
ypsocks.o: $(srcdir)/C/ypsocks.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/ypsocks.c -o $@
|
|
|
|
|
|
|
|
ypstdio.o: $(srcdir)/C/ypstdio.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/C/ypstdio.c -o $@
|
|
|
|
|
|
|
|
opt.memory.o: $(srcdir)/OPTYap/opt.memory.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/opt.memory.c -o $@
|
|
|
|
|
|
|
|
opt.misc.o: $(srcdir)/OPTYap/opt.misc.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/opt.misc.c -o $@
|
|
|
|
|
|
|
|
opt.init.o: $(srcdir)/OPTYap/opt.init.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/opt.init.c -o $@
|
|
|
|
|
|
|
|
opt.preds.o: $(srcdir)/OPTYap/opt.preds.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/opt.preds.c -o $@
|
|
|
|
|
|
|
|
or.cut.o: $(srcdir)/OPTYap/or.cut.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.cut.c -o $@
|
|
|
|
|
|
|
|
or.engine.o: $(srcdir)/OPTYap/or.engine.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.engine.c -o $@
|
|
|
|
|
|
|
|
or.cowengine.o: $(srcdir)/OPTYap/or.cowengine.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.cowengine.c -o $@
|
|
|
|
|
|
|
|
or.sbaengine.o: $(srcdir)/OPTYap/or.sbaengine.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.sbaengine.c -o $@
|
|
|
|
|
|
|
|
or.scheduler.o: $(srcdir)/OPTYap/or.scheduler.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/or.scheduler.c -o $@
|
|
|
|
|
|
|
|
tab.tries.o: $(srcdir)/OPTYap/tab.tries.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/tab.tries.c -o $@
|
|
|
|
|
|
|
|
tab.suspend.o: $(srcdir)/OPTYap/tab.suspend.c
|
|
|
|
$(CC) -c $(CFLAGS) $(srcdir)/OPTYap/tab.suspend.c -o $@
|
|
|
|
|
2002-02-11 20:46:41 +00:00
|
|
|
mpi.o: $(srcdir)/library/mpi/mpi.c
|
2002-02-22 14:31:45 +00:00
|
|
|
$(MPI_CC) -c $(CFLAGS) $(srcdir)/library/mpi/mpi.c -o $@
|
2002-02-11 20:46:41 +00:00
|
|
|
|
2002-02-22 14:31:45 +00:00
|
|
|
mpe.o: $(srcdir)/library/mpi/mpe.c
|
|
|
|
$(MPI_CC) -c $(CFLAGS) $(srcdir)/library/mpi/mpe.c -o $@
|
2001-07-03 12:19:15 +01:00
|
|
|
|
|
|
|
## CPP'ed files (for macro debugging)
|
|
|
|
|
|
|
|
%.i : $(srcdir)/C/%.c
|
|
|
|
$(CC) -E $< $(CFLAGS) > $@
|
|
|
|
|
|
|
|
absmi.i: $(srcdir)/C/absmi.c
|
|
|
|
$(CC) -E $(CFLAGS) $(ABSMI_FLAGS) $(srcdir)/C/absmi.c > $@
|
|
|
|
|
|
|
|
c_interface.i: $(srcdir)/C/c_interface.c $(srcdir)/include/c_interface.h
|
|
|
|
$(CC) -E $(C_INTERF_FLAGS) $(srcdir)/C/c_interface.c > $@
|
2001-04-09 20:54:03 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
mycb: $(srcdir)/mycb.c
|
|
|
|
$(CC) $(CFLAGS) $(srcdir)/mycb.c -o mycb
|
|
|
|
|
2004-09-07 17:29:16 +01:00
|
|
|
all: startup
|
|
|
|
@INSTALL_DLLS@ (cd library/random; make)
|
|
|
|
@INSTALL_DLLS@ (cd library/regex; make)
|
|
|
|
@INSTALL_DLLS@ (cd library/system; make)
|
|
|
|
@INSTALL_DLLS@ (cd library/yap2swi; make)
|
|
|
|
@INSTALL_DLLS@ (cd library/Tries; make)
|
|
|
|
@ENABLE_JPL@ @INSTALL_DLLS@ (cd LGPL/JPL/src; make)
|
|
|
|
|
2002-11-12 04:36:05 +00:00
|
|
|
startup: yap@EXEC_SUFFIX@ $(PL_SOURCES)
|
2001-04-09 20:54:03 +01:00
|
|
|
-rm -f startup
|
2002-05-14 19:21:33 +01:00
|
|
|
echo "['$(srcdir)/pl/init.yap']. module(user). save_program(startup)." | @CROSS_SIMULATOR@ ./yap -b $(srcdir)/pl/boot.yap
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2002-11-12 04:36:05 +00:00
|
|
|
yap@EXEC_SUFFIX@: $(HEADERS) yap.o @YAPLIB@
|
2002-02-26 18:58:35 +00:00
|
|
|
$(MPI_CC) $(STANDARD_CFLAGS) $(LDFLAGS) -o yap yap.o @YAPLIB@ $(LIBS) @MPI_LIBS@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
libYap.a: $(LIB_OBJECTS)
|
|
|
|
-rm -f libYap.a
|
2001-07-05 17:14:15 +01:00
|
|
|
$(AR) rc libYap.a $(LIB_OBJECTS)
|
2001-04-09 20:54:03 +01:00
|
|
|
$(RANLIB) libYap.a
|
|
|
|
|
2004-09-07 17:29:16 +01:00
|
|
|
@IN_UNIX@@DO_SECOND_LD@libYap@SHLIB_SUFFIX@: $(LIB_OBJECTS)
|
|
|
|
@IN_UNIX@@DO_SECOND_LD@ @SHLIB_LD@ -o libYap@SHLIB_SUFFIX@ $(LIB_OBJECTS) $(LIBS)
|
2002-05-14 19:21:33 +01:00
|
|
|
|
2001-11-26 16:05:19 +00:00
|
|
|
install: install_bin install_data
|
|
|
|
|
|
|
|
install_bin: @INSTALL_COMMAND@
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2004-09-07 17:29:16 +01:00
|
|
|
install_unix: startup libYap.a
|
2001-11-26 16:05:19 +00:00
|
|
|
mkdir -p $(DESTDIR)$(BINDIR)
|
2002-11-12 04:36:05 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 yap@EXEC_SUFFIX@ $(DESTDIR)$(BINDIR)/yap
|
2001-11-26 16:05:19 +00:00
|
|
|
mkdir -p $(DESTDIR)$(YAPLIBDIR)
|
|
|
|
$(INSTALL_DATA) startup $(DESTDIR)$(YAPLIBDIR)/startup
|
|
|
|
$(INSTALL_DATA) libYap.a $(DESTDIR)$(LIBDIR)/libYap.a
|
2004-01-23 02:17:21 +00:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/pl
|
|
|
|
for f in $(PL_SOURCES); do $(INSTALL) $$f $(DESTDIR)$(SHAREDIR)/Yap/pl; done
|
2004-09-07 17:29:16 +01:00
|
|
|
@INSTALL_DLLS@ $(INSTALL_PROGRAM) -m 755 @YAPLIB@ $(DESTDIR)$(LIBDIR)
|
2002-05-23 13:44:18 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/random; make install)
|
2001-04-09 20:54:03 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/regex; make install)
|
2001-05-21 21:00:05 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/system; make install)
|
2002-05-23 13:44:18 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/yap2swi; make install)
|
2002-12-13 22:09:33 +00:00
|
|
|
@INSTALL_DLLS@ (cd library/Tries; make install)
|
2004-09-07 17:29:16 +01:00
|
|
|
@ENABLE_JPL@ @INSTALL_DLLS@ (cd LGPL/JPL/src; make install)
|
2001-11-26 16:05:19 +00:00
|
|
|
mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
2001-04-16 17:41:04 +01:00
|
|
|
for h in $(INTERFACE_HEADERS); do $(INSTALL) $$h $(DESTDIR)$(INCLUDEDIR); done
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2002-03-17 06:11:29 +00:00
|
|
|
install_win32: startup
|
2001-11-26 16:05:19 +00:00
|
|
|
mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(LIBDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(YAPLIBDIR)
|
|
|
|
mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL_PROGRAM) -m 755 yap.exe $(DESTDIR)$(BINDIR)/yap.exe
|
|
|
|
$(INSTALL_PROGRAM) -m 755 yap.dll $(DESTDIR)$(BINDIR)/yap.dll
|
2002-11-13 15:29:44 +00:00
|
|
|
$(INSTALL_PROGRAM) -m 755 libWYap.a $(DESTDIR)$(YAPLIBDIR)/libWYap.a
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL_PROGRAM) -m 755 startup $(DESTDIR)$(YAPLIBDIR)/startup
|
2004-09-07 17:29:16 +01:00
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
|
|
|
|
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/pl
|
|
|
|
for f in $(PL_SOURCES); do $(INSTALL) $$f $(DESTDIR)$(SHAREDIR)/Yap/pl; done
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL) $(HEADERS) $(DESTDIR)$(INCLUDEDIR)
|
|
|
|
$(INSTALL) $(srcdir)/include/c_interface.h $(DESTDIR)$(INCLUDEDIR)/c_interface.h
|
2001-04-09 20:54:03 +01:00
|
|
|
$(INSTALL) config.h $(INCLUDEDIR)/config.h
|
2002-11-13 15:29:44 +00:00
|
|
|
(cd library/random; make install)
|
|
|
|
(cd library/regex; make install)
|
|
|
|
(cd library/system; make install)
|
|
|
|
(cd library/yap2swi; make install)
|
2004-09-07 17:29:16 +01:00
|
|
|
@# (cd library/Tries; make install)
|
2001-05-21 21:00:05 +01:00
|
|
|
|
2002-05-14 19:21:33 +01:00
|
|
|
install_library: @YAPLIB@
|
2001-11-26 16:05:19 +00:00
|
|
|
$(INSTALL_DATA) libYap.a $(DESTDIR)$(LIBDIR)/libYap.a
|
|
|
|
mkdir -p $(DESTDIR)$(INCLUDEDIR)
|
2001-07-03 12:19:15 +01:00
|
|
|
for h in $(HEADERS); do $(INSTALL) $$h $(DESTDIR)$(INCLUDEDIR); done
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-11-26 16:05:19 +00:00
|
|
|
install_data:
|
|
|
|
(cd library ; make install)
|
2004-09-07 17:29:16 +01:00
|
|
|
@ENABLE_JPL@ (cd LGPL/JPL ; make install)
|
2005-03-13 06:26:13 +00:00
|
|
|
@ENABLE_JPL@ (cd LGPL/JPL/java; make install)
|
2001-11-26 18:57:07 +00:00
|
|
|
$(INSTALL_DATA) $(srcdir)/LGPL/pillow/icon_address.pl $(DESTDIR)$(SHAREDIR)/Yap/
|
|
|
|
$(INSTALL_DATA) $(srcdir)/LGPL/pillow/pillow.pl $(DESTDIR)$(SHAREDIR)/Yap/
|
2001-11-26 16:05:19 +00:00
|
|
|
(cd CLPQR ; make install)
|
|
|
|
(cd CHR ; make install)
|
2004-07-23 04:37:17 +01:00
|
|
|
(cd CLPBN ; make install)
|
2001-11-26 16:05:19 +00:00
|
|
|
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
##########
|
|
|
|
TAGS: $(C_SOURCES) $(PL_SOURCES) $(HEADERS)
|
|
|
|
etags $(C_SOURCES) $(PL_SOURCES) $(HEADERS)
|
|
|
|
|
|
|
|
depend: $(HEADERS) $(C_SOURCES)
|
|
|
|
-@if test "$(GCC)" = yes; then\
|
2001-06-22 18:53:36 +01:00
|
|
|
$(CC) -MM $(CFLAGS) -I$(srcdir)/include $(C_SOURCES) > .depend;\
|
2001-04-09 20:54:03 +01:00
|
|
|
else\
|
|
|
|
makedepend -f - -- $(CFLAGS) -I$(srcdir)/include -- $(C_SOURCES) |\
|
|
|
|
sed 's|.*/\([^:]*\):|\1:|' > .depend ;\
|
|
|
|
fi
|
|
|
|
|
2001-04-16 17:41:04 +01:00
|
|
|
clean: clean_docs
|
2005-05-27 23:27:59 +01:00
|
|
|
rm -f *.o *~ *.BAK *.a
|
2004-09-07 17:29:16 +01:00
|
|
|
@INSTALL_DLLS@ (cd library/random; make clean)
|
|
|
|
@INSTALL_DLLS@ (cd library/regex; make clean)
|
|
|
|
@INSTALL_DLLS@ (cd library/system; make clean)
|
|
|
|
@INSTALL_DLLS@ (cd library/yap2swi; make clean)
|
|
|
|
@INSTALL_DLLS@ (cd library/Tries; make clean)
|
|
|
|
@ENABLE_JPL@ @INSTALL_DLLS@ (cd LGPL/JPL/src; make clean)
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-04-16 17:41:04 +01:00
|
|
|
realclean: clean realclean_docs
|
2002-11-12 04:36:05 +00:00
|
|
|
rm -f yap@EXEC_SUFFIX@ startup config.log config.cache config.h
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
dist:
|
|
|
|
|
|
|
|
.c.s:
|
|
|
|
$(CC) $(CFLAGS) -S $<
|
|
|
|
|
2002-11-13 15:29:44 +00:00
|
|
|
# use my own .def file.
|
2001-04-09 20:54:03 +01:00
|
|
|
libWYap.a: yap.dll
|
2002-11-13 15:29:44 +00:00
|
|
|
dlltool --def $(srcdir)/misc/yap.def \
|
|
|
|
--dllname yap.dll \
|
|
|
|
--output-lib libWYap.a
|
|
|
|
|
|
|
|
yap.dll: libYap.a
|
|
|
|
$(CC) $(CFLAGS) -shared -o yap.dll \
|
|
|
|
-Wl,--export-all-symbols \
|
|
|
|
-Wl,--enable-auto-import \
|
|
|
|
-Wl,--whole-archive libYap.a \
|
|
|
|
-Wl,--no-whole-archive $(LIBS)
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
install_info:
|
|
|
|
make info; \
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL) yap.info* $(DESTDIR)$(INFODIR); \
|
|
|
|
if test -e $(DESTDIR)$(INFODIR)/emacs.bz2; then \
|
|
|
|
bzip2 --quiet --force $(DESTDIR)$(INFODIR)/yap.info*; \
|
2001-04-09 20:54:03 +01:00
|
|
|
else \
|
2001-04-16 17:41:04 +01:00
|
|
|
if test -e $(DESTDIR)$(INFODIR)/emacs.gz; then \
|
|
|
|
gzip --quiet --force $(DESTDIR)$(INFODIR)/yap.info*; \
|
2001-04-09 20:54:03 +01:00
|
|
|
fi \
|
|
|
|
fi; \
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL_INFO) --quiet --section "Programming Languages" yap.info $(DESTDIR)$(INFODIR)/dir; \
|
2001-07-17 19:51:08 +01:00
|
|
|
cd $(srcdir)/LGPL/pillow/doc ; \
|
2001-04-16 17:41:04 +01:00
|
|
|
$(INSTALL) pillow_doc.info $(DESTDIR)$(INFODIR); \
|
|
|
|
if test -e $(DESTDIR)$(INFODIR)/emacs.bz2; then \
|
|
|
|
bzip2 --quiet --force $(DESTDIR)$(INFODIR)/pillow_doc.info; \
|
2001-04-09 20:54:03 +01:00
|
|
|
else \
|
2001-04-16 17:41:04 +01:00
|
|
|
if test -e $(DESTDIR)$(INFODIR)/emacs.gz; then \
|
|
|
|
gzip --quiet --force $(DESTDIR)$(INFODIR)/pillow_doc.info; \
|
2001-04-09 20:54:03 +01:00
|
|
|
fi \
|
|
|
|
fi; \
|
2005-08-22 12:53:28 +01:00
|
|
|
$(INSTALL_INFO) --quiet --section "Programming Languages" --entry="`cat pillow_doc.infoindex`" pillow_doc.info $(DESTDIR)$(INFODIR)/dir
|
2001-04-09 20:54:03 +01:00
|
|
|
|
2001-04-16 17:41:04 +01:00
|
|
|
info: yap.info
|
|
|
|
|
|
|
|
yap.info: $(srcdir)/docs/yap.tex
|
|
|
|
$(MAKEINFO) $(srcdir)/docs/yap.tex
|
|
|
|
|
|
|
|
html: yap.html
|
|
|
|
|
|
|
|
yap.html: $(srcdir)/docs/yap.tex
|
|
|
|
$(TEXI2HTML) $(srcdir)/docs/yap.tex
|
|
|
|
|
|
|
|
dvi: yap.dvi
|
|
|
|
|
|
|
|
yap.dvi: $(srcdir)/docs/yap.tex
|
|
|
|
$(TEXI2DVI) $(srcdir)/docs/yap.tex
|
|
|
|
|
|
|
|
ps: yap.ps
|
|
|
|
|
|
|
|
yap.ps: $(srcdir)/docs/yap.dvi
|
|
|
|
dvips -o yap.ps $(srcdir)/docs/yap
|
|
|
|
|
|
|
|
pdf: yap.pdf
|
|
|
|
|
|
|
|
yap.pdf: $(srcdir)/docs/yap.tex
|
|
|
|
$(TEXI2PDF) $(srcdir)/docs/yap.tex
|
|
|
|
|
|
|
|
clean_docs:
|
|
|
|
rm -f *.aux *.ca *.cas *.cn *.cns *.cp *.cps *.cy *.cys *.dvi *.fn *.fns *.ky *.log *.sa *.sas *.sn *.sns *.sy *.sys *~ *.tp *.vr *.toc *.pg
|
|
|
|
|
|
|
|
realclean_docs: clean_docs
|
|
|
|
rm -f yap.ps yap.html yap_toc.html yap.pdf yap.info*
|
|
|
|
|
|
|
|
|
2001-04-09 20:54:03 +01:00
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
|
|
|
|
|
|
include .depend
|