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/Makefile.in

731 lines
19 KiB
Makefile
Raw Normal View History

2013-10-07 12:20:00 +01:00
# default base directory for YAP installation
# (EROOT for architecture-dependent files)
#
prefix = @prefix@
2010-03-05 10:22:48 +00:00
exec_prefix = @exec_prefix@
ROOTDIR = $(prefix)
EROOTDIR = @exec_prefix@
#
# where the binary should be
#
BINDIR = $(EROOTDIR)/bin
#
# where YAP should look for binary libraries
#
2010-03-05 08:15:02 +00:00
LIBDIR=@libdir@
YAPLIBDIR=@libdir@/Yap
#
# where YAP should look for architecture-independent Prolog libraries
#
SHAREDIR=$(ROOTDIR)/share
#
# where the includes should be stored
#
INCLUDEDIR=$(ROOTDIR)/include/Yap
#
# where to store info files
#
INFODIR=$(SHAREDIR)/info
2008-08-22 03:53:45 +01:00
#
2010-12-31 05:21:31 +00:00
# where to store documentation files
2008-08-22 03:53:45 +01:00
#
DOCSDIR=$(SHAREDIR)/doc/Yap
#
# 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:
2011-03-30 14:35:10 +01:00
# -DYAPOR_COPY: or-parallelism with environment copying, in Muse style.
2011-03-30 15:32:59 +01:00
# -DYAPOR_SBA: or-parallelism with sparse binding arrays.
2011-03-30 16:39:09 +01:00
# -DYAPOR_COW: or-parallelism with copy-on-write.
# -DTABLING: support for tabling
#
#
# check also optimisation options in INSTALL file.
#
YAP_EXTRAS=@YAP_EXTRAS@
2009-10-23 09:09:16 +01:00
YAPSTARTUP=startup.yss
#
# Please do not add YAP_EXTRA flags here: if you do check the flags
# for c_interface.c
#
CC=@CC@
MPI_CC=@MPI_CC@
2014-01-24 19:59:42 +00:00
CPPFLAGS=@CPPFLAGS@ -I. -I$(srcdir)/H -I$(srcdir)/include -I$(srcdir)/os -I$(srcdir)/OPTYap -I$(srcdir)/BEAM
EXECUTABLE_CFLAGS= @CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
CFLAGS= @YAPLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
2014-02-16 12:57:50 +00:00
C_INTERF_FLAGS= @YAPLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS) -Iinclude
C_PARSER_FLAGS= @YAPLIB_CFLAGS@ $(YAP_EXTRAS) $(DEFS) $(CPPFLAGS)
#
#
# You shouldn't need to change what follows.
#
2009-10-23 09:09:16 +01:00
ARCH=@ARCH@
AWK=@AWK@
CPP=@CPP@
DEFS=@DEFS@ -D_YAP_NOT_INSTALLED_=1
LIBS=@LIBS@
2013-10-29 12:43:31 +00:00
DLL_LIBS=@LIBS@ @EXTRA_LIBS_FOR_DLLS@
LDFLAGS=@LDFLAGS@
EXTRAYAPLIBS=@EXTRAYAPLIBS@
LN_S=@LN_S@
M4=@M4@
GCC=@GCC@
INSTALL=@INSTALL@
INSTALL_DATA=@INSTALL_DATA@
INSTALL_INFO=@INSTALL_INFO@
INSTALL_PROGRAM=@INSTALL_PROGRAM@
2014-02-16 12:57:50 +00:00
M4GENHDRS=@M4GENHDRS@
M4GENABSMI=@M4GENABSMI@
INDENT=@INDENT@
SHELL=@SHELL@
RANLIB=@RANLIB@
AR=@AR@
srcdir=@srcdir@
abs_top_builddir=@abs_top_builddir@
SO=@SO@
MAKEINFO=makeinfo
TEXI2DVI=texi2dvi
TEXI2HTML=texi2html
TEXI2PDF=texi2pdf
2009-10-23 09:09:16 +01:00
YAPLIB=@YAPLIB@
2010-12-29 15:29:42 +00:00
SONAMEFLAG=@SONAMEFLAG@
2014-02-16 12:57:50 +00:00
VPATH=@srcdir@
CWD=$(PWD)
#
2014-02-16 12:57:50 +00:00
VERSION=@YAP_VERSION@
DOC_VERSION=@DOC_VERSION@
MYDDAS_VERSION=@MYDDAS_VERSION@
#
INTERFACE_HEADERS = \
$(IOLIB_HEADERS) \
2014-02-16 12:57:50 +00:00
include/c_interface.h \
include/clause_list.h \
include/dswiatoms.h \
include/udi.h \
include/yap_structs.h \
include/YapInterface.h \
include/SWI-Prolog.h \
include/YapError.h \
H/TermExt.h \
H/YapTags.h \
H/Tags_32bits.h \
H/Tags_32Ops.h \
H/Tags_32LowTag.h \
H/Tags_64bits.h \
H/Tags_24bits.h \
H/YapCompoundTerm.h \
include/YapRegs.h \
H/YapTerm.h \
library/dialect/bprolog/fli/bprolog.h \
os/pl-thread.h \
os/SWI-Stream.h
IOLIB_HEADERS=os/pl-buffer.h \
os/pl-ctype.h \
H/pl-codelist.h \
os/pl-dtoa.h \
os/dtoa.c \
H/pl-incl.h \
H/pl-global.h \
os/pl-option.h \
os/pl-os.h \
os/pl-privitf.h \
os/pl-table.h \
os/pl-text.h \
os/pl-utf8.h \
H/pl-yap.h @WINDOWS@ os/windows/dirent.h os/windows/utf8.h os/windows/utf8.c os/windows/uxnt.h os/windows/popen.c
HEADERS = \
2014-02-16 12:57:50 +00:00
H/Atoms.h \
H/sshift.h \
H/Yap.h \
H/Yatom.h \
H/YapHeap.h \
H/Regs.h \
H/Yapproto.h \
H/absmi.h \
H/alloc.h \
H/amidefs.h \
H/amiops.h \
H/arrays.h \
H/arith2.h \
H/attvar.h \
H/clause.h \
H/compile.h \
H/corout.h \
H/dlmalloc.h \
H/dglobals.h \
H/dlocals.h \
H/dhstruct.h \
H/eval.h \
H/heapgc.h \
H/hglobals.h \
H/hlocals.h \
H/hstruct.h \
H/iglobals.h \
H/ihstruct.h \
H/ilocals.h \
H/index.h \
H/inline-only.h \
H/iopreds.h \
H/iswiatoms.h \
H/qly.h \
H/rclause.h \
H/rglobals.h \
H/rlocals.h \
H/rheap.h \
H/rhstruct.h \
H/threads.h \
H/tracer.h \
H/trim_trail.h \
H/yapio.h \
H/YapText.h \
H/cut_c.h \
H/iatoms.h H/ratoms.h H/tatoms.h \
BEAM/eam.h BEAM/eamamasm.h \
OPTYap/opt.config.h \
OPTYap/opt.proto.h OPTYap/opt.structs.h \
OPTYap/opt.macros.h OPTYap/or.macros.h \
OPTYap/or.sba_amiops.h OPTYap/or.sba_unify.h \
OPTYap/tab.structs.h OPTYap/locks_x86.h \
OPTYap/locks_sparc.h OPTYap/locks_mips.h \
OPTYap/locks_mips_funcs.h OPTYap/locks_alpha.h \
OPTYap/locks_alpha_funcs.h \
OPTYap/locks_pthread.h \
library/dialect/swi/fli/swi.h
IOLIB_SOURCES=os/pl-buffer.c os/pl-ctype.c \
os/pl-codelist.c \
os/pl-dtoa.c \
os/pl-error.c \
os/pl-file.c \
os/pl-files.c \
os/pl-fmt.c \
os/pl-locale.h \
os/pl-glob.c \
os/pl-option.c \
os/pl-os.c \
os/pl-prologflag.c \
os/pl-privitf.c \
os/pl-read.c \
os/pl-rl.c \
os/pl-stream.c os/pl-string.c \
os/pl-table.c \
os/pl-tai.c \
os/pl-text.c \
os/pl-version.c \
os/pl-write.c \
C/pl-yap.c @WINDOWS@os/windows/uxnt.c
C_SOURCES= \
$(IOLIB_SOURCES) \
2014-02-16 12:57:50 +00:00
C/absmi.c C/adtdefs.c \
C/agc.c C/alloc.c \
C/amasm.c C/analyst.c \
C/arith0.c C/arith1.c C/arith2.c \
C/atomic.c \
C/arrays.c \
C/attvar.c C/bb.c \
C/bignum.c \
C/c_interface.c C/cdmgr.c C/cmppreds.c \
C/clause_list.c \
C/compiler.c C/computils.c \
C/corout.c C/dbase.c C/dlmalloc.c \
C/errors.c \
C/eval.c C/exec.c \
C/exo.c \
C/exo_udi.c \
C/globals.c C/gmp_support.c \
C/gprof.c C/grow.c \
C/heapgc.c C/index.c \
C/init.c C/inlines.c \
C/iopreds.c C/depth_bound.c \
C/load_foreign.c \
C/load_dl.c C/load_dld.c C/load_none.c \
C/load_aout.c C/load_aix.c C/load_dll.c \
C/load_shl.c C/load_dyld.c \
C/mavar.c C/modules.c C/other.c \
C/parser.c \
C/qlyr.c \
C/qlyw.c \
C/range.c \
C/save.c C/scanner.c C/signals.c \
C/sort.c C/stdpreds.c C/sysbits.c \
C/text.c \
C/threads.c \
C/tracer.c C/unify.c C/userpreds.c \
C/udi.c \
C/utilpreds.c C/write.c console/yap.c \
C/yap-args.c \
C/ypstdio.c \
BEAM/eam_am.c BEAM/eam_showcode.c \
BEAM/eamindex.c BEAM/eamamasm.c \
BEAM/eam_gc.c BEAM/eam_split.c \
OPTYap/or.memory.c OPTYap/opt.init.c \
OPTYap/opt.preds.c OPTYap/or.copy_engine.c \
OPTYap/or.cow_engine.c OPTYap/or.sba_engine.c \
OPTYap/or.thread_engine.c \
OPTYap/or.scheduler.c OPTYap/or.cut.c \
OPTYap/tab.tries.c OPTYap/tab.completion.c \
# library/mpi/mpi.c library/mpi/mpe.c \
# library/lammpi/yap_mpi.c library/lammpi/hash.c library/lammpi/prologterms2c.c \
C/cut_c.c \
library/dialect/swi/fli/swi.c \
library/dialect/swi/fli/blobs.c
2011-02-03 11:23:12 +00:00
PLCONS_SOURCES = \
2014-02-16 12:57:50 +00:00
console/LGPL/pl-nt.c \
console/LGPL/pl-ntcon.c \
console/LGPL/pl-ntconsole.c \
console/LGPL/pl-ntmain.c
2011-02-03 11:23:12 +00:00
PL_SOURCES= \
2014-02-16 12:57:50 +00:00
pl/arith.yap \
pl/arrays.yap \
pl/attributes.yap \
pl/boot.yap \
pl/callcount.yap\
pl/checker.yap pl/chtypes.yap \
pl/consult.yap \
pl/control.yap \
pl/corout.yap pl/debug.yap \
pl/dbload.yap \
pl/depth_bound.yap \
pl/dialect.yap \
pl/directives.yap \
pl/eam.yap \
pl/eval.yap \
pl/errors.yap \
pl/flags.yap \
pl/grammar.yap \
pl/ground.yap \
pl/hacks.yap \
pl/init.yap \
pl/listing.yap \
pl/lists.yap \
pl/messages.yap \
pl/load_foreign.yap \
pl/modules.yap pl/preds.yap \
pl/profile.yap \
pl/protect.yap \
pl/qly.yap \
pl/save.yap \
pl/setof.yap \
pl/signals.yap \
pl/sort.yap \
pl/statistics.yap \
pl/strict_iso.yap \
pl/tabling.yap pl/threads.yap \
pl/udi.yap \
pl/utils.yap \
pl/history.pl \
pl/swi.yap \
pl/yapor.yap pl/yio.yap
YAPDOCS=docs/yap.tex docs/chr.tex \
docs/clpr.tex docs/swi.tex
IOLIB_OBJECTS=pl-buffer.o pl-codelist.o pl-ctype.o pl-dtoa.o pl-error.o \
pl-file.o pl-files.o pl-fmt.o \
2013-11-15 01:10:25 +00:00
pl-glob.o pl-locale.o pl-option.o \
2011-03-21 17:07:58 +00:00
pl-nt.o \
pl-os.o pl-privitf.o \
2011-03-26 15:17:17 +00:00
pl-prologflag.o \
2011-02-15 23:45:47 +00:00
pl-read.o \
pl-rl.o \
pl-stream.o pl-string.o pl-table.o \
2011-03-09 13:05:03 +00:00
pl-tai.o pl-text.o pl-utf8.o \
pl-version.o pl-write.o \
2014-02-10 23:31:33 +00:00
pl-yap.o @WINDOWS@ uxnt.o
ENGINE_OBJECTS = \
agc.o absmi.o adtdefs.o alloc.o amasm.o analyst.o arrays.o \
2013-12-06 23:26:28 +00:00
arith0.o arith1.o arith2.o atomic.o attvar.o \
bignum.o bb.o \
cdmgr.o cmppreds.o compiler.o computils.o \
corout.o cut_c.o dbase.o dlmalloc.o errors.o eval.o \
2013-04-17 02:04:53 +01:00
exec.o exo.o exo_udi.o globals.o gmp_support.o gprof.o grow.o \
heapgc.o index.o init.o inlines.o \
iopreds.o depth_bound.o mavar.o \
2014-01-24 19:59:42 +00:00
modules.o other.o \
2012-10-23 14:55:17 +01:00
parser.o qlyr.o qlyw.o range.o \
2013-12-06 23:26:28 +00:00
save.o scanner.o signals.o text.o sort.o stdpreds.o \
sysbits.o threads.o tracer.o \
2012-12-17 20:23:03 +00:00
udi.o\
unify.o userpreds.o utilpreds.o \
2012-06-22 09:56:01 +01:00
yap-args.o write.o \
2013-10-29 16:17:16 +00:00
blobs.o swi.o ypstdio.o $(IOLIB_OBJECTS)
2011-03-09 13:05:03 +00:00
LIBTAI_OBJECTS = \
tai_add.o tai_now.o tai_pack.o \
tai_sub.o tai_unpack.o taia_add.o taia_approx.o \
taia_fmtfrac.o taia_frac.o taia_half.o taia_less.o \
taia_now.o taia_pack.o taia_sub.o taia_tai.o taia_unpack.o \
caldate_fmt.o caldate_scan.o caldate_fmjd.o caldate_mjd.o \
caldate_norm.o caldate_ster.o leapsecs_read.o \
leapsecs_init.o leapsecs_add.o leapsecs_sub.o caltime_fmt.o \
caltime_scan.o caltime_tai.o caltime_utc.o
C_INTERFACE_OBJECTS = \
load_foreign.o load_dl.o load_dld.o load_dyld.o \
load_none.o load_aout.o load_aix.o load_dll.o load_shl.o \
c_interface.o clause_list.o
OR_OBJECTS = \
2011-06-02 17:05:58 +01:00
or.memory.o opt.init.o opt.preds.o \
2011-03-31 14:50:47 +01:00
or.copy_engine.o or.cow_engine.o or.sba_engine.o or.thread_engine.o \
2010-01-14 15:58:19 +00:00
or.scheduler.o or.cut.o \
tab.tries.o tab.completion.o
BEAM_OBJECTS = \
eamamasm.o eam_showcode.o eamindex.o eam_am.o
STATIC_OBJECTS = \
@STATIC_MODE@sys.o yap_random.o regexp.o @NO_BUILTIN_REGEXP@ regcomp.o regerror.o regfree.o regexec.o
LIB_OBJECTS = $(ENGINE_OBJECTS) $(C_INTERFACE_OBJECTS) $(OR_OBJECTS) $(BEAM_OBJECTS) $(STATIC_OBJECTS) $(LIBTAI_OBJECTS)
OBJECTS = yap.o $(LIB_OBJECTS)
2011-02-03 11:23:12 +00:00
PLCONS_OBJECTS = \
pl-ntcon.o \
pl-ntconsole.o \
pl-ntmain.o
2014-02-16 12:57:50 +00:00
all: startup.yss @WINDOWS@ yap-win@EXEC_SUFFIX@
2009-10-23 09:09:16 +01:00
2014-02-16 12:57:50 +00:00
Makefile: Makefile.in
H/Yap.h: config.h YapTermConfig.h \
H/YapTags.h \
H/YapCompoundTerm.h
2014-02-10 23:31:33 +00:00
$(OBJECTS): config.h
2014-02-16 12:57:50 +00:00
yap.o: console/yap.c config.h
$(CC) -c $(CFLAGS) -I$(srcdir)/include $< -o $@
2014-02-10 23:31:33 +00:00
#special rule for this one: we cannot use -fomit-frame-pointer because this will
# interface with the outside world.
2014-02-16 12:57:50 +00:00
c_interface.o: C/c_interface.c include/c_interface.h config.h
$(CC) $(C_INTERF_FLAGS) -c $< -o c_interface.o
2014-02-16 12:57:50 +00:00
yap-argss.o: C/yap-args.c include/c_interface.h config.h
$(CC) $(C_INTERF_FLAGS) -c $< -o yap-args.o
2012-06-22 09:56:01 +01:00
2014-02-16 12:57:50 +00:00
clause_list.o: C/clause_list.c include/clause_list.h config.h
$(CC) $(C_INTERF_FLAGS) -c $< -o clause_list.o
2014-02-16 12:57:50 +00:00
udi.o: C/udi.c config.h
$(CC) -c $(C_INTERF_FLAGS) $< -o $@
2014-02-16 12:57:50 +00:00
%.o: C/%.c config.h
2014-02-10 23:31:33 +00:00
$(CC) -c $(CFLAGS) $< -o $@
2014-02-16 12:57:50 +00:00
%.o: OPTYap/%.c config.h
2014-02-10 23:31:33 +00:00
$(CC) -c $(CFLAGS) $< -o $@
2014-02-16 12:57:50 +00:00
%.o: BEAM/%.c config.h
2014-02-10 23:31:33 +00:00
$(CC) -c $(CFLAGS) $< -o $@
2014-02-16 12:57:50 +00:00
sys.o: library/system/sys.c config.h
$(CC) -c $(CFPLAGS) -I$(srcdir)/include $< -o $@
2014-02-16 12:57:50 +00:00
yap_random.o: library/random/yap_random.c config.h
$(CC) -c $(CFLAGS) -I$(srcdir)/include $< -o $@
2014-02-16 12:57:50 +00:00
%.o: library/regex/%.c @NO_BUILTIN_REGEXP@ library/regex/regex2.h library/regex/engine.c config.h
$(CC) -c $(CFLAGS) -I$(srcdir)/include -Ilibrary/regex $< -o $@
2014-02-16 12:57:50 +00:00
swi.o: library/dialect/swi/fli/swi.c library/dialect/swi/fli/swi.h include/SWI-Prolog.h os/SWI-Stream.h config.h
$(CC) -c $(CFLAGS) -I$(srcdir)/include -Ilibrary/dialect/swi/fli $< -o $@
2014-02-16 12:57:50 +00:00
blobs.o: library/dialect/swi/fli/blobs.c library/dialect/swi/fli/swi.h include/SWI-Prolog.h config.h
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir)/library/dialect/swi/fli $< -o $@
2014-02-16 12:57:50 +00:00
%.o: os/%.c config.h
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -Ios @EXTRA_INCLUDES_FOR_WIN32@ $< -o $@
2011-02-03 11:23:12 +00:00
2014-02-16 12:57:50 +00:00
pl-ntcon.o: console/LGPL/pl-ntcon.c config.h
$(CC) -c $(CFLAGS) -DPL_CONSOLE=1 -I$(srcdir)/include $< -o $@
2011-02-03 11:23:12 +00:00
2014-02-16 12:57:50 +00:00
pl-ntconsole.o: console/LGPL/pl-ntconsole.c config.h
$(CC) -municode -DUNICODE -D_UNICODE -c $(CFLAGS) -DPL_CONSOLE=1 -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $< -o $@
2011-02-03 11:23:12 +00:00
2014-02-16 12:57:50 +00:00
pl-ntmain.o: console/LGPL/pl-ntmain.c config.h
$(CC) -municode -DUNICODE -D_UNICODE -c $(CFLAGS) -DPL_CONSOLE=1 -I$(srcdir)/include -I$(srcdir) -I$(srcdir)/os @EXTRA_INCLUDES_FOR_WIN32@ $< -o $@
2011-02-03 11:23:12 +00:00
2014-02-16 12:57:50 +00:00
uxnt.o: os/windows/uxnt.c config.h
$(CC) -c $(CFLAGS) -I$(srcdir)/include -I$(srcdir) -Ios @EXTRA_INCLUDES_FOR_WIN32@ $< -o $@
2011-03-08 00:03:50 +00:00
# libtai rule
2014-02-16 12:57:50 +00:00
%.o : os/libtai/%.c config.h
$(CC) -c $(CFLAGS) $< -o $@
## CPP'ed files (for macro debugging)
2014-02-16 12:57:50 +00:00
%.i : C/%.c
$(CC) -E $< $(CFLAGS) > $@
2014-02-16 12:57:50 +00:00
absmi.i: C/absmi.c
$(CC) -E $(CFLAGS) $(ABSMI_FLAGS) C/absmi.c > $@
2014-02-16 12:57:50 +00:00
c_interface.i: C/c_interface.c include/c_interface.h
$(CC) -E $(C_INTERF_FLAGS) C/c_interface.c > $@
#
2014-02-16 12:57:50 +00:00
mycb: mycb.c
$(CC) $(CFLAGS) mycb.c -o mycb
2014-02-10 23:31:33 +00:00
INSTALLED_PACKAGES= \
2014-02-13 01:58:48 +00:00
library/matrix \
2014-02-10 23:31:33 +00:00
library/random \
library/regex \
library/rltree \
library/system \
library/tries \
2014-02-13 01:58:48 +00:00
packages/meld \
2014-02-10 23:31:33 +00:00
packages/ProbLog \
2014-02-13 01:58:48 +00:00
packages/xml \
2014-02-10 23:31:33 +00:00
packages/yap-lbfgs \
@PKG_BDDLIB@ \
@PKG_CLPBN@ \
@PKG_CUDA@ \
@PKG_CPLINT@ \
@PKG_GECODE@ \
@PKG_MATLAB@ \
@PKG_MINISAT@ \
@PKG_MPI@ \
@PKG_MYDDAS@ \
@PKG_PRISM@ \
@PKG_PYTHON@ \
@PKG_RAPTOR@ \
@PKG_CHR@ \
@PKG_CLIB@ \
@PKG_JPL@ \
@PKG_LIBARCHIVE@ \
@PKG_LTX2HTM@ \
@PKG_ODBC@ \
@PKG_PLDOC@ \
@PKG_PLUNIT@ \
@PKG_REAL@ \
@PKG_RDF@ \
@PKG_SEMWEB@ \
@PKG_SGML@ \
@PKG_WINCONSOLE@ \
@PKG_ZLIB@
PACKAGES= \
library \
swi/library \
swi/library/clp \
$(INSTALLED_PACKAGES)
all: startup.yss
2014-02-15 01:24:07 +00:00
for p in $(PACKAGES); do \
echo " ============== " $$p; \
if [ -r $$p/Makefile ]; then $(MAKE) -C $$p || exit 1; fi; \
done
2010-02-26 00:02:34 +00:00
startup.yss: yap@EXEC_SUFFIX@ $(PL_SOURCES)
-rm -f startup.yss
2014-01-22 18:12:58 +00:00
echo "bootstrap('$(srcdir)/pl/init.yap'). module(user). qsave_program('startup.yss')." | @PRE_INSTALL_ENV@ ./yap@EXEC_SUFFIX@ -b $(srcdir)/pl/boot.yap
yap@EXEC_SUFFIX@: $(HEADERS) yap.o @YAPLIB@
2014-01-22 18:12:58 +00:00
$(MPI_CC) $(EXECUTABLE_CFLAGS) $(LDFLAGS) -o yap@EXEC_SUFFIX@ yap.o @YAPLIB@ $(LIBS)
2012-06-08 12:55:23 +01:00
yap-win: yap-win@EXEC_SUFFIX@
2011-06-06 19:03:20 +01:00
2012-06-08 12:55:23 +01:00
yapwin: yap-win@EXEC_SUFFIX@
2011-10-22 00:19:48 +01:00
2012-06-08 12:55:23 +01:00
yap-win@EXEC_SUFFIX@: $(PLCONS_OBJECTS) $(HEADERS) @YAPLIB@
2013-03-05 21:50:38 +00:00
(cd swi/console; $(MAKE))
2014-01-22 18:12:58 +00:00
$(MPI_CC) -municode -DUNICODE -D_UNICODE $(EXECUTABLE_CFLAGS) $(LDFLAGS) -Wl,-subsystem,windows -o yap-win@EXEC_SUFFIX@ $(PLCONS_OBJECTS) plterm.dll @YAPLIB@ $(LIBS) @MPILDF@
2011-02-03 11:23:12 +00:00
2011-03-09 13:05:03 +00:00
libYap.a: $(LIB_OBJECTS)
-rm -f libYap.a
$(AR) rc libYap.a $(LIB_OBJECTS)
$(RANLIB) libYap.a
@DYNYAPLIB@: $(LIB_OBJECTS)
@YAPLIB_LD@ -o @YAPLIB@ $(LIB_OBJECTS) $(LIBS) $(LDFLAGS) $(SONAMEFLAG)
for p in $(EXTRAYAPLIBS); do \
$(LN_S) -f @DYNYAPLIB@ $$p; \
done
2014-02-10 23:31:33 +00:00
install: @INSTALL_COMMAND@
install_unix: startup.yss @YAPLIB@
mkdir -p $(DESTDIR)$(BINDIR)
mkdir -p $(DESTDIR)$(YAPLIBDIR)
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap
mkdir -p $(DESTDIR)$(SHAREDIR)/Yap/pl
2010-02-23 01:06:35 +00:00
mkdir -p $(DESTDIR)$(DOCSDIR)
2014-02-10 23:31:33 +00:00
mkdir -p $(DESTDIR)$(INCLUDEDIR)
mkdir -p $(DESTDIR)$(INCLUDEDIR)/src
$(INSTALL_PROGRAM) -m 755 yap@EXEC_SUFFIX@ $(DESTDIR)$(BINDIR)/yap
$(INSTALL_DATA) startup.yss $(DESTDIR)$(YAPLIBDIR)/startup.yss
$(INSTALL_DATA) -m 755 @YAPLIB@ $(DESTDIR)$(LIBDIR)
for p in $(EXTRAYAPLIBS); do \
2014-02-20 16:20:14 +00:00
$(LN_S) -f $(DESTDIR)$(LIBDIR)/@YAPLIB@ $(DESTDIR)$(LIBDIR)/$$p; \
done
2014-02-16 15:20:07 +00:00
$(INSTALL) $(srcdir)/Artistic $(DESTDIR)$(DOCSDIR)
$(INSTALL) $(srcdir)/README $(DESTDIR)$(DOCSDIR)
$(INSTALL) $(srcdir)/COPYING $(DESTDIR)$(DOCSDIR)
for f in $(PL_SOURCES); do $(INSTALL) $(srcdir)/$$f $(DESTDIR)$(SHAREDIR)/Yap/pl; done
for h in $(INTERFACE_HEADERS); do $(INSTALL) $(srcdir)/$$h $(DESTDIR)$(INCLUDEDIR); done
for h in $(HEADERS); do $(INSTALL) $(srcdir)/$$h $(DESTDIR)$(INCLUDEDIR)/src; done
2011-11-02 22:55:56 +00:00
$(INSTALL) config.h $(DESTDIR)$(INCLUDEDIR)/src/config.h
$(INSTALL) YapTermConfig.h $(DESTDIR)$(INCLUDEDIR)
2014-02-15 01:24:07 +00:00
for p in $(PACKAGES); do \
echo " ============== INSTALLING" $$p; \
if [ -r $$p/Makefile ]; then $(MAKE) -C $$p install || exit 1; fi; \
done
2014-02-10 23:31:33 +00:00
install_win32: startup.yss @WINDOWS@ yap-win@EXEC_SUFFIX@ install_unix
$(INSTALL_PROGRAM) -m 755 yap.dll $(DESTDIR)$(BINDIR)/yap.dll
2014-02-10 23:31:33 +00:00
@WINDOWS@ $(INSTALL_PROGRAM) -m 755 yap-win.exe $(DESTDIR)$(BINDIR)/yap-win.exe
@WINDOWS@ $(INSTALL_PROGRAM) -m 755 plterm.dll $(DESTDIR)$(BINDIR)/plterm.dll
install_library: @YAPLIB@
mkdir -p $(DESTDIR)$(INCLUDEDIR)
for h in $(HEADERS); do $(INSTALL) $$h $(DESTDIR)$(INCLUDEDIR); done
##########
2014-02-19 22:31:41 +00:00
FULL_PATH_C_SOURCES=$(addprefix $(srcdir)/, $(C_SOURCES) )
FULL_PATH_PL_SOURCES=$(addprefix $(srcdir)/, $(PL_SOURCES) )
FULL_PATH_HEADERS=$(addprefix $(srcdir)/, $(HEADERS) )
TAGS: $(C_SOURCES) $(PL_SOURCES) $(HEADERS)
2014-02-19 22:31:41 +00:00
etags $(FULL_PATH_C_SOURCES) $(FULL_PATH_PL_SOURCES) $(FULL_PATH_HEADERS)
for p in $(PACKAGES); do \
echo " ============== INSTALLING" $$p; \
if [ -r $$p/Makefile ]; then $(MAKE) -C $$p TAGS || exit 1; fi; \
done
depend: $(HEADERS) $(C_SOURCES)
-@if test "$(GCC)" = yes; then\
2014-02-19 22:31:41 +00:00
$(CC) -MM $(CFLAGS) -D__YAP_NOT_INSTALLED__=1 -I$(srcdir) -I$(srcdir)/include -I$(srcdir)/os $(FULL_PATH_C_SOURCES) >> Makefile;\
else\
2014-02-16 12:57:50 +00:00
makedepend -f - -- $(CFLAGS) -Iinclude -- $(C_SOURCES) |\
2009-04-23 03:22:04 +01:00
sed 's|.*/\([^:]*\):|\1:|' >> Makefile ;\
fi
2014-02-12 23:38:46 +00:00
clean: clean_docs clean_local
2014-02-10 23:31:33 +00:00
for f in $(PACKAGES); do ( cd $$f ; $(MAKE) clean ); done
2014-02-12 23:38:46 +00:00
clean_local:
rm -f *.o *~ *.BAK *.a
2014-02-13 01:58:48 +00:00
distclean: distclean_docs clean_local
2014-02-15 01:24:07 +00:00
for p in $(PACKAGES); do \
echo " ============== DISTCLEAN " $$p; \
if [ -r $$p/Makefile ]; then $(MAKE) -C $$p distclean || exit 1; fi; \
done
2014-02-12 23:38:46 +00:00
rm -f yap@EXEC_SUFFIX@ startup.yss libYap.* Makefile packages/Makefile.defs packages/Dialect.defs
dist:
.c.s:
$(CC) $(CFLAGS) -S $<
# use my own .def file.
libWYap.a: yap.dll
2014-02-16 12:57:50 +00:00
dlltool --def misc/yap.def \
--dllname yap.dll \
--output-lib libWYap.a
2011-10-22 00:19:48 +01:00
# 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) $(LDFLAGS)
install_info:
$(MAKE) info; \
$(INSTALL) yap.info* $(DESTDIR)$(INFODIR); \
if test -e $(DESTDIR)$(INFODIR)/emacs.bz2; then \
bzip2 --quiet --force $(DESTDIR)$(INFODIR)/yap.info*; \
else \
if test -e $(DESTDIR)$(INFODIR)/emacs.gz; then \
gzip --quiet --force $(DESTDIR)$(INFODIR)/yap.info*; \
fi \
fi; \
$(INSTALL_INFO) --quiet --section "Programming Languages" yap.info $(DESTDIR)$(INFODIR)/dir; \
2014-02-16 12:57:50 +00:00
cd LGPL/pillow/doc ; \
$(INSTALL) pillow_doc.info $(DESTDIR)$(INFODIR); \
if test -e $(DESTDIR)$(INFODIR)/emacs.bz2; then \
bzip2 --quiet --force $(DESTDIR)$(INFODIR)/pillow_doc.info; \
else \
if test -e $(DESTDIR)$(INFODIR)/emacs.gz; then \
gzip --quiet --force $(DESTDIR)$(INFODIR)/pillow_doc.info; \
fi \
fi; \
$(INSTALL_INFO) --quiet --section "Programming Languages" --entry="`cat pillow_doc.infoindex`" --info-dir=$(DESTDIR)$(INFODIR) pillow_doc.info
2008-08-22 03:53:45 +01:00
install_docs:
$(MAKE) pdf
$(MAKE) html
$(INSTALL_DATA) yap.html* $(DESTDIR)$(DOCSDIR)
$(INSTALL_DATA) yap.pdf $(DESTDIR)$(DOCSDIR)
2014-02-16 12:57:50 +00:00
$(INSTALL_DATA) README $(DESTDIR)$(DOCSDIR)
$(INSTALL_DATA) Artistic $(DESTDIR)$(DOCSDIR)
$(INSTALL_DATA) COPYING $(DESTDIR)$(DOCSDIR)
$(INSTALL_DATA) changes4.3.html $(DESTDIR)$(DOCSDIR)
$(INSTALL_DATA) changes-5.0.html $(DESTDIR)$(DOCSDIR)
$(INSTALL_DATA) changes-5.1.html $(DESTDIR)$(DOCSDIR)
$(INSTALL_DATA) changes-6.0.html $(DESTDIR)$(DOCSDIR)
2008-08-22 03:53:45 +01:00
info: yap.info
yap.info: $(YAPDOCS)
2014-02-16 12:57:50 +00:00
$(MAKEINFO) docs/yap.tex
html: yap.html
2014-02-16 12:57:50 +00:00
yap.html: docs/yap.tex
$(TEXI2HTML) docs/yap.tex
dvi: yap.dvi
yap.dvi: $(YAPDOCS)
2014-02-16 12:57:50 +00:00
$(TEXI2DVI) docs/yap.tex
ps: yap.ps
yap.ps: $(YAPDOCS)
2014-02-16 12:57:50 +00:00
dvips -o yap.ps docs/yap
pdf: yap.pdf
yap.pdf: $(YAPDOCS)
2014-02-16 12:57:50 +00:00
$(TEXI2PDF) 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
2014-02-13 01:58:48 +00:00
distclean_docs: clean_docs
rm -f yap.ps yap.html yap_toc.html yap.pdf yap.info*
installcheck:
2014-02-15 01:24:07 +00:00
(cd packages/cplint; $(MAKE) installcheck)
2010-03-18 14:16:28 +00:00
# DO NOT DELETE THIS LINE -- make depend depends on it.