# 
# A makefile to create executable for QCD1
# Date generated:  Fri Dec  9 12:34:33 EET 1994
# For cypress (IRIX64 cypress 6.0 08241804 IP21 mips)
# 
SHELL=/bin/sh
PROGRAM=QCD1
USEDLANGUAGE=F
TIMER=../../lib/timers.a
EXE=../QCD1.exe
# The following are taken from '../../make.flags':
CPP=/lib/cpp
CPPFLAGS=-P
CC=cc
CFLAGS=-O3 -mips4
FC=f77
OPTF=-O3 -mips4 -WK,-r=3,-chs=16 -r8
FFLAGS=$(OPTF)
LD=f77
LFLAGS=
LIBS=$(TIMER)
RANLIB=touch
# The following are specifically for the QCD1-program:
 
OBJS=accept.o \
     add.o \
     chkin.o \
     drand.o \
     expval.o \
     gather.o \
     head.o \
     header.o \
     hyp2d.o \
     hyp3d.o \
     hyppl.o \
     init.o \
     metro.o \
     mktbl.o \
     prfile.o \
     pro.o \
     qcd1.o \
     renorm.o \
     rgtbl.o \
     scater.o \
     srlks.o \
     staple.o \
     su3tst.o \
     surexc.o \
     vdrand.o \
     vdrset.o \
     vscpi.o \
     vscpr.o \
     wline.o
 
.SUFFIXES:  $(SUFFIXES) .F .inc
 
$(EXE): $(TIMER) $(OBJS)
	$(LD) $(LFLAGS) $(OBJS) $(LIBS) -o $@
 
# rules:
 
.c.o:
	$(CC) -c $(CFLAGS) $<
.F.f:
	$(CPP) $(CPPFLAGS) $< > $*.f
.f.o:
	$(FC) -c $(FFLAGS) $<
 
# dependencies:
 
$(TIMER):
	(cd ../../lib/src ; make)
 
accept.o: accept.f
accept.f: makefile accept.F 
 
add.o: add.f
add.f: makefile add.F 
 
chkin.o: chkin.f
chkin.f: makefile chkin.F 
 
drand.o: drand.f
drand.f: makefile drand.F 
 
expval.o: expval.f
expval.f: makefile expval.F 
 
gather.o: gather.f
gather.f: makefile gather.F 
 
head.o: head.f
head.f: makefile head.F 
 
header.o: header.f
header.f: makefile header.F 
 
hyp2d.o: hyp2d.f
hyp2d.f: makefile hyp2d.F 
 
hyp3d.o: hyp3d.f
hyp3d.f: makefile hyp3d.F 
 
hyppl.o: hyppl.f
hyppl.f: makefile hyppl.F 
 
init.o: init.f
init.f: makefile init.F 
 
metro.o: metro.f
metro.f: makefile metro.F 
 
mktbl.o: mktbl.f
mktbl.f: makefile mktbl.F 
 
prfile.o: prfile.f
prfile.f: makefile prfile.F 
 
pro.o: pro.f
pro.f: makefile pro.F 
 
qcd1.o: qcd1.f
qcd1.f: makefile qcd1.F qcd1.inc
 
renorm.o: renorm.f
renorm.f: makefile renorm.F 
 
rgtbl.o: rgtbl.f
rgtbl.f: makefile rgtbl.F 
 
scater.o: scater.f
scater.f: makefile scater.F 
 
srlks.o: srlks.f
srlks.f: makefile srlks.F 
 
staple.o: staple.f
staple.f: makefile staple.F 
 
su3tst.o: su3tst.f
su3tst.f: makefile su3tst.F 
 
surexc.o: surexc.f
surexc.f: makefile surexc.F 
 
vdrand.o: vdrand.f
vdrand.f: makefile vdrand.F 
 
vdrset.o: vdrset.f
vdrset.f: makefile vdrset.F 
 
vscpi.o: vscpi.f
vscpi.f: makefile vscpi.F 
 
vscpr.o: vscpr.f
vscpr.f: makefile vscpr.F 
 
wline.o: wline.f
wline.f: makefile wline.F 
 
 
# utilities:
 
tidy:
	-/bin/rm -f a.out *~
	-/bin/rm -f *.o
 
cleanf:
	-/bin/rm -f *.f
 
clean:
	-/bin/rm -f a.out *~
	-/bin/rm -f *.o
	-/bin/rm -f *.f
	-/bin/rm -f $(EXE)
