123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186 |
- #
- # Makefile.fpc for Free Pascal FreeBSD RTL
- #
- [targets]
- loaders=prt0 cprt0
- units=$(SYSTEMUNIT) objpas strings \
- unix initc \
- dos crt objects printer \
- sysutils typinfo math \
- cpu mmx getopts heaptrc lineinfo \
- errors sockets gpm ipc terminfo \
- video mouse keyboard console
- rst=math
- [require]
- rtl=0
- [defaults]
- defaulttarget=freebsd
- defaultcpu=i386
- [install]
- unitsubdir=rtl
- [dirs]
- fpcdir=.
- incdir=$(INC) $(PROCINC) $(UNIXINC)
- targetdir=.
- [libs]
- libname=libfprtl.so
- libversion=1.0
- libunits=$(SYSTEMUNIT) objpas strings \
- unix \
- dos crt objects printer \
- sysutils typinfo math \
- cpu mmx getopts heaptrc \
- errors sockets ipc
- [presettings]
- RTL=..
- INC=$(RTL)/inc
- PROCINC=$(RTL)/$(CPU_TARGET)
- UNIXINC=$(RTL)/unix
- UNITPREFIX=rtl
- ifeq ($(findstring 1.0.,$(FPC_VERSION)),)
- SYSTEMUNIT=system
- PRT0=prt0
- else
- SYSTEMUNIT=sysbsd
- override FPCOPT+=-dUNIX
- PRT0=prt0_10
- endif
- # Paths
- OBJPASDIR=$(RTL)/objpas
- GRAPHDIR=$(INC)/graph
- # Use new graph unit ?
- # NEWGRAPH=YES
- # Use LibGGI ?
- # Use
- #
- ifndef USELIBGGI
- USELIBGGI=NO
- endif
- [postsettings]
- # 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)
- [rules]
- vpath %$(PASEXT) $(INC) $(PROCINC) $(UNIXINC)
- #
- # Loaders
- #
- prt0$(OEXT) : $(CPU_TARGET)/$(PRT0).as
- $(AS) -o prt0$(OEXT) $(CPU_TARGET)/$(PRT0).as
- cprt0$(OEXT) : $(CPU_TARGET)/cprt0.as
- $(AS) -o cprt0$(OEXT) $(CPU_TARGET)/cprt0.as
- #
- # System Units (System, Objpas, Strings)
- #
- $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp sysconst.inc systypes.inc syscalls.inc $(SYSDEPS)
- $(COMPILER) -Us -Sg $(SYSTEMUNIT).pp $(REDIR)
- objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
- $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp $(REDIR)
- strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc\
- $(PROCINC)/strings.inc $(PROCINC)/stringss.inc\
- $(SYSTEMUNIT)$(PPUEXT)
- #
- # System Dependent Units
- #
- unix$(PPUEXT) : $(UNIXINC)/unix.pp strings$(PPUEXT) $(INC)/textrec.inc $(INC)/filerec.inc \
- syscalls.inc systypes.inc sysconst.inc $(UNIXINC)/timezone.inc $(SYSTEMUNIT)$(PPUEXT) \
- $(UNIXINC)/linsysca.inc
- #
- # TP7 Compatible RTL Units
- #
- dos$(PPUEXT) : $(UNIXINC)/dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) \
- unix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- crt$(PPUEXT) : $(UNIXINC)/crt.pp $(INC)/textrec.inc unix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- objects$(PPUEXT) : $(INC)/objects.pp $(UNIXINC)/objinc.inc $(SYSTEMUNIT)$(PPUEXT)
- printer$(PPUEXT) : $(UNIXINC)/printer.pp $(INC)/textrec.inc unix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- #
- # Graph
- #
- #
- # Delphi Compatible Units
- #
- sysutils$(PPUEXT) : $(UNIXINC)/sysutils.pp $(wildcard $(OBJPASDIR)/*.inc) \
- objpas$(PPUEXT) unix$(PPUEXT) errors$(PPUEXT)
- $(COMPILER) -I$(OBJPASDIR) $(UNIXINC)/sysutils.pp $(REDIR)
- typinfo$(PPUEXT): $(OBJPASDIR)/typinfo.pp objpas$(PPUEXT)
- $(COMPILER) -Sg $(OBJPASDIR)/typinfo.pp $(REDIR)
- math$(PPUEXT): $(OBJPASDIR)/math.pp objpas$(PPUEXT) sysutils$(PPUEXT)
- $(COMPILER) $(OBJPASDIR)/math.pp $(REDIR)
- gettext$(PPUEXT): $(OBJPASDIR)/gettext.pp objpas$(PPUEXT) sysutils$(PPUEXT)
- $(COMPILER) $(OBJPASDIR)/gettext.pp $(REDIR)
- #
- # Other system-independent RTL Units
- #
- cpu$(PPUEXT) : $(PROCINC)/cpu.pp $(SYSTEMUNIT)$(PPUEXT)
- mmx$(PPUEXT) : $(PROCINC)/mmx.pp cpu$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- getopts$(PPUEXT) : $(INC)/getopts.pp $(SYSTEMUNIT)$(PPUEXT)
- heaptrc$(PPUEXT) : $(INC)/heaptrc.pp $(SYSTEMUNIT)$(PPUEXT)
- $(COMPILER) -Sg $(INC)/heaptrc.pp $(REDIR)
- lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT)
- #
- # Other system-dependent RTL Units
- #
- sockets$(PPUEXT) : $(UNIXINC)/sockets.pp $(INC)/textrec.inc $(INC)/filerec.inc \
- unix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- errors$(PPUEXT) : $(UNIXINC)/errors.pp strings$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- ipc$(PPUEXT) : $(UNIXINC)/ipc.pp unix$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- terminfo$(PPUEXT) : terminfo.pp unix$(PPUEXT)
|