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

« back to all changes in this revision

Viewing changes to fpcsrc/rtl/embedded/Makefile.fpc

  • 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
#   Makefile.fpc for Free Pascal Embedded RTL
 
3
#
 
4
 
 
5
[package]
 
6
main=rtl
 
7
 
 
8
[target]
 
9
loaders=
 
10
units=$(SYSTEMUNIT) # objpas macpas strings \
 
11
#      dos \
 
12
#       sysutils \
 
13
#       classes math typinfo varutils fmtbcd \
 
14
#       charset ucomplex getopts matrix \
 
15
#       variants types rtlconsts sysconst dateutil
 
16
 
 
17
#rsts=math rtlconsts varutils typinfo variants classes sysconst dateutil
 
18
 
 
19
[require]
 
20
nortl=y
 
21
 
 
22
[install]
 
23
fpcpackage=y
 
24
 
 
25
[default]
 
26
fpcdir=../..
 
27
target=embedded
 
28
 
 
29
[compiler]
 
30
includedir=$(INC) $(PROCINC)
 
31
sourcedir=$(INC) $(PROCINC) $(COMMON)
 
32
 
 
33
 
 
34
[prerules]
 
35
RTL=..
 
36
INC=$(RTL)/inc
 
37
COMMON=$(RTL)/common
 
38
PROCINC=$(RTL)/$(CPU_TARGET)
 
39
UNITPREFIX=rtl
 
40
SYSTEMUNIT=system
 
41
override FPCOPT+=
 
42
rtl.cfg
 
43
 
 
44
ifdef RELEASE
 
45
override FPCOPT+=-Ur
 
46
endif
 
47
 
 
48
# Paths
 
49
OBJPASDIR=$(RTL)/objpas
 
50
GRAPHDIR=$(INC)/graph
 
51
 
 
52
[rules]
 
53
.NOTPARALLEL:
 
54
# Get the system independent include file names.
 
55
# This will set the following variables :
 
56
# SYSINCNAMES
 
57
include $(INC)/makefile.inc
 
58
SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
 
59
 
 
60
# Get the processor dependent include file names.
 
61
# This will set the following variables :
 
62
# CPUINCNAMES
 
63
include $(PROCINC)/makefile.cpu
 
64
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
 
65
 
 
66
# Put system unit dependencies together.
 
67
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
 
68
 
 
69
 
 
70
#
 
71
# Base Units (System, strings, os-dependent-base-unit)
 
72
#
 
73
 
 
74
$(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
 
75
        $(COMPILER) -Us -Sg $(SYSTEMUNIT).pp $(REDIR)
 
76
 
 
77
objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
 
78
        $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
 
79
 
 
80
strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc \
 
81
                   $(PROCINC)/strings.inc $(PROCINC)/stringss.inc \
 
82
                   $(SYSTEMUNIT)$(PPUEXT)
 
83
 
 
84
#
 
85
# System Dependent Units
 
86
#
 
87
 
 
88
#ports$(PPUEXT) : ports.pas objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
 
89
 
 
90
#doscalls$(PPUEXT) : doscalls.pas strings$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
 
91
 
 
92
#
 
93
# TP7 Compatible RTL Units
 
94
#
 
95
 
 
96
dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
 
97
               $(SYSTEMUNIT)$(PPUEXT)
 
98
 
 
99
#crt$(PPUEXT) : crt.pas $(INC)/textrec.inc $(SYSTEMUNIT)$(PPUEXT)
 
100
 
 
101
objects$(PPUEXT) : $(INC)/objects.pp dos$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
 
102
 
 
103
#printer$(PPUEXT) : printer.pas $(INC)/textrec.inc $(SYSTEMUNIT)$(PPUEXT)
 
104
 
 
105
#graph$(PPUEXT) : graph.pp
 
106
 
 
107
#
 
108
# Delphi Compatible Units
 
109
#
 
110
 
 
111
sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
 
112
                    objpas$(PPUEXT) dos$(PPUEXT) sysconst$(PPUEXT)
 
113
        $(COMPILER) -Fi$(OBJPASDIR)/sysutils sysutils.pp
 
114
 
 
115
classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
 
116
                   sysutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT) types$(PPUEXT)
 
117
        $(COMPILER) -Fi$(OBJPASDIR)/classes classes.pp
 
118
 
 
119
typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
 
120
        $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp $(REDIR)
 
121
 
 
122
math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
 
123
        $(COMPILER) $(OBJPASDIR)/math.pp $(REDIR)
 
124
 
 
125
varutils$(PPUEXT) : $(OBJPASDIR)/cvarutil.inc $(OBJPASDIR)/varutils.inc \
 
126
                    $(OBJPASDIR)/varutilh.inc varutils.pp
 
127
        $(COMPILER) -I$(OBJPASDIR) varutils.pp $(REDIR)
 
128
 
 
129
fmtbcd$(PPUEXT) : $(OBJPASDIR)/fmtbcd.pp objpas$(PPUEXT) sysutils$(PPUEXT) variants$(PPUEXT) classes$(PPUEXT) system$(PPUEXT)
 
130
        $(COMPILER) $(OBJPASDIR)/fmtbcd.pp
 
131
 
 
132
types$(PPUEXT) : $(OBJPASDIR/types.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
 
133
        $(COMPILER) $(OBJPASDIR)/types.pp
 
134
 
 
135
rtlconsts$(PPUEXT) : $(OBJPASDIR)/rtlconsts.pp
 
136
        $(COMPILER) $(OBJPASDIR)/rtlconsts.pp
 
137
 
 
138
sysconst$(PPUEXT) : $(OBJPASDIR)/sysconst.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
 
139
        $(COMPILER) $(OBJPASDIR)/sysconst.pp
 
140
 
 
141
dateutil$(PPUEXT) : $(OBJPASDIR)/dateutil.pp
 
142
        $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/dateutil.pp
 
143
 
 
144
#
 
145
# Mac Pascal Model
 
146
#
 
147
 
 
148
macpas$(PPUEXT) : $(INC)/macpas.pp system$(PPUEXT)
 
149
        $(COMPILER) $(INC)/macpas.pp $(REDIR)
 
150
 
 
151
#
 
152
# Other system-independent RTL Units
 
153
#
 
154
 
 
155
ucomplex$(PPUEXT): $(INC)/ucomplex.pp math$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
 
156
 
 
157
getopts$(PPUEXT) : $(INC)/getopts.pp $(SYSTEMUNIT)$(PPUEXT)
 
158
 
 
159
heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
 
160
        $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
 
161
 
 
162
#lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT)
 
163
 
 
164
charset$(PPUEXT) : $(INC)/charset.pp $(SYSTEMUNIT)$(PPUEXT)