SMakefile.amiga 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. # Rewritten smakefile for amiga / sas/c. -Kjetil M.
  2. # Dont use the cord-package if you define parm=both or parm=reg.
  3. #----------------TOOLS--------------------------------
  4. CC=sc
  5. LINKER=slink
  6. LIBER=oml
  7. #----------------CPU OPTIONS--------------------------
  8. CPU=68060
  9. #----------------FPU OPTIONS--------------------------
  10. MATH=8
  11. MATHLIB=LIB:scm881.lib
  12. #----------------COMPILER OPTIONS---------------------
  13. IGNORE= IGNORE=85 IGNORE=154 IGNORE=161 IGNORE=100
  14. OPTIMIZE=optimize optimizetime optglobal optimizerdepth=100 optimizerpeephole optloop OPTSCHED optimizerinlocal optimizerrecurdepth=100
  15. # optimizerinline optimizercomplexity=100
  16. OPT= $(OPTIMIZE) CPU=$(CPU) math=$(MATH) NOSTACKCHECK VERBOSE \
  17. MAPHUNK NOVERSION NOICONS nodebug \
  18. DEFINE SILENT \
  19. parm=reg \
  20. DEFINE __USE_SYSBASE
  21. SOPT= $(OPT) $(IGNORE) \
  22. DEFINE AMIGA_SKIP_SEG \
  23. DEFINE ATOMIC_UNCOLLECTABLE \
  24. DEFINE GC_AMIGA_FASTALLOC \
  25. DEFINE GC_AMIGA_RETRY \
  26. DEFINE GC_AMIGA_PRINTSTATS \
  27. DEFINE GC_AMIGA_GC
  28. #DEFINE ALL_INTERIOR_POINTERS \
  29. SCOPT= $(SOPT) define GC_AMIGA_MAKINGLIB
  30. CSCOPT= $(OPT) DEFINE AMIGA IGNORE=100 IGNORE=161
  31. #------------------LINKING----------------------------
  32. all: gctest setjmp_t cord/cordtest
  33. clean:
  34. delete *.lib gctest setjmp_t *.o *.lnk cord/*.o cord/*.lib cord/*.lnk cord/cordtest
  35. smake
  36. test: setjmp_t gctest cord/cordtest
  37. setjmp_t
  38. gctest
  39. cord/cordtest
  40. gctest: gc$(CPU).lib GCAmigaOS$(CPU).lib test.o
  41. $(LINKER) LIB:c.o test.o TO gctest LIB gc$(CPU).lib LIB:sc.lib $(MATHLIB)
  42. setjmp_t: setjmp_t.o gc.h
  43. $(LINKER) LIB:c.o setjmp_t.o to setjmp_t lib LIB:sc.lib
  44. cord/cordtest: cord/cordtest.o cord/cord$(CPU).lib gc$(CPU).lib
  45. slink LIB:c.o cord/cordtest.o LIB $(MATHLIB) gc$(CPU).lib cord/cord$(CPU).lib LIB:sc.lib TO cord/cordtest
  46. #------------------LIBBING----------------------------
  47. OBJS= alloc.o reclaim.o allchblk.o misc.o mach_dep.o os_dep.o mark_rts.o headers.o mark.o obj_map.o blacklst.o finalize.o new_hblk.o real_malloc.o dyn_load.o dbg_mlc.o malloc.o stubborn.o checksums.o typd_mlc.o ptr_chck.o mallocx.o
  48. gc$(CPU).lib: $(OBJS)
  49. $(LIBER) gc$(CPU).lib r $(OBJS)
  50. COBJS = cord/cordbscs.o cord/cordprnt.o cord/cordxtra.o
  51. cord/cord$(CPU).lib: $(COBJS)
  52. oml cord/cord$(CPU).lib r $(COBJS)
  53. #------------------COMPILING--------------------------
  54. INC= gc_private.h gc_hdrs.h gc.h gcconfig.h
  55. alloc.o : alloc.c $(INC)
  56. $(CC) alloc.c $(SCOPT) ignore=7
  57. reclaim.o : reclaim.c $(INC)
  58. $(CC) reclaim.c $(SCOPT)
  59. allchblk.o : allchblk.c $(INC)
  60. $(CC) allchblk.c $(SCOPT)
  61. misc.o : misc.c $(INC)
  62. $(CC) misc.c $(SCOPT)
  63. os_dep.o : os_dep.c $(INC) AmigaOS.c
  64. $(CC) os_dep.c $(SCOPT)
  65. mark_rts.o : mark_rts.c $(INC)
  66. $(CC) mark_rts.c $(SCOPT)
  67. headers.o : headers.c $(INC)
  68. $(CC) headers.c $(SCOPT)
  69. mark.o : mark.c $(INC)
  70. $(CC) mark.c $(SCOPT)
  71. obj_map.o : obj_map.c $(INC)
  72. $(CC) obj_map.c $(SCOPT)
  73. blacklst.o : blacklst.c $(INC)
  74. $(CC) blacklst.c $(SCOPT)
  75. finalize.o : finalize.c $(INC)
  76. $(CC) finalize.c $(SCOPT) noopt #Could sas/c still have problems with this one? Gctest sometimes fails to finalize all.
  77. new_hblk.o : new_hblk.c $(INC)
  78. $(CC) new_hblk.c $(SCOPT)
  79. real_malloc.o : real_malloc.c $(INC)
  80. $(CC) real_malloc.c $(SCOPT)
  81. dyn_load.o : dyn_load.c $(INC)
  82. $(CC) dyn_load.c $(SCOPT)
  83. dbg_mlc.o : dbg_mlc.c $(INC)
  84. $(CC) dbg_mlc.c $(SCOPT)
  85. malloc.o : malloc.c $(INC)
  86. $(CC) malloc.c $(SCOPT)
  87. mallocx.o : mallocx.c $(INC)
  88. $(CC) mallocx.c $(SCOPT)
  89. stubborn.o : stubborn.c $(INC)
  90. $(CC) stubborn.c $(SCOPT)
  91. checksums.o : checksums.c $(INC)
  92. $(CC) checksums.c $(SCOPT)
  93. typd_mlc.o: typd_mlc.c $(INC)
  94. $(CC) typd_mlc.c $(SCOPT)
  95. mach_dep.o : mach_dep.c $(INC)
  96. $(CC) mach_dep.c $(SCOPT)
  97. ptr_chck.o: ptr_chck.c $(INC)
  98. $(CC) ptr_chck.c $(SCOPT)
  99. test.o : test.c $(INC)
  100. $(CC) test.c $(SOPT)
  101. setjmp_t: setjmp_t.c gc.h
  102. $(CC) setjmp_t.c $(SOPT)
  103. # cords:
  104. cord/cordbscs.o: cord/cordbscs.c
  105. sc cord/cordbscs.c $(CSCOPT)
  106. cord/cordprnt.o: cord/cordprnt.c
  107. sc cord/cordprnt.c $(CSCOPT)
  108. cord/cordxtra.o: cord/cordxtra.c
  109. sc cord/cordxtra.c $(CSCOPT)
  110. cord/cordtest.o: cord/cordtest.c
  111. sc cord/cordtest.c $(CSCOPT)