# Makefile # CSE 333 Lecture 11 code CXX = g++ CPPFLAGS = -Wall -g -std=c++11 PROGS = lock_example thread_example # default target attempts to build all executables all: $(PROGS) # thread example thread_example: thread_example.cc $(CXX) $(CPPFLAGS) -pthread -o $@ $^ # lock example lock_example: lock_example.cc $(CXX) $(CPPFLAGS) -pthread -o $@ $^ # phony target - remove generated files and backups clean: rm -rf *.o *~ *.dSYM $(PROGS)