#====================================================================
# Makefile      SIMPLE
#====================================================================
#====================================================================
#       Macro & Assembler flags
#====================================================================

STADDR = 802000
MACFLAGS = -fb -g
ALNFLAGS = -l -e -a $(STADDR) x 4000
RM = rm -f
#====================================================================
#       Default Rules
#====================================================================
.SUFFIXES:      .o .s

.s.o:
	mac $(MACFLAGS) $<

.SUFFIXES:      .ot .gas

.gas.ot:
	mac $(MACFLAGS) -dmac=1 -o$*.ot $*.gas

.SUFFIXES:      .oj .das

.das.oj:
	mac $(MACFLAGS) -dmac=1 -o$*.oj $*.das

#====================================================================
#       EXECUTABLES
#====================================================================
OBJ = simple.o

simple.cof: $(OBJ) simpsyn.oj
	aln $(ALNFLAGS) $(OBJ) simpsyn.oj

clean:
	$(RM) $(OBJ) simple.cof