123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- #
- # Makefile.fpc for Free Pascal QNX RTL
- #
- [package]
- main=rtl
- [target]
- loaders=cprt0 crti crtn
- units=system uuchar dos objpas objects strings \
- sysutils typinfo math \
- cpu mmx getopts heaptrc lineinfo posix
- rsts=math typinfo
- [require]
- nortl=y
- [install]
- fpcpackage=y
- [default]
- fpcdir=../..
- target=qnx
- cpu=i386
- [compiler]
- includedir=$(INC) $(PROCINC) $(POSIXINC) $(SYSCALLINC)
- sourcedir=$(INC) $(PROCINC) $(POSIXINC) $(SYSCALLINC)
- targetdir=.
- [prerules]
- RTL=..
- INC=$(RTL)/inc
- PROCINC=$(RTL)/$(CPU_TARGET)
- POSIXINC=$(RTL)/posix
- SYSCALLINC=$(RTL)/qnx/$(CPU_TARGET)
- UNITPREFIX=rtl
- SYSTEMUNIT=system
- # 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]
- # 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
- #
- cprt0$(OEXT) : $(CPU_TARGET)/cprt0.as
- $(AS) -o cprt0$(OEXT) $(CPU_TARGET)/cprt0.as
- crti$(OEXT) : $(CPU_TARGET)/crti.s
- $(AS) -o crti$(OEXT) $(CPU_TARGET)/crti.s
- crtn$(OEXT) : $(CPU_TARGET)/crtn.s
- $(AS) -o crtn$(OEXT) $(CPU_TARGET)/crtn.s
- func$(OEXT) : $(CPU_TARGET)/func.as
- $(AS) -o func$(OEXT) $(CPU_TARGET)/func.as
- dllprt$(OEXT) : $(CPU_TARGET)/dllprt.as
- $(AS) -o dllprt$(OEXT) $(CPU_TARGET)/dllprt.as
- #
- # system Units (system, Objpas, Strings)
- #
- system$(PPUEXT) : system.pp $(SYSDEPS)
- $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg system.pp
- uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
- objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc system$(PPUEXT)
- $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
- strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc\
- $(PROCINC)/strings.inc $(PROCINC)/stringss.inc\
- system$(PPUEXT)
- #
- # TP7 Compatible RTL Units
- #
- dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
- posix$(PPUEXT) system$(PPUEXT)
- $(COMPILER) $(POSIXINC)/dos.pp
- #
- # Delphi Compatible Units
- #
- sysutils$(PPUEXT) : $(POSIXINC)/sysutils.pp $(wildcard $(OBJPASDIR)/*.inc) \
- objpas$(PPUEXT) dos$(PPUEXT)
- $(COMPILER) -I$(OBJPASDIR) $(POSIXINC)/sysutils.pp
- typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
- $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp
- math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
- $(COMPILER) $(OBJPASDIR)/math.pp
- #
- # Other system-independent RTL Units
- #
- cpu$(PPUEXT) : $(PROCINC)/cpu.pp system$(PPUEXT)
- mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) system$(PPUEXT)
- getopts$(PPUEXT) : $(INC)/getopts.pp system$(PPUEXT)
- heaptrc$(PPUEXT) : $(INC)/heaptrc.pp system$(PPUEXT)
- $(COMPILER) -Sg $(INC)/heaptrc.pp
- lineinfo$(PPUEXT) : $(INC)/lineinfo.pp system$(PPUEXT)
- #
- # Other system-dependent RTL Units
- #
- posix$(PPUEXT) : posix.pp \
- errno.inc osposix.inc osposixh.inc signal.inc system$(PPUEXT)
|