g++ = g++ -Wall -ansi incdir = ./ base_compile_options = -I$(incdir) compile_options = $(base_compile_options) -c -O3 libSources = tournament.cpp libObjects = tournament.o all: @echo @echo libtournament Build @echo @echo Building library @echo Compiling $(g++) $(libSources) $(compile_options) rm *.o @echo Building static lib ar rs libtournament.a $(libObjects) @echo libtournament has been build, have fun @echo clean: @echo Cleaning up... @rm *.o @rm *.a @echo Done.