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

« back to all changes in this revision

Viewing changes to rtl/palmos/Makefile.fpc

  • 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
#   Makefile.fpc for Free Pascal WinCE RTL
 
3
#
 
4
 
 
5
[package]
 
6
main=rtl
 
7
 
 
8
[target]
 
9
loaders= prt0
 
10
units=$(SYSTEMUNIT) ctypes objpas macpas strings \
 
11
      lineinfo heaptrc \
 
12
      windows messages dynlibs \
 
13
      dos objects \
 
14
      rtlconsts sysconst sysutils \
 
15
      typinfo types classes \
 
16
      strutils convutils math dateutils \
 
17
      varutils variants \
 
18
      matrix ucomplex \
 
19
      charset getopts winsock sockets
 
20
# initc cmem signals \
 
21
#    crt graph \
 
22
#    wincrt winmouse winevent  printer \
 
23
#    video mouse keyboard \
 
24
#    winsysut fpmkunit
 
25
 
 
26
# rsts=math varutils typinfo variants classes dateutils sysconst fpmkunit
 
27
 
 
28
[require]
 
29
nortl=y
 
30
 
 
31
[install]
 
32
fpcpackage=y
 
33
 
 
34
[default]
 
35
fpcdir=../..
 
36
target=palmos
 
37
 
 
38
[compiler]
 
39
includedir=$(INC) $(PROCINC) $(RTL)/palmos
 
40
sourcedir=$(INC) $(PROCINC) $(COMMON)
 
41
 
 
42
 
 
43
[prerules]
 
44
# Where are the include files
 
45
RTL=..
 
46
INC=$(RTL)/inc
 
47
COMMON=$(RTL)/common
 
48
PROCINC=$(RTL)/$(CPU_TARGET)
 
49
 
 
50
UNITPREFIX=rtl
 
51
 
 
52
SYSTEMUNIT=system
 
53
PRT0=prt0
 
54
 
 
55
# Use new feature from 1.0.5 version
 
56
# that generates release PPU files
 
57
# which will not be recompiled
 
58
ifdef RELEASE
 
59
override FPCOPT+=-Ur
 
60
endif
 
61
 
 
62
# Paths
 
63
OBJPASDIR=$(RTL)/objpas
 
64
GRAPHDIR=$(INC)/graph
 
65
 
 
66
 
 
67
 
 
68
[rules]
 
69
SYSTEMPPU=syspalm.ppu
 
70
 
 
71
# Get the system independent include file names.
 
72
# This will set the following variables : 
 
73
# SYSINCNAMES
 
74
include $(INC)/makefile.inc
 
75
SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
 
76
 
 
77
# Get the processor dependent include file names.
 
78
# This will set the following variables : 
 
79
# CPUINCNAMES
 
80
include $(PROCINC)/makefile.cpu
 
81
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
 
82
 
 
83
# Put system unit dependencies together.
 
84
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
 
85
 
 
86
 
 
87
#
 
88
# Loaders
 
89
#
 
90
 
 
91
$(PRT0)$(OEXT) : $(CPU_TARGET)/$(PRT0).as
 
92
        $(AS) $(ASTARGET) -o $(UNITTARGETDIRPREFIX)$(PRT0)$(OEXT) $(CPU_TARGET)/$(PRT0).as
 
93
 
 
94
 
 
95
#
 
96
# System Units (System, Objpas, Strings)
 
97
#
 
98
 
 
99
$(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
 
100
        $(COMPILER) -Us -Sg $(SYSTEMUNIT).pp
 
101
 
 
102
objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
 
103
        $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
 
104
 
 
105
strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc\
 
106
                   $(PROCINC)/strings.inc $(PROCINC)/stringss.inc\
 
107
                   $(SYSTEMUNIT)$(PPUEXT)
 
108
 
 
109
#
 
110
# System Dependent Units
 
111
#
 
112
 
 
113
#
 
114
# TP7 Compatible RTL Units
 
115
#
 
116
 
 
117
#dos$(PPUEXT) : $(DOSDEPS) $(SYSTEMPPU)
 
118
#       $(PP) $(OPT) dos $(REDIR)
 
119
 
 
120
#crt$(PPUEXT) : crt.pp $(INC)/textrec.inc $(INC)/filerec.inc $(SYSTEMPPU)
 
121
#       $(PP) $(OPT) crt $(REDIR)
 
122
 
 
123
#objects$(PPUEXT) : $(INC)/objects.pp objinc.inc $(SYSTEMPPU)
 
124
#       $(COPY) $(INC)/objects.pp .
 
125
#       $(PP) $(OPT) objects $(REDIR)
 
126
#       $(DEL) objects.pp
 
127
 
 
128
#
 
129
# Other system-independent RTL Units
 
130
#
 
131
 
 
132
#####################################################################
 
133
# Libs
 
134
#####################################################################
 
135
 
 
136
staticlib:
 
137
        make clean
 
138
        make all SMARTLINK=YES LIBNAME=fpc LIBTYPE=static
 
139
 
 
140
sharedlib:
 
141
        make clean
 
142
        make all
 
143
        $(PPUMOVE) -o fpc $(SHAREDLIBFILES)
 
144
 
 
145
staticlibinstall: staticlib
 
146
        $(MKDIR) $(STATIC_LIBINSTALLDIR)
 
147
        $(MKDIR) $(STATIC_UNITINSTALLDIR)
 
148
        $(INSTALLEXE) libfpc$(STATICLIBEXT) $(STATIC_LIBINSTALLDIR)
 
149
        $(INSTALL) *$(PPUEXT) *$(OEXT) $(STATIC_UNITINSTALLDIR)
 
150
 
 
151
sharedlibinstall: sharedlib
 
152
        $(MKDIR) $(SHARED_LIBINSTALLDIR)
 
153
        $(MKDIR) $(SHARED_UNITINSTALLDIR)
 
154
        $(INSTALLEXE) libfpc$(SHAREDLIBEXT) $(SHARED_LIBINSTALLDIR)
 
155
        $(INSTALL) *$(PPUEXT) *$(OEXT) $(SHARED_UNITINSTALLDIR)
 
156
        ldconfig
 
157
 
 
158
libinstall: staticlibinstall sharedlibinstall
 
159
 
 
160
libsclean : clean
 
161
        -$(DEL) *$(SMARTLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)
 
162