PageRenderTime 58ms CodeModel.GetById 7ms app.highlight 46ms RepoModel.GetById 2ms app.codeStats 0ms

/vendor/gc/SMakefile.amiga

http://github.com/feyeleanor/RubyGoLightly
Unknown | 177 lines | 110 code | 67 blank | 0 comment | 0 complexity | cba6976b213d231142bee90134605568 MD5 | raw file
  1
  2# Rewritten smakefile for amiga / sas/c. -Kjetil M.
  3# Dont use the cord-package if you define parm=both or parm=reg.
  4
  5
  6#----------------TOOLS--------------------------------
  7CC=sc
  8LINKER=slink
  9LIBER=oml
 10
 11#----------------CPU OPTIONS--------------------------
 12
 13CPU=68060
 14
 15#----------------FPU OPTIONS--------------------------
 16
 17MATH=8
 18MATHLIB=LIB:scm881.lib
 19
 20#----------------COMPILER OPTIONS---------------------
 21
 22IGNORE= IGNORE=85 IGNORE=154 IGNORE=161 IGNORE=100 
 23
 24OPTIMIZE=optimize optimizetime optglobal optimizerdepth=100 optimizerpeephole optloop OPTSCHED optimizerinlocal optimizerrecurdepth=100
 25# optimizerinline optimizercomplexity=100
 26
 27OPT= $(OPTIMIZE) CPU=$(CPU) math=$(MATH) NOSTACKCHECK VERBOSE \
 28MAPHUNK NOVERSION NOICONS nodebug \
 29parm=reg \
 30DEFINE __USE_SYSBASE
 31
 32
 33SOPT= $(OPT) $(IGNORE) \
 34DEFINE AMIGA_SKIP_SEG \
 35DEFINE ATOMIC_UNCOLLECTABLE \
 36DEFINE GC_AMIGA_FASTALLOC \
 37DEFINE GC_AMIGA_RETRY \
 38DEFINE GC_AMIGA_PRINTSTATS \
 39DEFINE GC_AMIGA_GC
 40
 41
 42#DEFINE ALL_INTERIOR_POINTERS \
 43
 44
 45SCOPT= $(SOPT) define GC_AMIGA_MAKINGLIB
 46
 47CSCOPT= $(OPT) DEFINE AMIGA IGNORE=100 IGNORE=161 
 48
 49#------------------LINKING----------------------------
 50
 51
 52all: gctest setjmp_t cord/cordtest
 53
 54clean:
 55   delete *.lib gctest setjmp_t *.o *.lnk cord/*.o cord/*.lib cord/*.lnk cord/cordtest
 56	smake
 57
 58test: setjmp_t gctest cord/cordtest
 59   setjmp_t
 60   gctest
 61   cord/cordtest
 62
 63gctest: gc$(CPU).lib GCAmigaOS$(CPU).lib test.o
 64   $(LINKER) LIB:c.o test.o TO gctest LIB gc$(CPU).lib LIB:sc.lib $(MATHLIB)
 65
 66setjmp_t: setjmp_t.o gc.h
 67   $(LINKER) LIB:c.o setjmp_t.o to setjmp_t lib LIB:sc.lib
 68
 69cord/cordtest: cord/cordtest.o cord/cord$(CPU).lib gc$(CPU).lib
 70	slink LIB:c.o cord/cordtest.o LIB $(MATHLIB) gc$(CPU).lib cord/cord$(CPU).lib LIB:sc.lib TO cord/cordtest
 71
 72
 73#------------------LIBBING----------------------------
 74
 75OBJS= 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
 76
 77gc$(CPU).lib: $(OBJS)
 78   $(LIBER) gc$(CPU).lib r $(OBJS)
 79
 80
 81COBJS = cord/cordbscs.o cord/cordprnt.o cord/cordxtra.o
 82
 83cord/cord$(CPU).lib: $(COBJS)
 84	oml cord/cord$(CPU).lib r $(COBJS)
 85
 86#------------------COMPILING--------------------------
 87
 88INC=  gc_private.h gc_hdrs.h gc.h gcconfig.h
 89
 90alloc.o : alloc.c $(INC)
 91	$(CC) alloc.c $(SCOPT) ignore=7
 92
 93reclaim.o : reclaim.c $(INC)
 94	$(CC) reclaim.c $(SCOPT)
 95
 96allchblk.o : allchblk.c $(INC)
 97	$(CC) allchblk.c $(SCOPT)
 98
 99misc.o : misc.c $(INC)
100	$(CC) misc.c $(SCOPT)
101
102os_dep.o : os_dep.c $(INC) AmigaOS.c
103	$(CC) os_dep.c $(SCOPT)
104
105mark_rts.o : mark_rts.c $(INC)
106	$(CC) mark_rts.c $(SCOPT)
107
108headers.o : headers.c $(INC)
109	$(CC) headers.c $(SCOPT)
110
111mark.o : mark.c $(INC)
112	$(CC) mark.c $(SCOPT)
113
114obj_map.o : obj_map.c $(INC)
115	$(CC) obj_map.c $(SCOPT)
116
117blacklst.o : blacklst.c $(INC)
118	$(CC) blacklst.c $(SCOPT)
119
120finalize.o : finalize.c $(INC)
121	$(CC) finalize.c $(SCOPT) noopt	#Could sas/c still have problems with this one? Gctest sometimes fails to finalize all.
122
123new_hblk.o : new_hblk.c $(INC)
124	$(CC) new_hblk.c $(SCOPT)
125
126real_malloc.o : real_malloc.c $(INC)
127	$(CC) real_malloc.c $(SCOPT)
128
129dyn_load.o : dyn_load.c $(INC)
130	$(CC) dyn_load.c $(SCOPT)
131
132dbg_mlc.o : dbg_mlc.c $(INC)
133	$(CC) dbg_mlc.c $(SCOPT)
134
135malloc.o : malloc.c $(INC)
136	$(CC) malloc.c $(SCOPT)
137
138mallocx.o : mallocx.c $(INC)
139	$(CC) mallocx.c $(SCOPT)
140
141stubborn.o : stubborn.c $(INC)
142	$(CC) stubborn.c $(SCOPT)
143
144checksums.o : checksums.c $(INC)
145	$(CC) checksums.c $(SCOPT)
146
147typd_mlc.o: typd_mlc.c $(INC)
148	$(CC) typd_mlc.c $(SCOPT)
149
150mach_dep.o : mach_dep.c $(INC)
151	$(CC) mach_dep.c $(SCOPT)
152
153ptr_chck.o: ptr_chck.c $(INC)
154	$(CC) ptr_chck.c $(SCOPT)
155
156test.o : test.c $(INC)
157	$(CC) test.c $(SOPT)
158
159setjmp_t: setjmp_t.c gc.h
160   $(CC) setjmp_t.c $(SOPT)
161
162
163# cords:
164
165cord/cordbscs.o: cord/cordbscs.c
166	sc cord/cordbscs.c $(CSCOPT)
167
168cord/cordprnt.o: cord/cordprnt.c
169	sc cord/cordprnt.c $(CSCOPT)
170
171cord/cordxtra.o: cord/cordxtra.c
172	sc cord/cordxtra.c $(CSCOPT)
173
174cord/cordtest.o: cord/cordtest.c
175	sc cord/cordtest.c $(CSCOPT)
176
177