September 2011
Intermediate to advanced
768 pages
15h 18m
English
This appendix contains articles about the C++ development environment.
make and MakefileYou saw earlier that qmake (without arguments) reads a project file and builds a Makefile. Example C.1 is a slightly abbreviated look at the Makefile generated from a simple project called qapp.
Example C.1 src/qapp/Makefile-abbreviated
# Exerpts from a makefile####### Compiler, tools and optionsCC = gcc # executable for C compilerCXX = g++ # executable for c++ compilerLINK = g++ # executable for linker# flags that get passed to the compilerCFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)CXXFLAGS = -pipe -g -Wall -W -D_REENTRANT $(DEFINES)INCPATH = -I/usr/local/qt/mkspecs/default ...