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

« back to all changes in this revision

Viewing changes to fpcdocs/mouseex/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
 
 
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
# Unit directory
 
30
# UNITDIR=/usr/lib/ppc/0.99.0/linuxunits
 
31
 
 
32
 
 
33
# Any options you wish to pass.
 
34
PPOPTS=
 
35
 
 
36
# Script to convert the programs to LaTeX examples which can be included.
 
37
PP2TEX=../pp2tex
 
38
 
 
39
# Script to collect all examples in 1 file.
 
40
MAKETEX=make1tex
 
41
 
 
42
#######################################################################
 
43
# No need to edit after this line.
 
44
#######################################################################
 
45
 
 
46
ifdef UNITDIR
 
47
PPOPTS:=$(PPOPTS) -Up$(UNITDIR);
 
48
endif
 
49
 
 
50
.SUFFIXES: .pp .tex
 
51
 
 
52
.PHONY: all tex clean
 
53
 
 
54
OBJECTS=ex1 ex2 ex3 ex4 ex5 ex6 ex7 logmouse
 
55
# mouse8 mouse9 \
 
56
#        mouse10
 
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) $*