
#
# @COPYRIGHT@
# @COPYRIGHT@
#
# $Log: Makefile.scout,v $
# Revision 1.1  1997/12/11 18:18:50  bridges
# Updated to latest version of the collector.
# Added changes to support scout, and scout threads on Linux
#
#

include ../../../makefiles/Makefile.pre

SUBDIR = gc
SUBOBJDIR = $(TOP)/obj/$(SUBDIR)

(%):    $(SUBOBJDIR)/%
	$(AR) $(ARFLAGS) $@ $<

$(SUBOBJDIR)/%.o: %.c
	$(COMPILE.c) $< $(OUTPUT_OPTION)

$(SUBOBJDIR)/%.o: %.s
	$(COMPILE.s) $< $(OUTPUT_OPTION)

CPPFLAGS += -DSCOUT -DSILENT -DNO_SIGNALS -DALL_INTERIOR_POINTERS \
            -DNO_IGNORE_OFF_PAGE=0 -DJAVA_FINALIZATION

OBJS = $(SUBDIR)/alloc.o $(SUBDIR)/reclaim.o $(SUBDIR)/allchblk.o $(SUBDIR)/misc.o $(SUBDIR)/mach_dep.o $(SUBDIR)/os_dep.o $(SUBDIR)/mark_rts.o $(SUBDIR)/headers.o $(SUBDIR)/mark.o $(SUBDIR)/obj_map.o $(SUBDIR)/blacklst.o $(SUBDIR)/finalize.o $(SUBDIR)/new_hblk.o $(SUBDIR)/dbg_mlc.o $(SUBDIR)/malloc.o $(SUBDIR)/stubborn.o $(SUBDIR)/checksums.o $(SUBDIR)/typd_mlc.o $(SUBDIR)/ptr_chck.o $(SUBDIR)/mallocx.o $(SUBDIR)/scout_threads.o $(SUBDIR)/dyn_load.o

all: $(LIBGC)($(OBJS))

# $(OBJS): gc_priv.h gc_hdrs.h gc.h config.h gc_typed.h Makefile

# The dependency on Makefile is needed.  Changing
# options such as -DSILENT affects the size of GC_arrays,
# invalidating all .o files that rely on gc_priv.h

$(SUBOBJDIR)/mark.o $(SUBOBJDIR)/gc_typd_mlc.o $(SUBOBJDIR)/gc_finalize.o: gc_mark.h

ifeq ($(HOSTTYPE),alpha)

$(SUBOBJDIR)/mach_dep.o: alpha_mach_dep.s

else

$(SUBOBJDIR)/mach_dep.o: mach_dep.c

endif

include ../../../makefiles/Makefile.post
