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