# Makefile
# CSE 374 lecture Str class

CXX = g++
CPPFLAGS = -Wall -g -std=c++17

# Str class example - with new/delete
strtest: strtest.o Str.o
	$(CXX) $(CPPFLAGS) -o strtest strtest.o Str.o

strtest.o: strtest.cc Str.h
	$(CXX) $(CPPFLAGS) -c strtest.cc

Str.o: Str.cc Str.h
	$(CXX) $(CPPFLAGS) -c Str.cc

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