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.

144 lines
4.2 KiB

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