File: Dialect.defs.in

package info (click to toggle)
swi-prolog 7.2.3%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 84,180 kB
  • ctags: 45,684
  • sloc: ansic: 330,358; perl: 268,104; sh: 6,795; java: 4,904; makefile: 4,561; cpp: 4,153; ruby: 1,594; yacc: 843; xml: 82; sed: 12; sql: 6
file content (71 lines) | stat: -rw-r--r-- 2,058 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
################################################################
# 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@
SO_PATH=@SO_PATH@
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