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.

142 lines
4.0 KiB

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