# MAKEFILE FOR REFAL DEBUGGER
MFILE=mm
include ../makedef

TRACE_OBJS = trace.o \
	pr.o \
	trc_scr.o \
	trc_win.o \
	zat.o

DOP = $(MFILE).o\
	../ri/rit.o \
	../rlib/rlib.a\
	trace.a

all: trace.a trace
  
$(MFILE): $(DOP)
	$(CC) -o $(MFILE) $(DOP)

trace.a: $(TRACE_OBJS)
	rm trace.a; $(AR) qs trace.a $(TRACE_OBJS)

# DEPENDENCY LISTS FOR FILES

trace.o: \
	trace.c \
	mtrace.h \
	keydefs.h\
	../trace.h \
	../rulex.h \
	../funct.h \
	../status.h \
	zat.h\
	trc_func.h\
	window.h

pr.o: \
	pr.c \
	../rulex.h \
	../funct.h \
	zat.h\
	trc_func.h

trc_scr.o: \
	trc_scr.c \
	trc_func.h \
	zat.h\
	window.h

trc_win.o: \
	trc_win.c \
	zat.h\
	window.h

zat.o: zat.c\
	zat.h

trace: maintr.o
	$(CC) -o trace maintr.o  
