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

« back to all changes in this revision

Viewing changes to fpcdocs/mmouseex/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
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
 
51
 
 
52
OBJECTS=mouse1 mouse2 mouse3 mouse4 mouse5 mouse6 mouse7 mouse8 mouse9 \
 
53
        mouse10
 
54
 
 
55
TEXOBJECTS=$(addsuffix .tex, $(OBJECTS))
 
56
 
 
57
all : $(OBJECTS)
 
58
 
 
59
tex : $(TEXOBJECTS)
 
60
 
 
61
onetex : tex
 
62
        $(MAKETEX) $(TEXOBJECTS)
 
63
 
 
64
clean : 
 
65
        rm -f *.o *.s $(OBJECTS) $(TEXOBJECTS)
 
66
        rm -f *.ow *.sw *.exe *.dll
 
67
 
 
68
$(OBJECTS): %: %.pp
 
69
        $(FPC) $(PPOPTS) $*
 
70
 
 
71
$(TEXOBJECTS): %.tex: %.pp head.tex foot.tex
 
72
        $(PP2TEX) $*