gcc/boehm-gc/SMakefile.amiga

179 lines
4.0 KiB
Plaintext
Raw Normal View History

1999-04-07 16:01:30 +08:00
# Rewritten smakefile for amiga / sas/c. -Kjetil M.
# Dont use the cord-package if you define parm=both or parm=reg.
#----------------TOOLS--------------------------------
CC=sc
LINKER=slink
LIBER=oml
#----------------CPU OPTIONS--------------------------
CPU=68060
#----------------FPU OPTIONS--------------------------
MATH=8
MATHLIB=LIB:scm881.lib
#----------------COMPILER OPTIONS---------------------
IGNORE= IGNORE=85 IGNORE=154 IGNORE=161 IGNORE=100
OPTIMIZE=optimize optimizetime optglobal optimizerdepth=100 optimizerpeephole optloop OPTSCHED optimizerinlocal optimizerrecurdepth=100
# optimizerinline optimizercomplexity=100
OPT= $(OPTIMIZE) CPU=$(CPU) math=$(MATH) NOSTACKCHECK VERBOSE \
MAPHUNK NOVERSION NOICONS nodebug \
DEFINE SILENT \
parm=reg \
DEFINE __USE_SYSBASE
SOPT= $(OPT) $(IGNORE) \
DEFINE AMIGA_SKIP_SEG \
DEFINE ATOMIC_UNCOLLECTABLE \
DEFINE GC_AMIGA_FASTALLOC \
DEFINE GC_AMIGA_RETRY \
DEFINE GC_AMIGA_PRINTSTATS \
DEFINE GC_AMIGA_GC
#DEFINE ALL_INTERIOR_POINTERS \
SCOPT= $(SOPT) define GC_AMIGA_MAKINGLIB
CSCOPT= $(OPT) DEFINE AMIGA IGNORE=100 IGNORE=161
#------------------LINKING----------------------------
all: gctest setjmp_t cord/cordtest
clean:
delete *.lib gctest setjmp_t *.o *.lnk cord/*.o cord/*.lib cord/*.lnk cord/cordtest
smake
test: setjmp_t gctest cord/cordtest
setjmp_t
gctest
cord/cordtest
gctest: gc$(CPU).lib GCAmigaOS$(CPU).lib test.o
$(LINKER) LIB:c.o test.o TO gctest LIB gc$(CPU).lib LIB:sc.lib $(MATHLIB)
setjmp_t: setjmp_t.o gc.h
$(LINKER) LIB:c.o setjmp_t.o to setjmp_t lib LIB:sc.lib
cord/cordtest: cord/cordtest.o cord/cord$(CPU).lib gc$(CPU).lib
slink LIB:c.o cord/cordtest.o LIB $(MATHLIB) gc$(CPU).lib cord/cord$(CPU).lib LIB:sc.lib TO cord/cordtest
#------------------LIBBING----------------------------
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
gc$(CPU).lib: $(OBJS)
$(LIBER) gc$(CPU).lib r $(OBJS)
COBJS = cord/cordbscs.o cord/cordprnt.o cord/cordxtra.o
1999-04-07 16:01:30 +08:00
cord/cord$(CPU).lib: $(COBJS)
oml cord/cord$(CPU).lib r $(COBJS)
#------------------COMPILING--------------------------
INC= gc_private.h gc_hdrs.h gc.h gcconfig.h
1999-04-07 16:01:30 +08:00
alloc.o : alloc.c $(INC)
$(CC) alloc.c $(SCOPT) ignore=7
1999-04-07 16:01:30 +08:00
reclaim.o : reclaim.c $(INC)
$(CC) reclaim.c $(SCOPT)
1999-04-07 16:01:30 +08:00
allchblk.o : allchblk.c $(INC)
$(CC) allchblk.c $(SCOPT)
1999-04-07 16:01:30 +08:00
misc.o : misc.c $(INC)
$(CC) misc.c $(SCOPT)
os_dep.o : os_dep.c $(INC) AmigaOS.c
$(CC) os_dep.c $(SCOPT)
1999-04-07 16:01:30 +08:00
mark_rts.o : mark_rts.c $(INC)
$(CC) mark_rts.c $(SCOPT)
1999-04-07 16:01:30 +08:00
headers.o : headers.c $(INC)
$(CC) headers.c $(SCOPT)
1999-04-07 16:01:30 +08:00
mark.o : mark.c $(INC)
$(CC) mark.c $(SCOPT)
1999-04-07 16:01:30 +08:00
obj_map.o : obj_map.c $(INC)
$(CC) obj_map.c $(SCOPT)
1999-04-07 16:01:30 +08:00
blacklst.o : blacklst.c $(INC)
$(CC) blacklst.c $(SCOPT)
1999-04-07 16:01:30 +08:00
finalize.o : finalize.c $(INC)
$(CC) finalize.c $(SCOPT) noopt #Could sas/c still have problems with this one? Gctest sometimes fails to finalize all.
1999-04-07 16:01:30 +08:00
new_hblk.o : new_hblk.c $(INC)
$(CC) new_hblk.c $(SCOPT)
1999-04-07 16:01:30 +08:00
real_malloc.o : real_malloc.c $(INC)
$(CC) real_malloc.c $(SCOPT)
1999-04-07 16:01:30 +08:00
dyn_load.o : dyn_load.c $(INC)
$(CC) dyn_load.c $(SCOPT)
1999-04-07 16:01:30 +08:00
dbg_mlc.o : dbg_mlc.c $(INC)
$(CC) dbg_mlc.c $(SCOPT)
1999-04-07 16:01:30 +08:00
malloc.o : malloc.c $(INC)
$(CC) malloc.c $(SCOPT)
mallocx.o : mallocx.c $(INC)
$(CC) mallocx.c $(SCOPT)
1999-04-07 16:01:30 +08:00
stubborn.o : stubborn.c $(INC)
$(CC) stubborn.c $(SCOPT)
1999-04-07 16:01:30 +08:00
checksums.o : checksums.c $(INC)
$(CC) checksums.c $(SCOPT)
1999-04-07 16:01:30 +08:00
typd_mlc.o: typd_mlc.c $(INC)
$(CC) typd_mlc.c $(SCOPT)
1999-04-07 16:01:30 +08:00
mach_dep.o : mach_dep.c $(INC)
$(CC) mach_dep.c $(SCOPT)
1999-04-07 16:01:30 +08:00
ptr_chck.o: ptr_chck.c $(INC)
$(CC) ptr_chck.c $(SCOPT)
1999-04-07 16:01:30 +08:00
test.o : test.c $(INC)
$(CC) test.c $(SOPT)
1999-04-07 16:01:30 +08:00
setjmp_t: setjmp_t.c gc.h
$(CC) setjmp_t.c $(SOPT)
1999-04-07 16:01:30 +08:00
# cords:
cord/cordbscs.o: cord/cordbscs.c
sc cord/cordbscs.c $(CSCOPT)
cord/cordprnt.o: cord/cordprnt.c
sc cord/cordprnt.c $(CSCOPT)
cord/cordxtra.o: cord/cordxtra.c
sc cord/cordxtra.c $(CSCOPT)
cord/cordtest.o: cord/cordtest.c
sc cord/cordtest.c $(CSCOPT)
1999-04-07 16:01:30 +08:00