# Rule for building a .o file from a .cpp source file -------
.SUFFIXES: .cpp
.cpp.o:
	g++ -c $(CXXFLAGS) $<

# Compile with debug option and all warnings on. ------------
CXXFLAGS = -g -Wall -I../..

# Object modules comprising this application ----------------
OBJ = main.o linear.o tools.o 

contain: $(OBJ)
	g++  -o contain $(CXXFLAGS) $(OBJ)

# Delete .o and exe files and force recompilation. ----------
clean:
	rm -f $(OBJ) contain

# Dependencies ----------------------------------------------
linear.o: linear.cpp linear.hpp container.hpp item.hpp exam.hpp cell.hpp
main.o: main.cpp tools.hpp exam.hpp stack.hpp linear.hpp container.hpp \
 item.hpp cell.hpp queue.hpp
tools.o: tools.cpp tools.hpp
