123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- #
- # Makefile.fpc for Free Pascal Netware RTL (clib)
- #
- [package]
- main=rtl
- [target]
- loaders=nwpre prelude
- units=$(SYSTEMUNIT) $(UUCHARUNIT) $(OBJPASUNIT) $(MACPASUNIT) $(ISO7185UNIT) $(EXTPASUNIT) $(STRINGSUNIT) \
- $(DOSUNIT) $(SYSCONSTUNIT) \
- $(INITCUNIT) $(SYSUTILSUNIT) $(SORTBASEUNIT) $(FGLUNIT) $(CLASSESUNIT) $(MATHUNIT) $(TYPINFOUNIT) \
- $(CHARSETUNIT) $(CPALLUNIT) $(MMXUNIT) $(GETOPTSUNIT) \
- $(HEAPTRCUNIT) $(LINEINFOUNIT) $(LNFODWRFUNIT) $(DYNLIBSUNIT) \
- $(CTYPESUNIT) $(TYPESUNIT) $(RTLCONSTSUNIT) \
- $(FPWIDESTRINGUNIT) $(CHARACTERUNIT) $(CMEMUNIT) \
- aio nwsnut nwserv nwnit nwprot netware nwcalls nwpre \
- $(SOFTFPUUNIT) $(SFPUX80UNIT) $(UFLOATX80UNIT) $(SPFU128UNIT) $(UFLOAT128UNIT)
- rsts=$(MATHUNIT) $(TYPINFOUNIT) pmhelp $(CLASSESUNIT) $(SYSCONSTUNIT)
- implicitunits=$(EXEINFOUNIT) $(CP_UNITS) $(UNICODEDATAUNIT)
- [require]
- nortl=y
- [install]
- fpcpackage=y
- [default]
- 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
- ifndef FPC_DOTTEDUNITS
- RTLCONSTSUNIT=rtlconst
- endif
- DOS_DEPS_OS=$(STRINGSUNIT)$(PPUEXT)
- SYSUTILS_DEPS_OS=$(DOSUNIT)$(PPUEXT)
- INITC_DEPS_OS=$(OSDIR)/nwsys.inc
- #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 Dependent Units
- #
- nwpre$(PPUEXT) : nwpre.pp $(SYSTEMUNIT)$(PPUEXT)
- netware$(PPUEXT) : netware.pp $(SYSTEMUNIT)$(PPUEXT)
- #
- # Other system-dependent RTL Units
- #
- 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))
|