digimars.mak 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # Makefile to build Hans Boehm garbage collector using the Digital Mars
  2. # compiler from www.digitalmars.com
  3. # Written by Walter Bright
  4. DEFINES=-DNDEBUG -DSILENT -DGC_BUILD -D_WINDOWS -DGC_DLL -DALL_INTERIOR_POINTERS -D__STDC__ -DWIN32_THREADS
  5. CFLAGS=-Iinclude $(DEFINES) -wx -g
  6. LFLAGS=/ma/implib/co
  7. CC=sc
  8. .c.obj:
  9. $(CC) -c $(CFLAGS) $*
  10. .cpp.obj:
  11. $(CC) -c $(CFLAGS) -Aa $*
  12. OBJS= \
  13. allchblk.obj\
  14. alloc.obj\
  15. blacklst.obj\
  16. checksums.obj\
  17. dbg_mlc.obj\
  18. dyn_load.obj\
  19. finalize.obj\
  20. gc_cpp.obj\
  21. headers.obj\
  22. mach_dep.obj\
  23. malloc.obj\
  24. mallocx.obj\
  25. mark.obj\
  26. mark_rts.obj\
  27. misc.obj\
  28. new_hblk.obj\
  29. obj_map.obj\
  30. os_dep.obj\
  31. ptr_chck.obj\
  32. reclaim.obj\
  33. stubborn.obj\
  34. typd_mlc.obj\
  35. win32_threads.obj
  36. targets: gc.dll gc.lib gctest.exe
  37. gc.dll: $(OBJS) gc.def digimars.mak
  38. sc -ogc.dll $(OBJS) -L$(LFLAGS) gc.def kernel32.lib user32.lib
  39. gc.def: digimars.mak
  40. echo LIBRARY GC >gc.def
  41. echo DESCRIPTION "Hans Boehm Garbage Collector" >>gc.def
  42. echo EXETYPE NT >>gc.def
  43. echo EXPORTS >>gc.def
  44. echo GC_is_visible_print_proc >>gc.def
  45. echo GC_is_valid_displacement_print_proc >>gc.def
  46. clean:
  47. del gc.def
  48. del $(OBJS)
  49. gctest.exe : gc.lib tests\test.obj
  50. sc -ogctest.exe tests\test.obj gc.lib
  51. tests\test.obj : tests\test.c
  52. $(CC) -c -g -DNDEBUG -DSILENT -DGC_BUILD -D_WINDOWS -DGC_DLL \
  53. -DALL_INTERIOR_POINTERS -DWIN32_THREADS \
  54. -Iinclude tests\test.c -otests\test.obj
  55. allchblk.obj: allchblk.c
  56. alloc.obj: alloc.c
  57. blacklst.obj: blacklst.c
  58. checksums.obj: checksums.c
  59. dbg_mlc.obj: dbg_mlc.c
  60. dyn_load.obj: dyn_load.c
  61. finalize.obj: finalize.c
  62. gc_cpp.obj: gc_cpp.cpp
  63. headers.obj: headers.c
  64. mach_dep.obj: mach_dep.c
  65. malloc.obj: malloc.c
  66. mallocx.obj: mallocx.c
  67. mark.obj: mark.c
  68. mark_rts.obj: mark_rts.c
  69. misc.obj: misc.c
  70. new_hblk.obj: new_hblk.c
  71. obj_map.obj: obj_map.c
  72. os_dep.obj: os_dep.c
  73. ptr_chck.obj: ptr_chck.c
  74. reclaim.obj: reclaim.c
  75. stubborn.obj: stubborn.c
  76. typd_mlc.obj: typd_mlc.c
  77. win32_threads.obj: win32_threads.c