~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to fpcdocs/crtex/Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

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
 
 
9
ifndef FPC
 
10
ifdef PP
 
11
FPC=$(PP)
 
12
endif
 
13
endif
 
14
ifndef FPC
 
15
FPCPROG:=$(strip $(wildcard $(addsuffix /fpc$(SRCEXEEXT),$(SEARCHPATH))))
 
16
ifneq ($(FPCPROG),)
 
17
FPCPROG:=$(firstword $(FPCPROG))
 
18
FPC:=$(shell $(FPCPROG) -PB)
 
19
ifneq ($(findstring Error,$(FPC)),)
 
20
override FPC=ppc386
 
21
endif
 
22
else
 
23
override FPC=ppc386
 
24
endif
 
25
endif
 
26
override FPC:=$(subst $(SRCEXEEXT),,$(FPC))
 
27
override FPC:=$(subst \,/,$(FPC))$(SRCEXEEXT)
 
28
 
 
29
 
 
30
# Unit directory
 
31
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
 
32
 
 
33
 
 
34
# Any options you wish to pass.
 
35
PPOPTS=
 
36
 
 
37
# Script to convert the programs to LaTeX examples which can be included.
 
38
PP2TEX=../pp2tex
 
39
 
 
40
# Script to collect all examples in 1 file.
 
41
MAKETEX=make1tex
 
42
 
 
43
#######################################################################
 
44
# No need to edit after this line.
 
45
#######################################################################
 
46
 
 
47
ifdef UNITDIR
 
48
PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
 
49
endif
 
50
 
 
51
.SUFFIXES: .pp .tex
 
52
 
 
53
.PHONY: all tex clean
 
54
 
 
55
OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 ex12 ex13 ex14 \
 
56
        ex15 ex16
 
57
 
 
58
TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
 
59
 
 
60
all : $(OBJECTS)
 
61
 
 
62
tex : $(TEXOBJECTS)
 
63
 
 
64
onetex : tex
 
65
        $(MAKETEX) $(TEXOBJECTS)
 
66
 
 
67
clean : 
 
68
        rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
 
69
        rm -f *.ow *.sw *.exe *.dll
 
70
 
 
71
$(OBJECTS): %: %.pp
 
72
        $(FPC) $(PPOPTS) $*
 
73
 
 
74
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
 
75
        $(PP2TEX) $*