# Makefile # CSE 333 Lecture 10 code CXX = g++ CPPFLAGS = -Wall -g -std=c++11 PROGS = usepoint test # default target attempts to build all executables all: $(PROGS) # Point class example usepoint: usepoint.o Point.o $(CXX) $(CPPFLAGS) -o $@ $^ usepoint.o: usepoint.cc Point.h $(CXX) $(CPPFLAGS) -c $< Point.o: Point.cc Point.h $(CXX) $(CPPFLAGS) -c $< # references and const peer instruction question code test: test.cc $(CXX) $(CPPFLAGS) -o $@ $< # phony target - remove generated files and backups clean: rm -f *.o *~ $(PROGS)