123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270 |
- #
- # Makefile.fpc for Free Pascal Netware RTL (clib)
- #
- [package]
- main=rtl
- [target]
- loaders=nwpre prelude
- units=$(SYSTEMUNIT) uuchar objpas macpas iso7185 extpas strings \
- lineinfo lnfodwrf heaptrc \
- dos sysconst \
- initc sysutils types typinfo sortbase fgl classes \
- cpu mmx getopts \
- charset cpall \
- character fpwidestring unicodedata unicodenumtable \
- rtlconsts math \
- cmem dynlibs \
- aio nwsnut nwserv nwnit nwprot netware nwcalls ctypes nwpre \
- softfpu sfpux80 ufloatx80 sfpu128 ufloat128
- rsts=math typinfo classes sysconst rtlconsts
- implicitunits=exeinfo \
- cp1250 cp1251 cp1252 cp1253 cp1254 cp1255 cp1256 cp1257 cp1258 \
- cp437 cp646 cp737 cp775 cp850 cp852 cp855 cp856 cp857 cp860 cp861 cp862 \
- cp863 cp864 cp865 cp866 cp869 cp874 cp3021 cp8859_1 cp8859_2 cp8859_3 cp8859_4 \
- cp8859_5 cp8859_6 cp8859_7 cp8859_8 cp8859_9 cp8859_10 cp8859_11 \
- cp8859_13 cp8859_14 cp8859_15 cp8859_16 cpkoi8_r cpkoi8_u
- [require]
- nortl=y
- [install]
- fpcpackage=y
- [default]
- fpcdir=../..
- target=netware
- cpu=i386
- [compiler]
- includedir=$(INC) $(PROCINC)
- sourcedir=$(INC) $(PROCINC) $(COMMON)
- [prerules]
- RTL=..
- INC=$(RTL)/inc
- COMMON=$(RTL)/common
- PROCINC=$(RTL)/$(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
- override FPCOPT+=-Ur
- # endif
- #debug, -a: dont delete asm, -al include lines
- #override FPCOPT+=-a
- #override FPCOPT+=-al
- # for netware always use multithread
- override FPCOPT+=-dMT
- # and alway use smartlinking
- CREATESMART=1
- # Paths
- OBJPASDIR=$(RTL)/objpas
- # Imp-Files
- IMPFILES=aio.imp audnlm32.imp \
- calnlm32.imp ccs.imp ccs-os.imp clibaux.imp \
- clibctx.imp clib.imp clxnlm32.imp dplsv386.imp \
- dsapi.imp dsevent.imp lib0.imp \
- locnlm32.imp ndpsrpc.imp netnlm32.imp nit.imp \
- nlmlib.imp nwpsrv3x.imp nwpsrv.imp nwsnut.imp \
- requestr.imp socklib.imp streams.imp threads.imp \
- tli.imp vollib.imp ws2_32.imp ws2nlm.imp unicode.imp \
- nwpre.imp
- [rules]
- .NOTPARALLEL:
- SYSTEMPPU=$(addsuffix $(PPUEXT),$(SYSTEMUNIT))
- # 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)
- copyimpfiles:
- $(COPY) $(IMPFILES) $(COMPILER_UNITTARGETDIR)
- #
- # Loaders
- #
- #nwpre$(OEXT) : nwpre.as
- # $(AS) -o $(UNITTARGETDIRPREFIX)nwpre$(OEXT) nwpre.as
- #prelude$(OEXT) : prelude.as
- # $(AS) -o $(UNITTARGETDIRPREFIX)prelude$(OEXT) prelude.as
- #
- # System Units (System, Objpas, Strings)
- #
- # always copy the imp files to the ppu dir, does not work
- # with system.pp copyimpfile nwsys.inc ...
- # because this will always build system.ppu
- $(SYSTEMUNIT)$(PPUEXT) : $(SYSTEMUNIT).pp nwsys.inc $(SYSDEPS)
- $(COPY) $(IMPFILES) $(COMPILER_UNITTARGETDIR)
- $(COMPILER) $(FPC_SYSTEM_OPT) -Us -Sg $(SYSTEMUNIT).pp
- uuchar$(PPUEXT): $(SYSTEMUNIT)$(PPUEXT) $(INC)/uuchar.pp
- objpas$(PPUEXT): $(OBJPASDIR)/objpas.pp $(INC)/except.inc $(SYSTEMUNIT)$(PPUEXT)
- $(COMPILER) -I$(OBJPASDIR) $(OBJPASDIR)/objpas.pp
- strings$(PPUEXT) : $(INC)/strings.pp $(INC)/stringsi.inc\
- $(PROCINC)/strings.inc $(PROCINC)/stringss.inc\
- $(SYSTEMUNIT)$(PPUEXT)
- #
- # System Dependent Units
- #
- nwpre$(PPUEXT) : nwpre.pp $(SYSTEMUNIT)$(PPUEXT)
- netware$(PPUEXT) : netware.pp $(SYSTEMUNIT)$(PPUEXT)
- #dynlibs$(PPUEXT) : $(INC)/dynlibs.pas windows$(PPUEXT)
- initc$(PPUEXT) : initc.pp ctypes$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- #
- # TP7 Compatible RTL Units
- #
- dos$(PPUEXT) : dos.pp $(INC)/filerec.inc $(INC)/textrec.inc strings$(PPUEXT) nwserv$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- #
- # Delphi Compatible Units
- #
- sysutils$(PPUEXT) : sysutils.pp $(wildcard $(OBJPASDIR)/sysutils/*.inc) \
- objpas$(PPUEXT) dos$(PPUEXT) nwsys.inc sysconst$(PPUEXT)
- $(COMPILER) -Fi$(OBJPASDIR)/sysutils sysutils.pp
- classes$(PPUEXT) : classes.pp $(wildcard $(OBJPASDIR)/classes/*.inc) \
- sysutils$(PPUEXT) typinfo$(PPUEXT) rtlconsts$(PPUEXT) \
- sysconst$(PPUEXT) types$(PPUEXT) fgl$(PPUEXT) sortbase$(PPUEXT)
- $(COMPILER) -Fi$(OBJPASDIR)/classes classes.pp
- fgl$(PPUEXT) : $(OBJPASDIR)/fgl.pp objpas$(PPUEXT) types$(PPUEXT) system$(PPUEXT) sysutils$(PPUEXT) sortbase$(PPUEXT)
- $(COMPILER) $(OBJPASDIR)/fgl.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
- types$(PPUEXT) : $(OBJPASDIR)/types.pp objpas$(PPUEXT) math$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- $(COMPILER) $(OBJPASDIR)/types.pp
- rtlconsts$(PPUEXT) : $(OBJPASDIR)/rtlconsts.pp
- $(COMPILER) $(OBJPASDIR)/rtlconsts.pp
- sysconst$(PPUEXT) : $(OBJPASDIR)/sysconst.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- $(COMPILER) $(OBJPASDIR)/sysconst.pp
- #
- # Mac Pascal Model
- #
- macpas$(PPUEXT) : $(INC)/macpas.pp objpas$(PPUEXT) math$(PPUEXT)
- $(COMPILER) $(INC)/macpas.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
- lineinfo$(PPUEXT) : $(INC)/lineinfo.pp $(SYSTEMUNIT)$(PPUEXT)
- lnfodwrf$(PPUEXT) : $(INC)/lnfodwrf.pp $(SYSTEMUNIT)$(PPUEXT)
- charset$(PPUEXT) : $(INC)/charset.pp $(SYSTEMUNIT)$(PPUEXT)
- cpall$(PPUEXT): $(RTL)/charmaps/cpall.pas system$(PPUEXT) charset$(PPUEXT)
- $(COMPILER) -Fu$(INC) -Fi$(RTL)/charmaps $(RTL)/charmaps/cpall.pas
- cmem$(PPUEXT) : $(INC)/cmem.pp $(SYSTEMUNIT)$(PPUEXT)
- ctypes$(PPUEXT) : $(INC)/ctypes.pp $(SYSTEMUNIT)$(PPUEXT)
- fpwidestring$(PPUEXT): $(OBJPASDIR)/fpwidestring.pp charset$(PPUEXT) system$(PPUEXT)
- $(COMPILER) $(OBJPASDIR)/fpwidestring.pp
- character$(PPUEXT): $(OBJPASDIR)/character.pas sysutils$(PPUEXT) objpas$(PPUEXT) rtlconsts$(PPUEXT) unicodedata$(PPUEXT) system$(PPUEXT)
- $(COMPILER) $(OBJPASDIR)/character.pas
- unicodenumtable$(PPUEXT) : $(OBJPASDIR)/unicodenumtable.pas system$(PPUEXT)
- $(COMPILER) -Fi$(OBJPASDIR) $(OBJPASDIR)/unicodenumtable.pas
- unicodedata$(PPUEXT) : $(OBJPASDIR)/unicodedata.pas unicodenumtable$(PPUEXT) system$(PPUEXT)
- $(COMPILER) -Fi$(OBJPASDIR) $(OBJPASDIR)/unicodedata.pas
- sortbase$(PPUEXT) : $(INC)/sortbase.pp objpas$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- $(COMPILER) $<
- softfpu$(PPUEXT) : $(INC)/softfpu.pp $(SYSTEMUNIT)$(PPUEXT) objpas$(PPUEXT)
- $(COMPILER) $<
- sfpux80$(PPUEXT) : $(INC)/sfpux80.pp $(INC)/softfpu.pp $(SYSTEMUNIT)$(PPUEXT) objpas$(PPUEXT)
- $(COMPILER) $<
- sfpu128$(PPUEXT) : $(INC)/sfpu128.pp $(INC)/softfpu.pp $(SYSTEMUNIT)$(PPUEXT) objpas$(PPUEXT)
- $(COMPILER) $<
- ufloatx80$(PPUEXT) : $(INC)/ufloatx80.pp sfpux80$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- $(COMPILER) $<
- ufloat128$(PPUEXT) : $(INC)/ufloat128.pp sfpu128$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- $(COMPILER) $<
- #
- # Other system-dependent RTL Units
- #
- callspec$(PPUEXT) : $(INC)/callspec.pp $(SYSTEMUNIT)$(PPUEXT)
- aio$(PPUEXT) : aio.pp $(SYSTEMUNIT)$(PPUEXT)
- nwsnut$(PPUEXT) : nwsnut.pp nwserv$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
- nwserv$(PPUEXT) : $(SYSTEMUNIT)$(PPUEXT)
- nwcalls$(PPUEXT) : $(SYSTEMUNIT)$(PPUEXT)
- #
- # Netware-.imp files need to be installed in the unit-dir
- #
- override INSTALLPPUFILES+=$(IMPFILES)
- override CLEANPPUFILES+=$(addprefix $(COMPILER_UNITTARGETDIR)/,$(IMPFILES))
|