# Copyright (c) 1993 Xerox Corporation.  All rights reserved.
# Makefile for OS/2.  Assumes IBM's compiler, static linking, and a single thread.
# Adding dynamic linking support seems easy, but takes a little bit of work.
# Adding thread support may be nontrivial, since we haven't yet figured out how to
# look at another threads registers.

# We also haven't figured out how to do partial links or build static libraries.  Hence a
# client currently needs to link against all of the following:

OBJS= alloc.obj reclaim.obj allochblk.obj misc.obj mach←dep.obj os←dep.obj mark←roots.obj headers.obj mark.obj obj←map.obj black←list.obj finalize.obj new←hblk.obj real←malloc.obj dynamic←load.obj debug←malloc.obj malloc.obj stubborn.obj

CC= icc
CFLAGS= /O /Q /DSILENT
# Use /Ti instead of /O for debugging
# Setjmp←test may yield overly optimistic results when compiled
# without optimization.

all: $(OBJS) gctest

$(OBJS) test.obj: gc←private.h gc←headers.h gc.h

mach←dep.obj: mach←dep.c
	$(CC) $(CFLAGS) /C mach←dep.c

gctest: test.obj $(OBJS)
	$(CC) $(CFLAGS) /B"/STACK:524288" /Fegctest test.obj $(OBJS)