O'Reilly logo

An Introduction to Design Patterns in C++ with Qt™, Second Edition by Paul Ezust, Alan Ezust

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required