/* Copyright (C) 1989, Digital Equipment Corporation           */
/* All rights reserved.                                        */
/* See the file COPYRIGHT for a full description.              */

/* Last Modified On Fri Jul 20 10:41:15 1990 By muller         */

CFLAGS =

C_object (M3Runtime)
C_object (arith)
C_object (gc)

source (M3Runtime.h)
source (M3RuntimeDecls.h)
source (gc.h)
source (M3Machine.h.VAX)
source (M3Machine.h.SPARC)
source (M3Machine.h.DS3100)
source (M3Machine.h.AP3000)
source (M3Machine.h.AIX386)
source (M3Machine.h.IBMR2)
source (M3Machine.h.IBMRT)
source (M3Machine.h.HP300)
source (strtod.c)
source (alloca.s.HP300)

all fromC:: m3run.o

#if defined (IBMRT_ARCHITECTURE)
OBJS = M3Runtime.o arith.o gc.o strtod.o
#else
#if defined (HP300_ARCHITECTURE)
OBJS = M3Runtime.o arith.o gc.o alloca.o
#else
OBJS = M3Runtime.o arith.o gc.o
#endif /* HP300 */
#endif /* IBMRT */

#if defined (HP300_ARCHITECTURE)
derived_S_object (alloca)
all fromC:: alloca.o
clean export:: FRC; /bin/rm -f alloca.s
#endif

m3run.o: $(OBJS)
	$(LD) -r -o m3run.o $(OBJS)

clean export:: FRC; /bin/rm -f M3Machine.h

do_install (M3Machine.h,$(LIBDIR), 644)
do_install (M3Runtime.h,$(LIBDIR), 644)
do_install (M3RuntimeDecls.h,$(LIBDIR), 644)
do_install (m3run.o,$(LIBDIR), 644)
