# Clemens Groepl, Praxis des Programmierens, Wintersemester 2009/10, Uni Greifswald # Explanation of g++ warning options: # -W general warnings # -Wall more warnings, might include some "false positives" but you shoud read them anyway # -pedantic even more warnings, for conformity with C++ standard # # You should *always* switch on *all* the warnings! # The only reason to suppress a specific warning is if the output # gets so large that you won't notice the important ones. # # # Explanation of g++ debugging options: # # -D_GLIBCXX_DEBUG switch on many tests (performed at run time), especially for STL (std::vector etc.) # -g include debugging information in the generated object files # # STL debug mode is your friend when you encouter segmentation faults etc. # Compiling with debug info is necessary when you want to use a debugger such as gdb. # # # Explanation of g++ optimization options: # # -O3 switch on optimiation level 3 # -O0 disable optimization # # When you program runs smoothly, you can turn off debugging options and compile with optimization, # which takes a bit longer but the binary will run faster. (Speedup might be significant!) # debug main_his: main_his.C g++ -W -Wall -pedantic -g -D_GLIBCXX_DEBUG $< -o $@ # optimize #main_his: main_his.C # g++ -W -Wall -pedantic -O3 -D_GLIBCXX_DEBUG $< -o $@ #main_his: main_his.C # g++ -W -Wall -pedantic -O3 -DHAVE_SEQAN -I/home/groepl/contrib/include $< -o $@ #main_his: main_his.C # g++ -W -Wall -pedantic -g -D_GLIBCXX_DEBUG -DHAVE_SEQAN -I/home/groepl/contrib/include $< -o $@