Codebase list swi-prolog / upstream/6.4.1 packages / Dialect.defs.in
upstream/6.4.1

Tree @upstream/6.4.1 (Download .tar.gz)

Dialect.defs.in @upstream/6.4.1raw · history · blame

################################################################
# 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, ...
#   * LIBPLSO
#   Library to include for linking shared objects to the Prolog kernel.
#   Added after the user files.
#   * LIBPLEMBED
#   Library containing the Prolog kernel.  Needed for embedding Prolog.

PL=../swipl.sh
PLBASE=@PLBASE@
PLARCH=@PLARCH@
PLINCL=$(PLBASE)/include
PLLIBDIR=$(PLBASE)/library
XPCEBASE=$(PLBASE)/xpce
SOLIBDIR=$(PLBASE)/@SOLIB@/$(INSTALL_PLARCH)
PKGDOCDIR=$(PLBASE)/doc/packages
PKGEXDIR=$(PLBASE)/doc/packages/examples
INSTALL_PLARCH=@INSTALL_PLARCH@
TXTEXT=@TXTEXT@

CC=@CC@
CXX=@CXX@
LD=$(CC)
AR=@AR@
RANLIB=@RANLIB@
SO=@SO_EXT@
COFLAGS=@COFLAGS@
CWFLAGS=@CWFLAGS@
CMFLAGS=@CMFLAGS@
CIFLAGS=@CIFLAGS@ -I@abs_top_builddir@/../include
DEFS=@DEFS@ -D__SWI_PROLOG__
CFLAGS=$(COFLAGS) $(CWFLAGS) $(CMFLAGS) $(CIFLAGS) $(PKGCFLAGS) $(DEFS)
CXXFLAGS=$(CFLAGS) -I../cpp

LIBPLEMBED=@USEPLLIB@
ifeq (@EXEFORMAT@,ELF)
LIBPLSO=
else
LIBPLSO=$(LIBPLEMBED)
endif

PLLDFLAGS=@LDFLAGS@ -L@abs_top_builddir@/../lib/$(PLARCH)
LDSOFLAGS=@SO_LDFLAGS@ $(PLLDFLAGS) $(PKGLDFLAGS)
LDFLAGS=$(PLLDFLAGS) $(PKGLDFLAGS)

MKINDEX=$(PL) -f none -g make -t halt
MKPKGINDEX=$(PL) -C "$(DESTDIR)$(PLBASE)/library/$(PACKAGE)" -f none -F none -g 'make_library_index(.),halt' -t 'halt(1)'

PUBLICPL=swipl
PLTOTEX=$(PUBLICPL) -q -f pltotex.pl -g pltotex --

.txt.tex:
	$(PUBLICPL) -q -f txttotex.pl -g txttotex,halt -t 'halt(1)' -- $*.txt