CXX = g++ --std=c++17 FLAGS = -g -Wall -Og BINARIES = fork_example fork_latency thread_latency .PHONY: all, clean all: $(BINARIES) fork_example: fork_example.cc $(CXX) $(FLAGS) -o $@ $< fork_latency: fork_latency.cc $(CXX) $(FLAGS) -o $@ $< thread_latency: thread_latency.cc $(CXX) $(FLAGS) -pthread -o $@ $< clean: rm -rf $(BINARIES)