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
3.9 KiB

  1. # ---------------------------------------------------------------------------
  2. !if !$d(BCB)
  3. BCB = $(MAKEDIR)\..
  4. !endif
  5. # ---------------------------------------------------------------------------
  6. TARGETPATH=..\..\..\..\..\Build\Win32\BCC5
  7. PROJECT = $(TARGETPATH)\SAXPrint.exe
  8. OBJFILES = $(TARGETPATH)\obj\SAXPrint.obj \
  9. $(TARGETPATH)\obj\SAXPrintHandlers.obj
  10. RESFILES =
  11. MAINSOURCE = SAXPrint.cpp
  12. RESDEPEN = $(RESFILES)
  13. LIBFILES = $(TARGETPATH)\xerces-bor_$(XERCESVER).lib
  14. IDLFILES =
  15. IDLGENFILES =
  16. LIBRARIES =
  17. SPARELIBS =
  18. DEFFILE =
  19. # ---------------------------------------------------------------------------
  20. PATHCPP = ..\..\..\..\..\samples\src\SAXPrint
  21. PATHASM = .;
  22. PATHPAS = .;
  23. PATHRC = .;
  24. USERDEFINES = _DEBUG;XERCES_NO_CONFIGURE_SUPPORT
  25. SYSDEFINES = _NO_VCL;_VIS_NOLIB;_RTLDLL
  26. INCLUDEPATH = ..\..\..\..\..\samples\src\SAXPrint;..\..\..\..\..\src
  27. LIBPATH = ..\..\..\..\..\samples\src\SAXPrint
  28. WARNINGS=
  29. # ---------------------------------------------------------------------------
  30. CFLAG1 = -Od -w -Tkh30000 -X- -r- -a8 -5 -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 -D"" -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. # ---------------------------------------------------------------------------