# Makefile generated by imake - do not edit!
# $XConsortium: imake.c,v 1.48 89/10/10 18:33:21 jim Exp $
#
# The cpp used on this machine replaces all newlines and multiple tabs and
# spaces in a macro expansion with a single space.  Imake tries to compensate
# for this, but is not always successful.
#

CPU_TYPE = SPARC

PREFIX = /ufs/jan/finley/mod-3/modula3
INSTALL_PREFIX = $(PREFIX)

BIN = bin
BIN_USE     = $(PREFIX)/$(BIN)
BIN_INSTALL = $(INSTALL_PREFIX)/$(BIN)

PUB = include/m3
PUB_USE     = $(PREFIX)/$(PUB)
PUB_INSTALL = $(INSTALL_PREFIX)/$(PUB)

LIB = lib/m3
LIB_USE     = $(PREFIX)/$(LIB)
LIB_INSTALL = $(INSTALL_PREFIX)/$(LIB)

GNUEMACS_INSTALL = $(INSTALL_PREFIX)/lib/elisp

MAN = man
MAN_USE  = $(PREFIX)/$(MAN)
MAN_INSTALL = $(INSTALL_PREFIX)/$(MAN)

XLIBPATH = /usr/local/X11R5/lib:/usr/local/lib

CC = /bin/cc

CC_WARNS_FOR_UNKNOWN_FILES = 1

CC_G = @-g@

CC_O = @-O@

KEEP_LIBRARIES_RESOLVED = 0

CFLAGS =

M3OPT = -g

BOOTOPT = -g

SHELL = /bin/sh

CPP = /lib/cpp

MAKE = make

SEP   = @
PASS0 = @$(LIB_USE)/m3compiler@
PASS1 = @$(CC)@
PASS2 = @$(CC)@
PASS3 = @/bin/ar@
PASS4 = @ranlib@
PASS5 = @/bin/ld@-A@
OVERLAY_0 = @-g@
OVERLAY_1 = @-lc@
BASE_ARGS = @-N@

SERVER_LIMIT = 0

DEFPATH = .:$(PUB_USE)

LIBPATH = .:$(LIB_USE):$(XLIBPATH)

LINKBFILES = @-lm@
LINKFILES = @-lm3@-lm@

LINKCOVER  = $(LIB_USE)/report_coverage.o

INCL = $(LIB_USE)

TEMPLATE = toplevel.tmpl

all::

M3        = $(BIN_USE)/m3

M3FLAGS   = -w1 -make -why
M3DEFPATH =
M3LIBPATH =
DO_M3     = $(M3) $(M3FLAGS) $(M3OPT) $(M3DEFPATH) $(M3LIBPATH)

UILIB = -lm3ui -lm3X11R4 -lX11
FORMSVBTLIB = -lm3miniformsvbt -m3vbtkit -m3mtext -m3sx -m3glist -m3uprocess -m3rdwrutils $(UILIB)


scratch:: clean

tidy::
	find . \( -name ",*" -o -name ".,*" -o -name ".emacs_[0-9]*" \
	    -o -name "*~" -o -name core -o -name a.out \) -print | xargs rm -f

clean:: tidy
	find . \( -name "*.io" -o -name "*.ix" \
\
		  -o -name "*.mo" -o -name "*.mx"  \) -print | xargs rm
	rm -f .makefile .m3path* .PGM_SOURCES

FRC:

PGM_SOURCES = \
  ./crt0.s
