Makefile.fpc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. #
  2. # Makefile.fpc for Free Pascal Netware RTL (clib)
  3. #
  4. [package]
  5. main=rtl
  6. [target]
  7. loaders=nwpre prelude
  8. units=$(SYSTEMUNIT) $(UUCHARUNIT) $(OBJPASUNIT) $(MACPASUNIT) $(ISO7185UNIT) $(EXTPASUNIT) $(STRINGSUNIT) \
  9. $(DOSUNIT) $(SYSCONSTUNIT) \
  10. $(INITCUNIT) $(SYSUTILSUNIT) $(SORTBASEUNIT) $(FGLUNIT) $(CLASSESUNIT) $(MATHUNIT) $(TYPINFOUNIT) \
  11. $(CHARSETUNIT) $(CPALLUNIT) $(MMXUNIT) $(GETOPTSUNIT) \
  12. $(HEAPTRCUNIT) $(LINEINFOUNIT) $(LNFODWRFUNIT) $(DYNLIBSUNIT) \
  13. $(CTYPESUNIT) $(TYPESUNIT) $(RTLCONSTSUNIT) \
  14. $(FPWIDESTRINGUNIT) $(CHARACTERUNIT) $(CMEMUNIT) \
  15. aio nwsnut nwserv nwnit nwprot netware nwcalls nwpre \
  16. $(SOFTFPUUNIT) $(SFPUX80UNIT) $(UFLOATX80UNIT) $(SPFU128UNIT) $(UFLOAT128UNIT)
  17. rsts=$(MATHUNIT) $(TYPINFOUNIT) pmhelp $(CLASSESUNIT) $(SYSCONSTUNIT)
  18. implicitunits=$(EXEINFOUNIT) $(CP_UNITS) $(UNICODEDATAUNIT)
  19. [require]
  20. nortl=y
  21. [install]
  22. fpcpackage=y
  23. [default]
  24. target=netware
  25. cpu=i386
  26. [compiler]
  27. includedir=$(INC) $(PROCINC)
  28. sourcedir=$(INC) $(PROCINC) $(COMMON)
  29. [prerules]
  30. RTL=..
  31. INC=$(RTL)/inc
  32. COMMON=$(RTL)/common
  33. PROCINC=$(RTL)/$(CPU_TARGET)
  34. UNITPREFIX=rtl
  35. ifndef FPC_DOTTEDUNITS
  36. RTLCONSTSUNIT=rtlconst
  37. endif
  38. DOS_DEPS_OS=$(STRINGSUNIT)$(PPUEXT)
  39. SYSUTILS_DEPS_OS=$(DOSUNIT)$(PPUEXT)
  40. INITC_DEPS_OS=$(OSDIR)/nwsys.inc
  41. #debug, -a: dont delete asm, -al include lines
  42. #override FPCOPT+=-a
  43. #override FPCOPT+=-al
  44. # for netware always use multithread
  45. override FPCOPT+=-dMT
  46. # and alway use smartlinking
  47. CREATESMART=1
  48. # Paths
  49. OBJPASDIR=$(RTL)/objpas
  50. # Imp-Files
  51. IMPFILES=aio.imp audnlm32.imp \
  52. calnlm32.imp ccs.imp ccs-os.imp clibaux.imp \
  53. clibctx.imp clib.imp clxnlm32.imp dplsv386.imp \
  54. dsapi.imp dsevent.imp lib0.imp \
  55. locnlm32.imp ndpsrpc.imp netnlm32.imp nit.imp \
  56. nlmlib.imp nwpsrv3x.imp nwpsrv.imp nwsnut.imp \
  57. requestr.imp socklib.imp streams.imp threads.imp \
  58. tli.imp vollib.imp ws2_32.imp ws2nlm.imp unicode.imp \
  59. nwpre.imp
  60. [rules]
  61. .NOTPARALLEL:
  62. SYSTEMPPU=$(addsuffix $(PPUEXT),$(SYSTEMUNIT))
  63. # Get the system independent include file names.
  64. # This will set the following variables :
  65. # SYSINCNAMES
  66. include $(INC)/makefile.inc
  67. SYSINCDEPS=$(addprefix $(INC)/,$(SYSINCNAMES))
  68. # Get the processor dependent include file names.
  69. # This will set the following variables :
  70. # CPUINCNAMES
  71. include $(PROCINC)/makefile.cpu
  72. SYSCPUDEPS=$(addprefix $(PROCINC)/,$(CPUINCNAMES))
  73. # Put system unit dependencies together.
  74. SYSDEPS=$(SYSINCDEPS) $(SYSCPUDEPS)
  75. copyimpfiles:
  76. $(COPY) $(IMPFILES) $(COMPILER_UNITTARGETDIR)
  77. #
  78. # Loaders
  79. #
  80. #nwpre$(OEXT) : nwpre.as
  81. # $(AS) -o $(UNITTARGETDIRPREFIX)nwpre$(OEXT) nwpre.as
  82. #prelude$(OEXT) : prelude.as
  83. # $(AS) -o $(UNITTARGETDIRPREFIX)prelude$(OEXT) prelude.as
  84. #
  85. # System Dependent Units
  86. #
  87. nwpre$(PPUEXT) : nwpre.pp $(SYSTEMUNIT)$(PPUEXT)
  88. netware$(PPUEXT) : netware.pp $(SYSTEMUNIT)$(PPUEXT)
  89. #
  90. # Other system-dependent RTL Units
  91. #
  92. aio$(PPUEXT) : aio.pp $(SYSTEMUNIT)$(PPUEXT)
  93. nwsnut$(PPUEXT) : nwsnut.pp nwserv$(PPUEXT) $(SYSTEMUNIT)$(PPUEXT)
  94. nwserv$(PPUEXT) : $(SYSTEMUNIT)$(PPUEXT)
  95. nwcalls$(PPUEXT) : $(SYSTEMUNIT)$(PPUEXT)
  96. #
  97. # Netware-.imp files need to be installed in the unit-dir
  98. #
  99. override INSTALLPPUFILES+=$(IMPFILES)
  100. override CLEANPPUFILES+=$(addprefix $(COMPILER_UNITTARGETDIR)/,$(IMPFILES))