

# Makefile for a toy debit/credit (d/c) example.  Relevant pi$(GCC)2es are:
#    hashFile.h:  defines a class for simple hashed files
#    hashFile.C:  implements a class for simple hashed files
#    data.h:      defines the data types for the d/c database
#    data.C:      defines the persistent obj$(GCC)2ts for the d/c database
#    build.C:     initialize the d/c database
#    xact.C:      ex$(GCC)2utes one d/c transaction
#    print.C:     prints out the d/c database

GCC=eg++ -g
all:		build xact print

build:		build.o data.o hashFile.o
		$(GCC) -o build build.o data.o hashFile.o 

xact:		xact.o data.o hashFile.o
		$(GCC) -o xact xact.o data.o hashFile.o 

print:		print.o data.o hashFile.o
		$(GCC) -o print print.o data.o hashFile.o 

build.o:	hashFile.h data.h build.C
		$(GCC) -c build.C

xact.o:		hashFile.h data.h xact.C
		$(GCC) -c xact.C

print.o:	hashFile.h data.h print.C
		$(GCC) -c print.C


data.o:		hashFile.h data.h data.C
		$(GCC) -c data.C

hashFile.o:	hashFile.C data.h hashFile.h
	$(GCC) -c hashFile.C

