# Compile with debug option and all warnings on. ------------ CXXFLAGS = -g -Wall -O1 # Object modules comprising this application ---------------- OBJ = kitchen.o main.o # Build targets TARGETS = kitchen .PHONY: all clean all: $(TARGETS) kitchen: $(OBJ) $(CXX) -o $@ $(OBJ) $(LIBS) # Delete .o and exe files and force recompilation. ---------- clean: rm -f $(OBJ) $(TARGETS) # Dependencies ---------------------------------------------- kitchen.o: kitchen.cpp kitchen.hpp style.hpp wallcabinet.hpp \ floorcabinet.hpp main.o: main.cpp kitchen.hpp style.hpp wallcabinet.hpp floorcabinet.hpp