# Makefile for 0magic MAGIC
#by Wen-Nung Tsai
#   1993/03/07
#for more detail, use "man make" to see the manual pages
#
#### Enable the following line to enable those lines start with "D" in FORTRAN
# FFLAGS= -xld	# (now it can not be used because I use non-VMS FORTRAN feature)
##################(the SUN f77 can NOT only enable the "D" lines)
COMP = f77
Target = magic
 $(Target):	0magic.o 1hello.o 2loading.o \
	3token.o 4assembl.o 5runprog.o 6list.o 7misc.o
	$(COMP) -o $@ 0magic.o 1hello.o 2loading.o \
		3token.o 4assembl.o 5runprog.o 6list.o 7misc.o \
		-lstr -L/u/cp/81/csie1ata
	echo   $@    ok now
0magic.o:	mach.fh 0magic.f
	$(COMP) -c 0magic.f
1hello.o:	mach.fh 1hello.f
	$(COMP) -c 1hello.f
2loading.o 6list.o:	mach.fh
3token.o 4assembl.o:	mach.fh
5runprog.o:	mach.fh
7misc.o:	mach.fh
install :
	cp $(Target) /usr/local/bin/magic
clean:
	rm -f *.o
clobber:
	rm -f *.o $(Target)
print:
	pr -n -F 000* makefile *.fh *.f *.asm samplerun.s*
