# Copyright ©2026 Soham Pardeshi. All rights reserved. # Permission is hereby granted to students registered for University of # Washington CSE 333 for use solely during Summer Quarter 2026 for # purposes of the course. No other use, copying, distribution, or # modification is permitted without prior written consent. Copyrights # for third-party components of this work must be honored. Instructors # interested in reusing these course materials should contact the author. # Makefile # CSE 333 Lecture 12 code: inheritance CXX = g++ CXXFLAGS = -Wall -g -std=c++17 PROGS = stocks dispatch all: $(PROGS) stocks: stocks_main.o Stock.o DividendStock.o $(CXX) $(CXXFLAGS) -o $@ $^ dispatch: dispatch.o $(CXX) $(CXXFLAGS) -o $@ $^ stocks_main.o: stocks_main.cc Asset.h Stock.h DividendStock.h Cash.h $(CXX) $(CXXFLAGS) -c $< Stock.o: Stock.cc Stock.h Asset.h $(CXX) $(CXXFLAGS) -c $< DividendStock.o: DividendStock.cc DividendStock.h Stock.h Asset.h $(CXX) $(CXXFLAGS) -c $< dispatch.o: dispatch.cc $(CXX) $(CXXFLAGS) -c $< clean: rm -f $(PROGS) *.o