BCC_MAKEFILE 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Makefile for Borland C++ 5.5 on NT
  2. # If you have the Borland assembler, remove "-DUSE_GENERIC"
  3. #
  4. bc= c:\Borland\BCC55
  5. bcbin= $(bc)\bin
  6. bclib= $(bc)\lib
  7. bcinclude= $(bc)\include
  8. gcinclude1 = $(bc)\gc6.2\include
  9. gcinclude2 = $(bc)\gc6.2\cord
  10. cc= $(bcbin)\bcc32
  11. rc= $(bcbin)\brc32
  12. lib= $(bcbin)\tlib
  13. link= $(bcbin)\ilink32
  14. cflags= -O2 -R -v- -vi -H -H=gc.csm -I$(bcinclude);$(gcinclude1);$(gcinclude2) -L$(bclib) \
  15. -w-pro -w-aus -w-par -w-ccc -w-rch -a4 -D__STDC__=0
  16. #defines= -DSILENT
  17. defines= -DSILENT -DALL_INTERIOR_POINTERS -DUSE_GENERIC -DNO_GETENV -DJAVA_FINALIZATION -DGC_OPERATOR_NEW_ARRAY
  18. .c.obj:
  19. $(cc) @&&|
  20. $(cdebug) $(cflags) $(cvars) $(defines) -o$* -c $*.c
  21. |
  22. .cpp.obj:
  23. $(cc) @&&|
  24. $(cdebug) $(cflags) $(cvars) $(defines) -o$* -c $*.cpp
  25. |
  26. .rc.res:
  27. $(rc) -i$(bcinclude) -r -fo$* $*.rc
  28. XXXOBJS= XXXalloc.obj XXXreclaim.obj XXXallchblk.obj XXXmisc.obj \
  29. XXXmach_dep.obj XXXos_dep.obj XXXmark_rts.obj XXXheaders.obj XXXmark.obj \
  30. XXXobj_map.obj XXXblacklst.obj XXXfinalize.obj XXXnew_hblk.obj \
  31. XXXdbg_mlc.obj XXXmalloc.obj XXXstubborn.obj XXXdyn_load.obj \
  32. XXXtypd_mlc.obj XXXptr_chck.obj XXXgc_cpp.obj XXXmallocx.obj
  33. OBJS= $(XXXOBJS:XXX=)
  34. all: gctest.exe cord\de.exe test_cpp.exe
  35. $(OBJS) test.obj: include\private\gc_priv.h include\private\gc_hdrs.h include\gc.h include\private\gcconfig.h MAKEFILE
  36. gc.lib: $(OBJS)
  37. del gc.lib
  38. $(lib) $* @&&|
  39. $(XXXOBJS:XXX=+)
  40. |
  41. gctest.exe: tests\test.obj gc.lib
  42. $(cc) @&&|
  43. $(cflags) -W -e$* tests\test.obj gc.lib
  44. |
  45. cord\de.obj cord\de_win.obj: include\cord.h include\private\cord_pos.h cord\de_win.h \
  46. cord\de_cmds.h
  47. cord\de.exe: cord\cordbscs.obj cord\cordxtra.obj cord\de.obj cord\de_win.obj \
  48. cord\de_win.res gc.lib
  49. $(cc) @&&|
  50. $(cflags) -W -e$* cord\cordbscs.obj cord\cordxtra.obj \
  51. cord\de.obj cord\de_win.obj gc.lib
  52. |
  53. $(rc) cord\de_win.res cord\de.exe
  54. gc_cpp.obj: include\gc_cpp.h include\gc.h
  55. gc_cpp.cpp: gc_cpp.cc
  56. copy gc_cpp.cc gc_cpp.cpp
  57. test_cpp.cpp: tests\test_cpp.cc
  58. copy tests\test_cpp.cc test_cpp.cpp
  59. test_cpp.exe: test_cpp.obj include\gc_cpp.h include\gc.h gc.lib
  60. $(cc) @&&|
  61. $(cflags) -W -e$* test_cpp.obj gc.lib
  62. |
  63. scratch:
  64. -del *.obj *.res *.exe *.csm cord\*.obj cord\*.res cord\*.exe cord\*.csm
  65. clean:
  66. del gc.lib
  67. del *.obj
  68. del tests\test.obj