123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189 |
- #
- # Makefile.fpc for Free Pascal DragonFly RTL
- #
- [package]
- main=rtl
- [install]
- fpcpackage=y
- [target]
- loaders=prt0 cprt0 gprt0 dllprt0
- units=$(SYSTEMUNIT) $(UUCHARUNIT) unixtype ctypes $(OBJPASUNIT) $(MACPASUNIT) $(ISO7185UNIT) $(EXTPASUNIT) \
- $(STRINGSUNIT) $(SYSCALLUNIT) $(SYSCTL) baseunix unixutil $(CHARACTERUNIT) \
- unix $(RTLCONSTSUNIT) $(INITCUNIT) $(CMEMUNIT) \
- $(DLUNIT) $(TERMIOUNIT) \
- sysutils $(MATHUNIT) typinfo types $(SORTBASEUNIT) classes $(FGLUNIT) $(DYNLIBSUNIT) \
- $(CPU_UNITS) $(CHARSETUNIT) $(CPALLUNIT) $(GETOPTSUNIT) $(HEAPTRCUNIT) $(LNFODWRFUNIT) $(LINEINFOUNIT) \
- $(ERRORSUNIT) $(BSDUNIT) \
- $(CONSOLEUNIT) \
- $(SYSCONSTUNIT) $(CTHREADSUNIT) dos cwstring \
- $(FPINTRESUNIT) $(UNIXCPUNIT) $(FPWIDESTRINGUNIT) \
- $(SOFTFPUUNIT) $(SFPUX80UNIT) $(UFLOATX80UNIT) $(SFPU128UNIT) $(UFLOAT128UNIT)
- implicitunits=$(EXEINFOUNIT) $(CP_UNITS) $(UNICODEDATAUNIT)
- rsts=$(MATHUNIT) typinfo classes $(SYSCONSTUNIT)
- [require]
- nortl=y
- [install]
- fpcpackage=y
- [default]
- target=dragonfly
- [compiler]
- includedir=$(INC) $(PROCINC) $(UNIXINC) $(BSDINC) $(BSDPROCINC) $(OSPROCINC)
- sourcedir=$(INC) $(PROCINC) $(UNIXINC) $(BSDINC) $(COMMON)
- [lib]
- libname=libfprtl.so
- libversion=2.0.0
- libunits=$(SYSTEMUNIT) $(OBJPASUNIT) $(STRINGSUNIT) \
- unix \
- dos \
- sysutils typinfo $(MATHUNIT) \
- $(CPU_UNITS) $(GETOPTSUNIT) $(HEAPTRCUNIT) \
- $(ERRORSUNIT) $(DYNLIBSUNIT)
- [prerules]
- RTL=..
- INC=$(RTL)/inc
- COMMON=$(RTL)/common
- PROCINC=$(RTL)/$(CPU_TARGET)
- OSPROCINC=$(RTL)/dragonfly/$(CPU_TARGET)
- BSDINC=$(RTL)/bsd
- BSDPROCINC=$(BSDINC)/$(CPU_TARGET)
- UNIXINC=$(RTL)/unix
- UNITPREFIX=rtl
- CPU_UNITS=
- BSD_DEPS_OS=$(SYSCALLUNIT)$(PPUEXT)
- DYNLIBS_DEPS_OS=$(DLUNIT)$(PPUEXT)
- DYNLIBSINCDIR=$(UNIXINC)
- SYSCALL_DEPS_OS=sysnr.inc $(BSDPROCINC)/syscallh.inc
- SYSTEMUNIT=system
- loaders+=gprt0
- ifeq ($(ARCH),x86_64)
- CPU_UNITS=$(X86UNIT) $(PORTSUNIT) cpu
- endif
- # Use new feature from 1.0.5 version
- # that generates release PPU files
- # which will not be recompiled
- ifdef RELEASE
- override FPCOPT+=-Ur
- endif
- # Paths
- OBJPASDIR=$(RTL)/objpas
- [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) : $(CPU_TARGET)/prt0.as
- $(AS) -o $(UNITTARGETDIRPREFIX)prt0$(OEXT) $(CPU_TARGET)/prt0.as
- cprt0$(OEXT) : $(CPU_TARGET)/cprt0.as
- $(AS) -o $(UNITTARGETDIRPREFIX)cprt0$(OEXT) $(CPU_TARGET)/cprt0.as
- gprt0$(OEXT) : $(CPU_TARGET)/gprt0.as
- $(AS) -o $(UNITTARGETDIRPREFIX)gprt0$(OEXT) $(CPU_TARGET)/gprt0.as
- dllprt0$(OEXT) : $(CPU_TARGET)/dllprt0.as
- $(AS) -o $(UNITTARGETDIRPREFIX)dllprt0$(OEXT) $(CPU_TARGET)/dllprt0.as
- #
- # System Units (System, Objpas, Strings)
- #
- $(SYSTEMUNIT)$(PPUEXT) : $(BSDINC)/$(SYSTEMUNIT).pp unxconst.inc $(SYSDEPS)
- $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg $(BSDINC)/$(SYSTEMUNIT).pp
- #
- # System Dependent Units
- #
- unixtype$(PPUEXT): $(UNIXINC)/unixtype.pp $(UNIXINC)/ctypes.inc ptypes.inc $(SYSTEMUNIT)$(PPUEXT)
- baseunix$(PPUEXT) : errno.inc ptypes.inc $(UNIXINC)/ctypes.inc \
- $(CPU_TARGET)/signal.inc $(UNIXINC)/bunxh.inc \
- $(BSDINC)/bunxsysc.inc $(BSDPROCINC)/syscallh.inc sysnr.inc \
- $(BSDINC)/ostypes.inc $(BSDINC)/osmacro.inc $(UNIXINC)/gensigset.inc \
- $(UNIXINC)/genfuncs.inc $(SYSCTL)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- unix$(PPUEXT) : $(UNIXINC)/unix.pp strings$(PPUEXT) $(INC)/textrec.inc $(INC)/filerec.inc \
- unxconst.inc $(UNIXINC)/timezone.inc \
- unxfunc.inc baseunix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- #
- # TP7 Compatible RTL Units
- #
- dos$(PPUEXT) : $(UNIXINC)/dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
- unix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- #
- # Delphi Compatible Units
- #
- sysutils$(PPUEXT) : $(UNIXINC)/sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
- $(OBJPASUNIT)$(PPUEXT) unix$(PPUEXT) $(ERRORSUNIT)$(PPUEXT) $(SYSCONSTUNIT)$(PPUEXT)
- $(COMPILER) -Fi$(OBJPASDIR)/sysutils $(UNIXINC)/sysutils.pp
- classes$(PPUEXT) : $(UNIXINC)/classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
- sysutils$(PPUEXT) typinfo$(PPUEXT) $(RTLCONSTSUNIT)$(PPUEXT) $(FGLUNIT)$(PPUEXT) sortbase$(PPUEXT)
- $(COMPILER) -Fi$(OBJPASDIR)/classes $(UNIXINC)/classes.pp
- typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp $(OBJPASUNIT)$(PPUEXT) $(RTLCONSTSUNIT)$(PPUEXT)
- $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp
- types$(PPUEXT) : $(OBJPASDIR)/types.pp $(OBJPASUNIT)$(PPUEXT) $(MATHUNIT)$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- $(COMPILER) $(OBJPASDIR)/types.pp
- #
- # Other system-independent RTL Units
- #
- ifneq ($(findstring $(ARCH),x86_64 i386),)
- cpu$(PPUEXT) : $(PROCINC)/cpu.pp $(SYSTEMUNIT)$(PPUEXT) sysutils$(PPUEXT)
- else
- cpu$(PPUEXT) : $(PROCINC)/cpu.pp $(SYSTEMUNIT)$(PPUEXT)
- endif
- #
- # Other system-dependent RTL Units
- #
- ctypes$(PPUEXT) : $(INC)/ctypes.pp $(SYSTEMUNIT)$(PPUEXT)
- cwstring$(PPUEXT) : $(UNIXINC)/cwstring.pp $(SYSTEMUNIT)$(PPUEXT) sysutils$(PPUEXT) baseunix$(PPUEXT) unix$(PPUEXT) unixtype$(PPUEXT) ctypes$(PPUEXT) $(DYNLIBSUNIT)$(PPUEXT)
|