SRC = Account.C FreeChecking.C tstFrCkg.C JointAccount.C \
      tstJtAct.C JtFrChecking.C tstJtFr.C tstaccnt.C \
      tstvrdst.C tstmost.C

HEADER = Account.h FreeChecking.h JointAccount.h JtFrChecking.h acc.h

CLASSOBJ = Account.o FreeChecking.o  JointAccount.o JtFrChecking.o 

.SUFFIXES: .h .C
.C.o:
	CC  -c $<
.h.o:
	CC  -c $*.C

Account.o : Account.C Account.h
	CC -c Account.C

FreeChecking.o : FreeChecking.h FreeChecking.C Account.h
	CC -c FreeChecking.C

JointAccount.o : JointAccount.h JointAccount.C Account.h
	CC -c JointAccount.C

JtFrChecking.o : JtFrChecking.h JtFrChecking.C FreeChecking.h \
		 JointAccount.h Account.h
	CC -c JtFrChecking.C

# Joint FreeChecking test
jtfr:  $(CLASSOBJ) tstJtFr.o acc.h
	CC  $(CLASSOBJ) tstJtFr.o -o jtfr

# multiple inheritance test
acnt: $(CLASSOBJ) tstaccnt.o acc.h
	CC  $(CLASSOBJ) tstaccnt.o -o acnt

# virtual destructor test
vdest: $(CLASSOBJ) tstvrdst.o acc.h
	CC  $(CLASSOBJ) tstvrdst.o -o vdest

# Most derived test
most:  $(CLASSOBJ) tstmost.o acc.h
	CC  $(CLASSOBJ) tstmost.o -o most
