# Makefile
# CSE 333 Lecture 11 code

CXX = g++
CPPFLAGS = -Wall -g -std=c++17
PROGS = SimplePoint Triangle 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 $@ $<

# SimplePoint class with all synthesized methods
Triangle: Triangle.cc Triangle.h SimplePoint.h
	$(CXX) $(CPPFLAGS) -o $@ $<

# phony target - remove generated files and backups
clean:
	rm -rf *.o *~ *.dSYM $(PROGS)