blob: 4e075961c5217567ff3256a55914717f055815ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
|
#
# Makefile.fpc for Free Pascal MacOS RTL
#
[package]
main=rtl
[target]
loaders=
units=system strings objpas macpas iso7185 heaptrc getopts macostp macutils \
unixutil dos objects matrix cmem charset ctypes
# exec \
# crt printer \
# lineinfo lnfodwrf graph \
# sysutils math typinfo
# rsts=math
# implicitunits=exeinfo
[require]
nortl=y
[install]
fpcpackage=y
[default]
fpcdir=../..
target=macos
[compiler]
includedir=$(INC) $(PROCINC)
sourcedir=$(INC) $(PROCINC) $(COMMON)
[prerules]
RTL=..
INC=../inc
PROCINC=../$(CPU_TARGET)
PPUEXT=pput
ASMEXT=.s
UNITPREFIX=rtl
# Use new feature from 1.0.5 version
# that generates release PPU files
# which will not be recompiled
ifdef RELEASE
ifeq ($(findstring 1.0.2,$(FPC_VERSION)),)
ifeq ($(findstring 1.0.4,$(FPC_VERSION)),)
override FPCOPT+=-Ur
endif
endif
endif
# Paths
OBJPASDIR=$(RTL)/objpas
GRAPHDIR=$(INC)/graph
[rules]
.NOTPARALLEL:
# Get the system independent include file names.
# This will set the following variables :
# SYSINCNAMES
include $(INC)/makefile.inc
SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
# Get the processor dependent include file names.
# This will set the following variables :
# CPUINCNAMES
include $(PROCINC)/makefile.cpu
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
# Put system unit dependencies together.
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
#
# Loaders
#
#prt0$(OEXT) : prt0$(LOADEREXT)
# -$(AS) prt0$(LOADEREXT) -o prt0$(OEXT)
#gprt0$(OEXT) : $(GLOADERAS)
# -$(AS) $(GLOADERAS) -o gprt0$(OEXT)
#
# Base Units (System, strings, os-dependent-base-unit)
#
system$(PPUEXT) : system.pp $(SYSDEPS)
$(COMPILER) -Us -Sg system.pp $(REDIR)
strings$(PPUEXT) : $(INC)/strings.pp system$(PPUEXT)
$(COMPILER) $(INC)/strings.pp $(REDIR)
#exec$(PPUEXT) : exec.pp exec.inc system$(PPUEXT)
# $(COMPILER) exec $(REDIR)
#
# Delphi Object Model
#
objpas$(PPUEXT) : $(OBJPASDIR)/objpas.pp system$(PPUEXT)
$(COPY) $(OBJPASDIR)/objpas.pp .
$(COMPILER) objpas $(REDIR)
$(DEL) objpas.pp
sysutils$(PPUEXT) : $(OBJPASDIR)/sysutils.pp objpas$(PPUEXT) system$(PPUEXT) sysconst$(PPUEXT)
$(COPY) $(OBJPASDIR)/sysutils.pp .
$(COMPILER) sysutils $(REDIR)
#$(DEL) sysutils.pp
#
# Mac Pascal Model
#
macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
$(COMPILER) $(INC)/macpas.pp $(REDIR)
#
# System Dependent Units
#
#
# TP7 Compatible RTL Units
#
dos$(PPUEXT) : $(DOSDEPS) unixutil$(PPUEXT) system$(PPUEXT)
$(COMPILER) dos $(REDIR)
#crt$(PPUEXT) : crt.pp $(INC)/textrec.inc system$(PPUEXT)
# $(COMPILER) crt $(REDIR)
#printer$(PPUEXT) : printer.pp system$(PPUEXT)
# $(COMPILER) printer $(REDIR)
objects$(PPUEXT) : $(INC)/objects.pp system$(PPUEXT)
$(COMPILER) $(INC)/objects.pp $(REDIR)
#
# Other system-independent RTL Units
#
getopts$(PPUEXT) : $(INC)/getopts.pp strings$(PPUEXT) system$(PPUEXT)
$(COMPILER) $(INC)/getopts.pp $(REDIR)
heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
$(COMPILER) $(INC)/heaptrc.pp $(REDIR)
unixutil$(PPUEXT) : ../unix/unixutil.pp
$(COMPILER) ../unix/unixutil.pp $(REDIR)
charset$(PPUEXT) : $(INC)/charset.pp system$(PPUEXT)
cmem$(PPUEXT) : $(INC)/cmem.pp system$(PPUEXT)
ctypes$(PPUEXT) : $(INC)/ctypes.pp system$(PPUEXT)
|