# # 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))