CXX = g++ --std=c++11 CX = gcc --std=c11 FLAGS = -g -Wall -Og -ggdb BINARIES = boostexample c4_merge_sort concurrent_merge_sort merge_sort cthreads pthreads threads total total_locking .PHONY: all, clean all: $(BINARIES) boostexample: boostexample.cc $(CXX) $(FLAGS) -o $@ $< c4_merge_sort: c4_merge_sort.cc $(CXX) $(FLAGS) -pthread -o $@ $< concurrent_merge_sort: concurrent_merge_sort.cc $(CXX) $(FLAGS) -pthread -o $@ $< cthreads: cthreads.c $(CX) $(FLAGS) -pthread -o $@ $< merge_sort: merge_sort.cc $(CXX) $(FLAGS) -o $@ $< pthreads: pthreads.cc $(CXX) $(FLAGS) -pthread -o $@ $< threads: threads.cc $(CXX) $(FLAGS) -pthread -o $@ $< total: total.cc $(CXX) $(FLAGS) -pthread -o $@ $< total_locking: total_locking.cc $(CXX) $(FLAGS) -pthread -o $@ $< clean: rm -rf $(BINARIES)