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

/* Last modified on Mon Sep 14 14:05:00 PDT 1992 by rustan                   */

/* This m3makefile is a bit complicated because we want to use it for 
   three different purpose: to build from the sources, to build for the 
   export, and to build from C at the export sites. */

/*---------------------------------------------------------- build from C ---*/
#if defined (BOOT) 	/* build from C */

#include "m3makefile.objs"

all:: m3compiler

m3compiler::  $(OBJS)
	IFS=' $(SEP)'; $(PASS2) -o m3compiler $(OBJS) $(LINKBFILES)

clean:: FRC
	rm m3compiler

LibdExport (m3compiler)
install:: FRC
	chmod 755 $(LIB_INSTALL)/m3compiler

.SUFFIXES:
.SUFFIXES: .c .s .o
.c.o:
	IFS=' $(SEP)'; $(PASS1) -c $(BOOTOPT) $<
.s.o:
	IFS=' $(SEP)'; $(PASS1) -c $(BOOTOPT) $<

/*---------------------------------------------------- build from Modula-3---*/
#else			

source_dir (../src/builtinOps)
source_dir (../src/builtinWord)
source_dir (../src/builtinTypes)
source_dir (../src/exprs)
source_dir (../src/misc)
source_dir (../src/stmts)
source_dir (../src/types)
source_dir (../src/values)

source_dir (../../static/src)

source_dir (../src/Mosaic)

M3OPT = -g -times -keep /* -X2@-s@ */

program (m3compiler)
LibdExport (m3compiler)
all::
	chmod 755 m3compiler

#endif /* BUILD */
