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

« back to all changes in this revision

Viewing changes to fpcdocs/olinuxex/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
PP=ppc386
 
9
 
 
10
# Unit directory
 
11
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
 
12
 
 
13
 
 
14
# Any options you wish to pass.
 
15
PPOPTS=
 
16
 
 
17
# Script to convert the programs to LaTeX examples which can be included.
 
18
PP2TEX=../pp2tex
 
19
 
 
20
# Script to collect all examples in 1 file.
 
21
MAKETEX=make1tex
 
22
 
 
23
#######################################################################
 
24
# No need to edit after this line.
 
25
#######################################################################
 
26
 
 
27
ifdef UNITDIR
 
28
PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
 
29
endif
 
30
 
 
31
.SUFFIXES: .pp .tex
 
32
 
 
33
.PHONY: all tex clean
 
34
 
 
35
OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 ex8 ex9 ex10 ex11 ex12 ex13 ex14 \
 
36
        ex15 ex16 ex17 ex18 ex19 ex20 ex21 ex22 ex23 ex24 ex25 ex26 ex27 \
 
37
        ex28 ex29 ex30 ex31 ex32 ex33 ex34 ex35 ex36 ex37 ex38 ex39 ex40 \
 
38
        ex41 ex42 ex43 ex44 ex45 ex46 ex47 ex48 ex49 ex51 ex52 ex53 ex54 ex55 \
 
39
        ex56 ex57 ex58 ex59 ex60 ex61 ex62 ex63  ex64 ex65 ex66 \
 
40
        ex67 ex68 ex69 ex70 ex71 ex72
 
41
# ex73 ex74 ex75 ex76 ex77
 
42
 
 
43
TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
 
44
 
 
45
all : $(OBJECTS)
 
46
 
 
47
tex : $(TEXOBJECTS)
 
48
 
 
49
onetex : tex
 
50
        $(MAKETEX) $(TEXOBJECTS)
 
51
 
 
52
clean : 
 
53
        rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
 
54
        rm -f *.ow *.sw *.exe *.dll
 
55
 
 
56
$(OBJECTS): %: %.pp
 
57
        $(PP) $(PPOPTS) $*
 
58
 
 
59
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
 
60
        $(PP2TEX) $*