2
# Makefile.fpc for Free Pascal WinCE RTL
10
units=$(SYSTEMUNIT) ctypes objpas macpas strings \
12
windows messages dynlibs \
14
rtlconsts sysconst sysutils \
15
typinfo types classes \
16
strutils convutils math dateutils \
19
charset getopts winsock sockets
20
# initc cmem signals \
22
# wincrt winmouse winevent printer \
23
# video mouse keyboard \
26
# rsts=math varutils typinfo variants classes dateutils sysconst fpmkunit
39
includedir=$(INC) $(PROCINC) $(RTL)/palmos
40
sourcedir=$(INC) $(PROCINC) $(COMMON)
44
# Where are the include files
48
PROCINC=$(RTL)/$(CPU_TARGET)
55
# Use new feature from 1.0.5 version
56
# that generates release PPU files
57
# which will not be recompiled
63
OBJPASDIR=$(RTL)/objpas
71
# Get the system independent include file names.
72
# This will set the following variables :
74
include $(INC)/makefile.inc
75
SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
77
# Get the processor dependent include file names.
78
# This will set the following variables :
80
include $(PROCINC)/makefile.cpu
81
SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
83
# Put system unit dependencies together.
84
SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
91
$(PRT0)$(OEXT) : $(CPU_TARGET)/$(PRT0).as
92
$(AS) $(ASTARGET) -o $(UNITTARGETDIRPREFIX)$(PRT0)$(OEXT) $(CPU_TARGET)/$(PRT0).as
96
# System Units (System, Objpas, Strings)
99
$(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp $(SYSDEPS)
100
$(COMPILER) -Us -Sg $(SYSTEMUNIT).pp
102
objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
103
$(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
105
strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc\
106
$(PROCINC)/strings.inc $(PROCINC)/stringss.inc\
107
$(SYSTEMUNIT)$(PPUEXT)
110
# System Dependent Units
114
# TP7 Compatible RTL Units
117
#dos$(PPUEXT) : $(DOSDEPS) $(SYSTEMPPU)
118
# $(PP) $(OPT) dos $(REDIR)
120
#crt$(PPUEXT) : crt.pp $(INC)/textrec.inc $(INC)/filerec.inc $(SYSTEMPPU)
121
# $(PP) $(OPT) crt $(REDIR)
123
#objects$(PPUEXT) : $(INC)/objects.pp objinc.inc $(SYSTEMPPU)
124
# $(COPY) $(INC)/objects.pp .
125
# $(PP) $(OPT) objects $(REDIR)
129
# Other system-independent RTL Units
132
#####################################################################
134
#####################################################################
138
make all SMARTLINK=YES LIBNAME=fpc LIBTYPE=static
143
$(PPUMOVE) -o fpc $(SHAREDLIBFILES)
145
staticlibinstall: staticlib
146
$(MKDIR) $(STATIC_LIBINSTALLDIR)
147
$(MKDIR) $(STATIC_UNITINSTALLDIR)
148
$(INSTALLEXE) libfpc$(STATICLIBEXT) $(STATIC_LIBINSTALLDIR)
149
$(INSTALL) *$(PPUEXT) *$(OEXT) $(STATIC_UNITINSTALLDIR)
151
sharedlibinstall: sharedlib
152
$(MKDIR) $(SHARED_LIBINSTALLDIR)
153
$(MKDIR) $(SHARED_UNITINSTALLDIR)
154
$(INSTALLEXE) libfpc$(SHAREDLIBEXT) $(SHARED_LIBINSTALLDIR)
155
$(INSTALL) *$(PPUEXT) *$(OEXT) $(SHARED_UNITINSTALLDIR)
158
libinstall: staticlibinstall sharedlibinstall
161
-$(DEL) *$(SMARTLIBEXT) *$(SHAREDLIBEXT) *$(PPLEXT)