/jcl/source/windows/obj/bzip2/win32/makefile.mak

https://github.com/the-Arioch/jcl · Makefile · 106 lines · 32 code · 17 blank · 57 comment · 0 complexity · 26c3c46954580fbba55eff4215b955ae MD5 · raw file

  1. #
  2. # makefile to make bzip2 .obj files using Borland's C++ compiler bcc32
  3. # derived from a makefile generated by BCB6' bpr2mak
  4. #
  5. # if bzip2 source directory is different from ..\..\..\..\..\..\thirdparty\bzip2\bzip2-1.0.6, use
  6. # "make -Dbzip2src=<path to bzip2 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 = -pc
  36. !if !$d(BCB)
  37. BCB = $(MAKEDIR)\..
  38. !endif
  39. BCC = $(BCB)
  40. !if !$d(bzip2src)
  41. bzip2src = ..\..\..\..\..\..\thirdparty\bzip2\bzip2-1.0.6
  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 = .\bzlib.obj .\randtable.obj .\crctable.obj .\compress.obj \
  56. .\decompress.obj .\huffman.obj .\blocksort.obj
  57. # ---------------------------------------------------------------------------
  58. DEBUGLIBPATH = $(BCB)\lib\debug
  59. RELEASELIBPATH = $(BCB)\lib\release
  60. USERDEFINES =
  61. SYSDEFINES = BZ_EXPORT;BZ_NO_STDIO
  62. INCLUDEPATH = $(bzip2src);$(BCC)\include;$(BCB)\include\vcl
  63. # LIBPATH = $(bzip2src)
  64. WARNINGS= -w-par -w-aus
  65. PATHC = .;$(bzip2src)
  66. # PATHOBJ = .;$(LIBPATH)
  67. # ---------------------------------------------------------------------------
  68. CFLAG1 = -O2 -Ve -X- -a8 -$(CPU) -b -d -k- -vi -tWM $(CallingConvention)
  69. # ---------------------------------------------------------------------------
  70. # MAKE SECTION
  71. # ---------------------------------------------------------------------------
  72. # This section of the project file is not used by the BCB IDE. It is for
  73. # the benefit of building from the command-line using the MAKE utility.
  74. # ---------------------------------------------------------------------------
  75. .autodepend
  76. # ---------------------------------------------------------------------------
  77. !if !$d(BCC32)
  78. BCC32 = bcc32
  79. !endif
  80. # ---------------------------------------------------------------------------
  81. !if $d(PATHC)
  82. .PATH.C = $(PATHC)
  83. !endif
  84. # ---------------------------------------------------------------------------
  85. bzip2: $(OBJFILES)
  86. # ---------------------------------------------------------------------------
  87. .c.obj:
  88. $(BCC)\BIN\$(BCC32) -c $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
  89. # ---------------------------------------------------------------------------