2011-02-09 13:10:20 +00:00
|
|
|
################################################################
|
|
|
|
# Shared makefile for packages.
|
|
|
|
################################################################
|
|
|
|
|
|
|
|
# This file must provide the following macros:
|
|
|
|
#
|
|
|
|
# * PLLIBDIR
|
|
|
|
# Base directory holding the Prolog library. Some packages
|
|
|
|
# may create subdirectories.
|
|
|
|
# * SOLIBDIR
|
|
|
|
# Directory holding shared objects/DLLs for the target architecture.
|
|
|
|
# * PKGDOCDIR
|
|
|
|
# Directory for storing the documentation. Packages typically
|
|
|
|
# create subdirectories
|
|
|
|
# * PKGEXDIR
|
|
|
|
# Directory where a package stores example code. Packages typically
|
|
|
|
# create subdirectories
|
|
|
|
# * SO
|
|
|
|
# Extension used for shared objects. E.g., .so, .dylib, .dll, ...
|
|
|
|
|
|
|
|
PLBASE=@prefix@
|
|
|
|
PLARCH=@ARCH@
|
|
|
|
PLINCL=$(PLBASE)/include
|
|
|
|
PLLIBDIR=$(PLBASE)/share/Yap
|
2012-08-22 16:07:33 +01:00
|
|
|
SOLIBDIR=@libdir@/Yap
|
2011-09-05 01:28:34 +01:00
|
|
|
PKGDOCDIR=$(PLBASE)/share/doc/Yap/packages
|
2012-02-13 09:41:22 +00:00
|
|
|
PKGEXDIR=$(PLBASE)/share/doc/Yap/packages/examples
|
|
|
|
XPCEBASE=$(PLBASE)/xpce
|
2011-02-09 13:10:20 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# YAP internal stuff
|
|
|
|
#
|
|
|
|
ROOTDIR = $(prefix)
|
|
|
|
EROOTDIR = @exec_prefix@
|
|
|
|
BINDIR = $(EROOTDIR)/bin
|
|
|
|
LIBDIR=@libdir@
|
|
|
|
YAPLIBDIR=@libdir@/Yap
|
|
|
|
SHAREDIR=$(ROOTDIR)/share/Yap
|
|
|
|
abs_top_builddir=@abs_top_builddir@
|
2013-11-11 10:34:55 +00:00
|
|
|
abs_top_srcdir=@abs_top_srcdir@
|
2014-01-22 18:13:43 +00:00
|
|
|
PL=@PRE_INSTALL_ENV@ YAPSHAREDIR=$(abs_top_srcdir)/library:$(abs_top_srcdir)/swi/library:$(abs_top_srcdir)/packages/clib $(abs_top_builddir)/yap@EXEC_SUFFIX@ $(abs_top_builddir)/startup.yss
|
2011-02-09 13:10:20 +00:00
|
|
|
|
|
|
|
CC=@CC@
|
|
|
|
LD=@SHLIB_LD@
|
2011-09-04 23:01:41 +01:00
|
|
|
SO=@SO@
|
2014-10-25 16:46:13 +01:00
|
|
|
COFLAGS=$(YAP_EXTRAS) $(DEFS) -D_YAP_NOT_INSTALLED_=1 -I$(srcdir) -I../.. -I$(srcdir)/../../include -I$(srcdir)/../../os $(CPPFLAGS)
|
2011-02-09 13:10:20 +00:00
|
|
|
CWFLAGS=
|
|
|
|
CMFLAGS=@SHLIB_CFLAGS@
|
|
|
|
CIFLAGS=
|
|
|
|
CFLAGS=$(COFLAGS) $(CWFLAGS) $(CMFLAGS) $(CIFLAGS) $(PKGCFLAGS) @DEFS@
|
2014-05-06 09:55:40 +01:00
|
|
|
CXXFLAGS= $(COFLAGS) $(CWFLAGS) @SHLIB_CXXFLAGS@ $(CIFLAGS) $(PKGCFLAGS) @DEFS@
|
2011-02-09 13:10:20 +00:00
|
|
|
|
2013-10-30 12:57:46 +00:00
|
|
|
LDSOFLAGS=@LDFLAGS@ $(PKGLDFLAGS)
|
2011-02-09 13:10:20 +00:00
|
|
|
LDFLAGS=$(PKGLDFLAGS)
|
|
|
|
|
2012-09-26 14:49:21 +01:00
|
|
|
LIBPLEMBED=@EXTRA_LIBS_FOR_SWIDLLS@
|
2012-09-26 23:10:22 +01:00
|
|
|
LIBPLSO=@EXTRA_LIBS_FOR_SWIDLLS@
|
2012-09-21 13:07:10 +01:00
|
|
|
|
2011-12-02 23:09:04 +00:00
|
|
|
MKINDEX=(cd $(srcdir) ; $(PL) -f none -g make -t halt)
|
2011-02-09 13:10:20 +00:00
|
|
|
|
2011-06-12 22:26:04 +01:00
|
|
|
.txt.tex:
|
2012-02-13 09:41:22 +00:00
|
|
|
$(PUBLICPL) -L $(SHAREDIR)/doc_latex -g "doc_latex('$*.txt','$*.tex',[stand_alone(false)]),halt" -t "halt(1)"
|
2011-06-12 22:26:04 +01:00
|
|
|
|
|
|
|
|
2011-06-13 01:45:29 +01:00
|
|
|
PUBLICPL=$(PL)
|
2012-02-13 09:41:22 +00:00
|
|
|
PLTOTEX=$(PUBLICPL) -q -l $(srcdir)/pltotex -g pltotex --
|
2011-02-09 13:10:20 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# find out how to generate .o files from $(scrdir)
|
|
|
|
#
|
|
|
|
%.o: $(srcdir)/%.c
|
|
|
|
$(CC) -c $(CFLAGS) $< -o $@
|
|
|
|
|
2014-02-13 01:58:48 +00:00
|
|
|
|
|
|
|
install-examples::
|