~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcdocs/mathex/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#######################################################################
 
2
#
 
3
# Makefile to compile all examples and convert them to LaTeX
 
4
 
5
#######################################################################
 
6
 
 
7
# Compiler
 
8
ifndef FPC
 
9
ifdef PP
 
10
FPC=$(PP)
 
11
endif
 
12
endif
 
13
ifndef FPC
 
14
FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
 
15
ifneq ($(FPCPROG),)
 
16
FPCPROG:=$(firstword $(FPCPROG))
 
17
FPC:=$(shell $(FPCPROG) -PB)
 
18
ifneq ($(findstring Error,$(FPC)),)
 
19
override FPC=ppc386
 
20
endif
 
21
else
 
22
override FPC=ppc386
 
23
endif
 
24
endif
 
25
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
 
26
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
 
27
# Unit directory
 
28
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
 
29
 
 
30
 
 
31
# Any options you wish to pass.
 
32
PPOPTS=
 
33
 
 
34
# Script to convert the programs to LaTeX examples which can be included.
 
35
PP2TEX=../pp2tex
 
36
 
 
37
# Script to collect all examples in 1 file.
 
38
MAKETEX=make1tex
 
39
 
 
40
#######################################################################
 
41
# No need to edit after this line.
 
42
#######################################################################
 
43
 
 
44
ifdef UNITDIR
 
45
PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
 
46
endif
 
47
 
 
48
.SUFFIXES: .pp .tex
 
49
 
 
50
.PHONY: all tex clean execute
 
51
 
 
52
OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 \
 
53
        ex11 ex12 ex13 ex14 ex15 ex16 ex17 ex18 ex19 ex20 \
 
54
        ex21 ex22 ex23 ex24 ex25 ex26 ex27 ex28 ex29 ex30 \
 
55
        ex31 ex32 ex33 ex34 ex35 ex36 ex37 ex38 ex39 ex40 \
 
56
        ex41 ex42 ex43 ex44 ex45 ex46 ex47 ex48 ex49 ex50
 
57
 
 
58
TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
 
59
 
 
60
# This is not the same list as objects, since some of the
 
61
# tests are interactive.
 
62
TOTEST=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 \
 
63
        ex11 ex12 ex13 ex14 ex15 ex16 ex17 ex18 ex19 ex20 \
 
64
        ex21 ex22 ex23 ex24 ex25 ex26 ex27 ex28 ex29 ex30 \
 
65
        ex31 ex32 ex33 ex34 ex35 ex36 ex37 ex38 ex39 ex40 \
 
66
        ex41 ex42 ex43 ex44 ex45 ex46 ex47 ex48 ex49 ex50
 
67
LOGFILE=$(addsuffix .log, $(TOTEST))
 
68
 
 
69
 
 
70
all : $(OBJECTS)
 
71
 
 
72
tex : $(TEXOBJECTS)
 
73
 
 
74
execute: $(LOGFILE)
 
75
 
 
76
 
 
77
onetex : tex
 
78
        $(MAKETEX) $(TEXOBJECTS)
 
79
 
 
80
clean : 
 
81
        -rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
 
82
        -rm -f *.ow *.sw *.exe *.dll *.log *.tmp
 
83
 
 
84
$(OBJECTS): %: %.pp
 
85
        $(FPC) $(PPOPTS) $*
 
86
 
 
87
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
 
88
        $(PP2TEX) $*
 
89
 
 
90
$(LOGFILE): %.log: %.exe 
 
91
        $* > $*.log