makefile.mak 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. #
  2. # makefile to make pcre .obj files using Borland's C++ compiler bcc32
  3. # derived from a makefile generated by BCB6' bpr2mak
  4. #
  5. # if pcre source directory is different from $(JCL)\source\pcre-7.7, use
  6. # "make -Dpcresrc=<path to pcre sources>" to tell make where to find the
  7. # source files
  8. #
  9. # Make.exe needs to reside in the same directory as bcc32.exe.
  10. # For example, if you have Borlands free C++ v. 5.5 compiler (available from
  11. # http://www.borland.com/products/downloads/download_cbuilder.html#) installed:
  12. #
  13. # >C:\Program Files\Borland\BCC55\Bin\make
  14. #
  15. # or, if you want to use C++ Builder 6:
  16. #
  17. # >C:\Program Files\Borland\CBuilder6\Bin\make
  18. #
  19. # or, if you want to use Borland Developer Studio 2006:
  20. #
  21. # >C:\Program files\Borland\BDS\4.0\bin\make
  22. #
  23. # To choose the target CPU, pass "-DCPU=n" as option to make, with n being a
  24. # number between 3 and 6, with the following meanings:
  25. #
  26. # n Target CPU (or compatible)
  27. # --------------------------------
  28. # 3 80386
  29. # 4 80486
  30. # 5 Pentium (default)
  31. # 6 Pentium Pro
  32. #
  33. # Robert Rossmair, 2004-10-16
  34. #
  35. CallingConvention = -pr
  36. !if !$d(BCB)
  37. BCB = $(MAKEDIR)\..
  38. !endif
  39. BCC = $(BCB)
  40. !if !$d(pcresrc)
  41. pcresrc = ..\..\..\pcre-7.7
  42. !endif
  43. !if !$d(CPU)
  44. CPU = 5 # Pentium
  45. !endif
  46. # ---------------------------------------------------------------------------
  47. # IDE SECTION
  48. # ---------------------------------------------------------------------------
  49. # The following section of the project makefile is managed by the BCB IDE.
  50. # It is recommended to use the IDE to change any of the values in this
  51. # section.
  52. # ---------------------------------------------------------------------------
  53. VERSION = BCB.06.00
  54. # ---------------------------------------------------------------------------
  55. OBJFILES = .\pcre_compile.obj .\pcre_config.obj .\pcre_dfa_exec.obj \
  56. .\pcre_exec.obj .\pcre_fullinfo.obj .\pcre_get.obj .\pcre_globals.obj \
  57. .\pcre_info.obj .\pcre_maketables.obj .\pcre_newline.obj \
  58. .\pcre_ord2utf8.obj .\pcre_refcount.obj .\pcre_study.obj .\pcre_tables.obj \
  59. .\pcre_try_flipped.obj .\pcre_ucd.obj .\pcre_valid_utf8.obj \
  60. .\pcre_version.obj .\pcre_xclass.obj .\pcre_default_tables.obj
  61. # ---------------------------------------------------------------------------
  62. DEBUGLIBPATH = $(BCB)\lib\debug
  63. RELEASELIBPATH = $(BCB)\lib\release
  64. USERDEFINES = SUPPORT_UTF8;SUPPORT_UCP
  65. SYSDEFINES = NO_STRICT;_NO_VCL;_RTLDLL
  66. INCLUDEPATH = $(pcresrc);$(BCC)\include;$(BCB)\include\vcl
  67. LIBPATH = $(BCB)\lib\obj;$(BCB)\lib
  68. # LIBPATH = $(pcresrc)
  69. WARNINGS= -wpar -w-aus
  70. PATHC = .;$(pcresrc)
  71. # PATHOBJ = .;$(LIBPATH)
  72. ALLLIB = import32.lib cw32i.lib
  73. # ---------------------------------------------------------------------------
  74. CFLAG1 = -O2 -Ve -X- -a8 -$(CPU) -b -d -k- -vi -tWM- -DHAVE_CONFIG_H
  75. LFLAGS = -D"" -ap -Tpe -x -Gn
  76. # ---------------------------------------------------------------------------
  77. # MAKE SECTION
  78. # ---------------------------------------------------------------------------
  79. # This section of the project file is not used by the BCB IDE. It is for
  80. # the benefit of building from the command-line using the MAKE utility.
  81. # ---------------------------------------------------------------------------
  82. .autodepend
  83. # ---------------------------------------------------------------------------
  84. !if !$d(BCC32)
  85. BCC32 = bcc32
  86. !endif
  87. !if !$d(LINKER)
  88. LINKER = ilink32
  89. !endif
  90. # ---------------------------------------------------------------------------
  91. !if $d(PATHC)
  92. .PATH.C = $(PATHC)
  93. !endif
  94. # ---------------------------------------------------------------------------
  95. pcre: includes tables $(OBJFILES)
  96. # ---------------------------------------------------------------------------
  97. .c.obj:
  98. $(BCC)\BIN\$(BCC32) -c $(CFLAG1) $(CallingConvention) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
  99. includes:
  100. copy /Y $(pcresrc)\pcre.h.generic $(pcresrc)\pcre.h
  101. copy /Y $(pcresrc)\config.h.generic $(pcresrc)\config.h
  102. tables:
  103. $(BCC)\BIN\$(BCC32) -c -tWC $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n.\ $(pcresrc)\dftables.c
  104. $(BCC)\BIN\$(LINKER) $(LFLAGS) -L$(LIBPATH) c0x32.obj .\dftables.obj, .\dftables.exe,, $(ALLLIB),,
  105. del dftables.tds
  106. del dftables.obj
  107. dftables.exe pcre_default_tables.c
  108. del dftables.exe
  109. # ---------------------------------------------------------------------------