CC=g++
CFLAGS=-g -Wall
OBJS=CreditCard.o TestCard.o


# rule for building the executable
TestCard: $(OBJS)
	$(CC) -o TestCard $(OBJS)


# list of file dependencies
TestCard.o: CreditCard.h
CreditCard.o: CreditCard.h


# the following rule is used to compile .cpp files to .o
.cpp.o:
	$(CC) $(CFLAGS) -c $<


# the following removes all .o files, but leaves the executable
clean:
	rm -f *.o
