Appendix C: Development Tools

This appendix contains articles about the C++ development environment.

C.1 make and Makefile

You 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 ...

Get Introduction to Design Patterns in C++ with Qt, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.