123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157 |
- #
- # Makefile.fpc for Free Pascal MacOS RTL
- #
- [package]
- main=rtl
- [target]
- loaders=
- units=system strings objpas macpas 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)
|