CXX = g++ --std=c++17 CX = gcc --std=c17 FLAGS = -g -Wall -Og -pthread BINARIES = cthreads pthreads total total_locking .PHONY: all, clean all: $(BINARIES) cthreads: cthreads.c $(CX) $(FLAGS) -o $@ $< pthreads: pthreads.cc $(CXX) $(FLAGS) -o $@ $< total: total.cc $(CXX) $(FLAGS) -o $@ $< total_locking: total_locking.cc $(CXX) $(FLAGS) -o $@ $< clean: rm -rf $(BINARIES)