123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114 |
- #
- # Makefile.fpc for Free Pascal Win32 RTL
- #
- [package]
- main=rtl
- [target]
- loaders=$(LOADERS)
- units=system objpas macpas buildrtl lineinfo lnfodwrf
- implicitunits=sysinitpas sysinitcyg sysinitgprof \
- ctypes strings \
- heaptrc matrix \
- windows winsock winsock2 initc cmem dynlibs signals \
- dos crt objects messages \
- rtlconsts sysconst sysutils math types \
- strutils dateutils varutils variants typinfo fgl classes \
- convutils stdconvs cpu mmx charset ucomplex getopts \
- winevent sockets printer \
- video mouse keyboard fmtbcd \
- winsysut sharemem exeinfo fpintres
- # shared=$(DLLS)
- rsts=math varutils typinfo variants classes dateutils sysconst
- [require]
- nortl=y
- [install]
- fpcpackage=y
- [default]
- fpcdir=../..
- target=win32
- [compiler]
- includedir=$(INC) $(PROCINC) $(WINDIR)
- sourcedir=$(INC) $(PROCINC) $(COMMON) $(WINDIR)
- [prerules]
- RTL=..
- INC=$(RTL)/inc
- COMMON=$(RTL)/common
- PROCINC=$(RTL)/$(CPU_TARGET)
- WININC=../win/wininc
- WINDIR=../win
- UNITPREFIX=rtl
- ifneq ($(findstring 2.0.,$(FPC_VERSION)),)
- LOADERS=wprt0 wdllprt0 gprt0 wcygprt0
- DLLS=
- else
- DLLS=fpcmemdll
- endif
- # Paths
- OBJPASDIR=$(RTL)/objpas
- # Files used by windows.pp
- include $(WININC)/makefile.inc
- WINDOWS_SOURCE_FILES=$(addprefix $(WININC)/,$(addsuffix .inc,$(WINDOWS_FILES)))
- [rules]
- .NOTPARALLEL:
- SYSTEMPPU=$(addsuffix $(PPUEXT),system)
- # 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
- #
- wprt0$(OEXT) : wprt0.as
- gprt0$(OEXT) : gprt0.as
- wdllprt0$(OEXT) : wdllprt0.as
- wcygprt0$(OEXT) : wcygprt0.as
- #
- # Unit specific rules
- #
- system$(PPUEXT) : system.pp $(SYSDEPS)
- $(COMPILER) -Us -Sg system.pp -Fi../win
- objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
- $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
- macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) buildrtl$(PPUEXT)
- $(COMPILER) $(INC)/macpas.pp $(REDIR)
- buildrtl$(PPUEXT): buildrtl.pp system$(PPUEXT) objpas$(PPUEXT)
- $(COMPILER) -Fi$(OBJPASDIR)/sysutils -Fi$(OBJPASDIR)/classes -Fu$(PROCINC) -I$(OBJPASDIR) -I$(WININC) -Fu$(WININC) -Fu$(WINDIR) -I$(INC) -Fu$(INC) -Fu$(OBJPASDIR) buildrtl
|