# # Makefile.fpc for Free Pascal Netware RTL (Libc) # [package] main=rtl [target] loaders=nwplibc nwl_main nwl_dlle units=$(SYSTEMUNIT) $(UUCHARUNIT) $(OBJPASUNIT) $(MACPASUNIT) $(ISO7185UNIT) $(EXTPASUNIT) $(STRINGSUNIT) \ $(LINEINFOUNIT) $(LNFODWRFUNIT) $(HEAPTRCUNIT) \ nwsnut libc $(DOSUNIT) $(SYSCONSTUNIT) \ $(INITCUNIT) $(SYSUTILSUNIT) $(TYPESUNIT) $(TYPINFOUNIT) $(SORTBASEUNIT) $(FGLUNIT) $(CLASSESUNIT) \ $(CPUUNIT) $(MMXUNIT) $(GETOPTSUNIT) \ $(CHARSETUNIT) $(CPALLUNIT) \ $(RTLCONSTSUNIT) $(MATHUNIT) \ $(DYNLIBSUNIT) $(CMEMUNIT) $(CTYPESUNIT) \ $(SOFTFPUUNIT) $(SFPUX80UNIT) $(UFLOATX80UNIT) $(SFPU128UNIT) $(UFLOAT128UNIT) rsts=$(MATHUNIT) $(TYPINFOUNIT) $(CLASSESUNIT) $(SYSCONSTUNIT) $(RTLCONSTSUNIT) system implicitunits=$(EXEINFOUNIT) $(CP_UNITS) [require] nortl=y [install] fpcpackage=y [default] target=netwlibc [compiler] includedir=$(INC) $(PROCINC) sourcedir=$(INC) $(PROCINC) $(COMMON) [prerules] RTL=.. INC=$(RTL)/inc COMMON=$(RTL)/common PROCINC=$(RTL)/$(CPU_TARGET) UNITPREFIX=rtl IMPFILES=nwsnut.imp ws2_32.imp ws2nlm.imp libc.imp netware.imp \ libcclib.imp # nwplibc.o SYSUTILS_DEPS_OS = $(DOSUNIT)$(PPUEXT) libc.pp #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 # binutils are the same for targets netware and netwlibc override BINUTILSPREFIX=$(CPU_TARGET)-netware- [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 = libc.pp $(SYSINCDEPS) $(SYSCPUDEPS) copyimpfiles: $(COPY) $(IMPFILES) $(COMPILER_UNITTARGETDIR) # # Loaders # #nwpre$(OEXT) : nwpre.as # $(AS) -o nwpre$(OEXT) nwpre.as #prelude$(OEXT) : prelude.as # $(AS) -o prelude$(OEXT) prelude.as # for now use the gcc pre nwplibc$(OEXT) : cp pre/libcpre.gcc.o $(UNITTARGETDIRPREFIX)nwplibc$(OEXT) nwl_main$(OEXT) : nwl_main.as $(AS) -o $(UNITTARGETDIRPREFIX)nwl_main$(OEXT) nwl_main.as nwl_dlle$(OEXT) : nwl_dlle.as $(AS) -o $(UNITTARGETDIRPREFIX)nwl_dlle$(OEXT) nwl_dlle.as # # System Dependent Units # netware$(PPUEXT) : netware.pp $(SYSTEMUNIT)$(PPUEXT) $(COMPILER) -I$(WININC) netware.pp nwsnut$(PPUEXT) : nwsnut.pp ../netware/nwsnut.pp libc$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT) # # Other system-dependent RTL Units # aio$(PPUEXT) : aio.pp $(SYSTEMUNIT)$(PPUEXT) # # Netware-.imp files need to be installed in the unit-dir # override INSTALLPPUFILES+=$(IMPFILES) override CLEANPPUFILES+=$(addprefix $(COMPILER_UNITTARGETDIR)/,$(IMPFILES))