#   Demonstration of selected compilation
#   1: If present delete all *.o files.
#   2: Invoke make -f handleMakefile. This makes the whole project.
#   3: Notice the time stamps of the created *.o files.
#   4: Change the structure Chesire in file Handle.cpp.
#   5: Invoke make -f handleMakefile again.
#   6: Notice that Handle is the only file which has been recompiled
#      (cp time-stamp of Handle.o).
#   7: Just for demonstration purposes: make the project again.

CPP = C:/dev/cygwin/bin/g++
OFLAG = -o
.SUFFIXES : .o .cpp .c
.cpp.o :
	$(CPP) $(CPPFLAGS) -c $<
.c.o :
	$(CPP) $(CPPFLAGS) -c $<

all: UseHandle 

UseHandle: UseHandle.o Handle.o 
	$(CPP) $(OFLAG) UseHandle UseHandle.o Handle.o 

UseHandle.o: UseHandle.cpp Handle.h 
Handle.o: Handle.cpp Handle.h
