You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

141 lines
4.0 KiB

  1. # ---------------------------------------------------------------------------
  2. !if !$d(BCB)
  3. BCB = $(MAKEDIR)\..
  4. !endif
  5. # ---------------------------------------------------------------------------
  6. TARGETPATH=..\..\..\..\..\Build\Win32\BCC5
  7. PROJECT = $(TARGETPATH)\EncodingTest.exe
  8. OBJFILES = $(TARGETPATH)\obj\EncodingTest.obj
  9. RESFILES =
  10. MAINSOURCE = EncodingTest.cpp
  11. RESDEPEN = $(RESFILES)
  12. LIBFILES = $(TARGETPATH)\xerces-bor_$(XERCESVER).lib
  13. IDLFILES =
  14. IDLGENFILES =
  15. LIBRARIES =
  16. SPARELIBS =
  17. DEFFILE =
  18. # ---------------------------------------------------------------------------
  19. PATHCPP = ..\..\..\..\..\tests\src\EncodingTest;
  20. PATHASM = .;
  21. PATHPAS = .;
  22. PATHRC = .;
  23. USERDEFINES = _DEBUG;XERCES_NO_CONFIGURE_SUPPORT
  24. SYSDEFINES = _NO_VCL;_VIS_NOLIB;_RTLDLL
  25. INCLUDEPATH = ..\..\..\..\..\tests\src\EncodingTest;..\..\..\..\..\src
  26. LIBPATH =
  27. WARNINGS=
  28. # ---------------------------------------------------------------------------
  29. CFLAG1 = -Od -w -Tkh30000 -X- -r- -a8 -5 -b -k -y -v -vi- -c -tWM -tWC
  30. IDLCFLAGS = -src_suffix cpp -boa
  31. PFLAGS = -N2$(TARGETPATH)\obj \
  32. -N0$(TARGETPATH)\obj -$YD -$W -$O- -v -JPHN -M
  33. RFLAGS =
  34. AFLAGS = /mx /w2 /zd
  35. LFLAGS = -I$(TARGETPATH)\obj -D"" -ap -Tpe -x -Gn -v
  36. # ---------------------------------------------------------------------------
  37. ALLOBJ = c0x32.obj $(OBJFILES)
  38. ALLRES = $(RESFILES)
  39. ALLLIB = $(LIBFILES) import32.lib cw32mti.lib
  40. # ---------------------------------------------------------------------------
  41. # ---------------------------------------------------------------------------
  42. # MAKE SECTION
  43. # ---------------------------------------------------------------------------
  44. # This section of the project file is not used by the BCB IDE. It is for
  45. # the benefit of building from the command-line using the MAKE utility.
  46. # ---------------------------------------------------------------------------
  47. .autodepend
  48. # ---------------------------------------------------------------------------
  49. !if "$(USERDEFINES)" != ""
  50. AUSERDEFINES = -d$(USERDEFINES:;= -d)
  51. !else
  52. AUSERDEFINES =
  53. !endif
  54. !if !$d(BCC32)
  55. BCC32 = bcc32
  56. !endif
  57. !if !$d(CPP32)
  58. CPP32 = cpp32
  59. !endif
  60. !if !$d(DCC32)
  61. DCC32 = dcc32
  62. !endif
  63. !if !$d(TASM32)
  64. TASM32 = tasm32
  65. !endif
  66. !if !$d(LINKER)
  67. LINKER = ilink32
  68. !endif
  69. !if !$d(BRCC32)
  70. BRCC32 = brcc32
  71. !endif
  72. # ---------------------------------------------------------------------------
  73. !if $d(PATHCPP)
  74. .PATH.CPP = $(PATHCPP)
  75. .PATH.C = $(PATHCPP)
  76. !endif
  77. !if $d(PATHPAS)
  78. .PATH.PAS = $(PATHPAS)
  79. !endif
  80. !if $d(PATHASM)
  81. .PATH.ASM = $(PATHASM)
  82. !endif
  83. !if $d(PATHRC)
  84. .PATH.RC = $(PATHRC)
  85. !endif
  86. # ---------------------------------------------------------------------------
  87. $(PROJECT): $(IDLGENFILES) $(OBJFILES) $(RESDEPEN) $(DEFFILE)
  88. $(BCB)\BIN\$(LINKER) @&&!
  89. $(LFLAGS) -L$(LIBPATH) +
  90. $(ALLOBJ), +
  91. $(PROJECT),, +
  92. $(ALLLIB), +
  93. $(DEFFILE), +
  94. $(ALLRES)
  95. !
  96. # ---------------------------------------------------------------------------
  97. .pas.hpp:
  98. $(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
  99. .pas.obj:
  100. $(BCB)\BIN\$(DCC32) $(PFLAGS) -U$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -O$(INCLUDEPATH) --BCB {$< }
  101. .cpp.obj:
  102. $(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
  103. .c.obj:
  104. $(BCB)\BIN\$(BCC32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n$(@D) {$< }
  105. .c.i:
  106. $(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
  107. .cpp.i:
  108. $(BCB)\BIN\$(CPP32) $(CFLAG1) $(WARNINGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -n. {$< }
  109. .asm.obj:
  110. $(BCB)\BIN\$(TASM32) $(AFLAGS) -i$(INCLUDEPATH:;= -i) $(AUSERDEFINES) -d$(SYSDEFINES:;= -d) $<, $@
  111. .rc.res:
  112. $(BCB)\BIN\$(BRCC32) $(RFLAGS) -I$(INCLUDEPATH) -D$(USERDEFINES);$(SYSDEFINES) -fo$@ $<
  113. # ---------------------------------------------------------------------------