# Makefile # CSE 333 Lecture 11 code CXX = g++ CPPFLAGS = -Wall -g -std=c++11 PROGS = SimplePoint testcomplex test # default target attempts to build all executables all: $(PROGS) # PrintRad() peer instruction question code test: test.cc $(CXX) $(CPPFLAGS) -o $@ $^ # SimplePoint class with all synthesized methods SimplePoint: SimplePoint.cc SimplePoint.h $(CXX) $(CPPFLAGS) -o $@ $< # Complex class example testcomplex: testcomplex.o Complex.o $(CXX) $(CPPFLAGS) -o $@ $^ testcomplex.o: testcomplex.cc Complex.h $(CXX) $(CPPFLAGS) -c $< Complex.o: Complex.cc Complex.h $(CXX) $(CPPFLAGS) -c $< # phony target - remove generated files and backups clean: rm -rf *.o *~ *.dSYM $(PROGS)