#Options section =============================================================== SYSTEM = Linux COMPILER = g++ CXXFLAGS = -Wall -O2 -pipe -fPIC -g -std=c++11 FILEO = $(shell ls -q *.o) #Default Target ============================================================= default: objects #Classes section =============================================================== %.o : %.C $(COMPILER) $(CXXFLAGS) -c $< @echo " ==================================================" #Stopwatch ---------------------------------------------------------------------- stopwatch : Stopwatch.o StopwatchMain.o $(COMPILER) $(CXXFLAGS) $^ -o $@ @echo " ==================================================" #Progress Bar ---------------------------------------------------------------------- progressbar : ProgressBar.o ProgressBarMain.o $(COMPILER) $(CXXFLAGS) $^ -o $@ @echo " ==================================================" #Global section ================================================================ clean : rm -rf $(FILEO) stopwatch progressbar *~ @echo " ==================================================" objects: Stopwatch.o ProgressBar.o all : stopwatch progressbar